void RatesPerCell_Removing_noisy_cells_run_7363_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:12:40 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16331.58,67.5,146984.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7363",60,0,60); h_SL2L164->SetBinContent(1,24114.29); h_SL2L164->SetBinContent(2,31314.29); h_SL2L164->SetBinContent(3,36028.57); h_SL2L164->SetBinContent(4,38278.57); h_SL2L164->SetBinContent(5,38107.14); h_SL2L164->SetBinContent(6,37564.29); h_SL2L164->SetBinContent(7,34328.57); h_SL2L164->SetBinContent(8,32871.43); h_SL2L164->SetBinContent(9,36485.71); h_SL2L164->SetBinContent(10,37600); h_SL2L164->SetBinContent(11,38950); h_SL2L164->SetBinContent(12,37650); h_SL2L164->SetBinContent(13,36092.86); h_SL2L164->SetBinContent(14,35507.14); h_SL2L164->SetBinContent(15,35614.29); h_SL2L164->SetBinContent(16,34835.71); h_SL2L164->SetBinContent(17,33035.71); h_SL2L164->SetBinContent(18,32828.57); h_SL2L164->SetBinContent(19,32757.14); h_SL2L164->SetBinContent(20,33700); h_SL2L164->SetBinContent(21,33128.57); h_SL2L164->SetBinContent(22,32228.57); h_SL2L164->SetBinContent(23,31714.29); h_SL2L164->SetBinContent(24,30157.14); h_SL2L164->SetBinContent(25,31107.14); h_SL2L164->SetBinContent(26,30500); h_SL2L164->SetBinContent(27,30507.14); h_SL2L164->SetBinContent(28,29821.43); h_SL2L164->SetBinContent(29,29228.57); h_SL2L164->SetBinContent(30,28421.43); h_SL2L164->SetBinContent(31,27121.43); h_SL2L164->SetBinContent(32,28578.57); h_SL2L164->SetBinContent(33,29728.57); h_SL2L164->SetBinContent(34,29278.57); h_SL2L164->SetBinContent(35,7.142857); h_SL2L164->SetBinContent(36,28814.29); h_SL2L164->SetBinContent(37,36300); h_SL2L164->SetBinContent(38,32728.57); h_SL2L164->SetBinContent(39,34500); h_SL2L164->SetBinContent(40,61035.71); h_SL2L164->SetBinContent(41,98792.86); h_SL2L164->SetBinContent(42,37071.43); h_SL2L164->SetBinContent(43,37114.29); h_SL2L164->SetBinContent(44,35557.14); h_SL2L164->SetBinContent(45,27278.57); h_SL2L164->SetBinContent(46,27342.86); h_SL2L164->SetBinContent(47,26514.29); h_SL2L164->SetBinContent(48,25721.43); h_SL2L164->SetBinContent(49,26021.43); h_SL2L164->SetBinContent(50,24685.71); h_SL2L164->SetBinContent(51,25442.86); h_SL2L164->SetBinContent(52,27114.29); h_SL2L164->SetBinContent(53,29714.29); h_SL2L164->SetBinContent(54,29192.86); h_SL2L164->SetBinContent(55,28778.57); h_SL2L164->SetBinContent(56,23792.86); h_SL2L164->SetBinContent(57,18028.57); h_SL2L164->SetMaximum(130652.6); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,18542.86); h_SL2L265->SetBinContent(2,29528.57); h_SL2L265->SetBinContent(3,32364.29); h_SL2L265->SetBinContent(4,37392.86); h_SL2L265->SetBinContent(5,37200); h_SL2L265->SetBinContent(6,36678.57); h_SL2L265->SetBinContent(7,35242.86); h_SL2L265->SetBinContent(8,31385.71); h_SL2L265->SetBinContent(9,33471.43); h_SL2L265->SetBinContent(10,35621.43); h_SL2L265->SetBinContent(11,37421.43); h_SL2L265->SetBinContent(12,37485.71); h_SL2L265->SetBinContent(13,35235.71); h_SL2L265->SetBinContent(14,34750); h_SL2L265->SetBinContent(15,34600); h_SL2L265->SetBinContent(16,34221.43); h_SL2L265->SetBinContent(17,32621.43); h_SL2L265->SetBinContent(18,33321.43); h_SL2L265->SetBinContent(19,32300); h_SL2L265->SetBinContent(20,32814.29); h_SL2L265->SetBinContent(21,33307.14); h_SL2L265->SetBinContent(22,31964.29); h_SL2L265->SetBinContent(23,31821.43); h_SL2L265->SetBinContent(24,31071.43); h_SL2L265->SetBinContent(25,29457.14); h_SL2L265->SetBinContent(26,30457.14); h_SL2L265->SetBinContent(27,29742.86); h_SL2L265->SetBinContent(28,29692.86); h_SL2L265->SetBinContent(29,29014.29); h_SL2L265->SetBinContent(30,27914.29); h_SL2L265->SetBinContent(31,26907.14); h_SL2L265->SetBinContent(32,27228.57); h_SL2L265->SetBinContent(33,28114.29); h_SL2L265->SetBinContent(34,28914.29); h_SL2L265->SetBinContent(35,27492.86); h_SL2L265->SetBinContent(36,28192.86); h_SL2L265->SetBinContent(37,28271.43); h_SL2L265->SetBinContent(38,29585.71); h_SL2L265->SetBinContent(39,30742.86); h_SL2L265->SetBinContent(40,30942.86); h_SL2L265->SetBinContent(41,29257.14); h_SL2L265->SetBinContent(42,29121.43); h_SL2L265->SetBinContent(43,27942.86); h_SL2L265->SetBinContent(44,28307.14); h_SL2L265->SetBinContent(45,27221.43); h_SL2L265->SetBinContent(46,26364.29); h_SL2L265->SetBinContent(47,26014.29); h_SL2L265->SetBinContent(48,24878.57); h_SL2L265->SetBinContent(49,25821.43); h_SL2L265->SetBinContent(50,24600); h_SL2L265->SetBinContent(51,24885.71); h_SL2L265->SetBinContent(52,26100); h_SL2L265->SetBinContent(53,27492.86); h_SL2L265->SetBinContent(54,29107.14); h_SL2L265->SetBinContent(55,29200); h_SL2L265->SetBinContent(56,24421.43); h_SL2L265->SetBinContent(57,22021.43); h_SL2L265->SetMaximum(113611.8); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,23157.14); h_SL2L366->SetBinContent(2,29685.71); h_SL2L366->SetBinContent(3,35328.57); h_SL2L366->SetBinContent(4,36571.43); h_SL2L366->SetBinContent(5,36478.57); h_SL2L366->SetBinContent(6,35078.57); h_SL2L366->SetBinContent(7,32714.29); h_SL2L366->SetBinContent(8,31985.71); h_SL2L366->SetBinContent(9,34871.43); h_SL2L366->SetBinContent(10,35292.86); h_SL2L366->SetBinContent(11,36092.86); h_SL2L366->SetBinContent(12,35900); h_SL2L366->SetBinContent(13,34264.29); h_SL2L366->SetBinContent(14,34371.43); h_SL2L366->SetBinContent(15,34278.57); h_SL2L366->SetBinContent(16,33042.86); h_SL2L366->SetBinContent(17,31607.14); h_SL2L366->SetBinContent(18,30592.86); h_SL2L366->SetBinContent(19,30521.43); h_SL2L366->SetBinContent(20,32042.86); h_SL2L366->SetBinContent(21,31871.43); h_SL2L366->SetBinContent(22,31128.57); h_SL2L366->SetBinContent(23,30985.71); h_SL2L366->SetBinContent(24,28621.43); h_SL2L366->SetBinContent(25,30092.86); h_SL2L366->SetBinContent(26,29728.57); h_SL2L366->SetBinContent(27,29321.43); h_SL2L366->SetBinContent(28,28264.29); h_SL2L366->SetBinContent(29,28300); h_SL2L366->SetBinContent(30,27742.86); h_SL2L366->SetBinContent(31,27271.43); h_SL2L366->SetBinContent(32,27514.29); h_SL2L366->SetBinContent(33,28007.14); h_SL2L366->SetBinContent(34,27564.29); h_SL2L366->SetBinContent(35,26564.29); h_SL2L366->SetBinContent(36,27857.14); h_SL2L366->SetBinContent(37,27728.57); h_SL2L366->SetBinContent(38,28028.57); h_SL2L366->SetBinContent(39,29364.29); h_SL2L366->SetBinContent(40,28607.14); h_SL2L366->SetBinContent(41,28107.14); h_SL2L366->SetBinContent(42,26985.71); h_SL2L366->SetBinContent(43,26678.57); h_SL2L366->SetBinContent(44,26750); h_SL2L366->SetBinContent(45,25600); h_SL2L366->SetBinContent(46,25650); h_SL2L366->SetBinContent(47,25692.86); h_SL2L366->SetBinContent(48,24007.14); h_SL2L366->SetBinContent(49,24550); h_SL2L366->SetBinContent(50,24228.57); h_SL2L366->SetBinContent(51,24364.29); h_SL2L366->SetBinContent(52,25978.57); h_SL2L366->SetBinContent(53,27757.14); h_SL2L366->SetBinContent(54,28078.57); h_SL2L366->SetBinContent(55,26800); h_SL2L366->SetBinContent(56,22300); h_SL2L366->SetBinContent(57,19357.14); h_SL2L366->SetMaximum(113611.8); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,27157.14); h_SL2L467->SetBinContent(3,30878.57); h_SL2L467->SetBinContent(4,34914.29); h_SL2L467->SetBinContent(5,35707.14); h_SL2L467->SetBinContent(6,34971.43); h_SL2L467->SetBinContent(7,33228.57); h_SL2L467->SetBinContent(8,30635.71); h_SL2L467->SetBinContent(9,32757.14); h_SL2L467->SetBinContent(10,34314.29); h_SL2L467->SetBinContent(11,34785.71); h_SL2L467->SetBinContent(12,35371.43); h_SL2L467->SetBinContent(13,33271.43); h_SL2L467->SetBinContent(14,33142.86); h_SL2L467->SetBinContent(15,33035.71); h_SL2L467->SetBinContent(16,32928.57); h_SL2L467->SetBinContent(17,30964.29); h_SL2L467->SetBinContent(18,29892.86); h_SL2L467->SetBinContent(19,31142.86); h_SL2L467->SetBinContent(20,31057.14); h_SL2L467->SetBinContent(21,31507.14); h_SL2L467->SetBinContent(22,31035.71); h_SL2L467->SetBinContent(23,30500); h_SL2L467->SetBinContent(24,29085.71); h_SL2L467->SetBinContent(25,29271.43); h_SL2L467->SetBinContent(26,29335.71); h_SL2L467->SetBinContent(27,29242.86); h_SL2L467->SetBinContent(28,27542.86); h_SL2L467->SetBinContent(29,27807.14); h_SL2L467->SetBinContent(30,27892.86); h_SL2L467->SetBinContent(31,25721.43); h_SL2L467->SetBinContent(32,26650); h_SL2L467->SetBinContent(33,26385.71); h_SL2L467->SetBinContent(34,28328.57); h_SL2L467->SetBinContent(35,26064.29); h_SL2L467->SetBinContent(36,27292.86); h_SL2L467->SetBinContent(37,27221.43); h_SL2L467->SetBinContent(38,27814.29); h_SL2L467->SetBinContent(39,28542.86); h_SL2L467->SetBinContent(40,27835.71); h_SL2L467->SetBinContent(41,26742.86); h_SL2L467->SetBinContent(42,26435.71); h_SL2L467->SetBinContent(43,26621.43); h_SL2L467->SetBinContent(44,26435.71); h_SL2L467->SetBinContent(45,26057.14); h_SL2L467->SetBinContent(46,25485.71); h_SL2L467->SetBinContent(47,24721.43); h_SL2L467->SetBinContent(48,23700); h_SL2L467->SetBinContent(49,23742.86); h_SL2L467->SetBinContent(50,23950); h_SL2L467->SetBinContent(51,22764.29); h_SL2L467->SetBinContent(52,23835.71); h_SL2L467->SetBinContent(53,26628.57); h_SL2L467->SetBinContent(54,27342.86); h_SL2L467->SetBinContent(55,26900); h_SL2L467->SetBinContent(56,23378.57); h_SL2L467->SetBinContent(57,20764.29); h_SL2L467->SetMaximum(113611.8); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->Draw("same"); TLegend *leg = new TLegend(0.1,0.83,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("h_SL2L1","Layer 1","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL2L2","Layer 2","l"); ci = TColor::GetColor("#cc0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL2L3","Layer 3","l"); ci = TColor::GetColor("#009900"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL2L4","Layer 4","l"); ci = TColor::GetColor("#0000cc"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TPaveText *pt = new TPaveText(0.3719095,0.9362587,0.6280905,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 7363"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }