void RatesPerCell_Removing_noisy_cells_run_7721_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:20:05 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9009.388,67.5,81084.49); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7721",60,0,60); h_SL2L164->SetBinContent(1,16321.43); h_SL2L164->SetBinContent(2,20435.71); h_SL2L164->SetBinContent(3,25042.86); h_SL2L164->SetBinContent(4,26964.29); h_SL2L164->SetBinContent(5,26792.86); h_SL2L164->SetBinContent(6,26007.14); h_SL2L164->SetBinContent(7,24400); h_SL2L164->SetBinContent(8,22600); h_SL2L164->SetBinContent(9,25950); h_SL2L164->SetBinContent(10,25871.43); h_SL2L164->SetBinContent(11,26878.57); h_SL2L164->SetBinContent(12,27300); h_SL2L164->SetBinContent(13,27085.71); h_SL2L164->SetBinContent(14,26342.86); h_SL2L164->SetBinContent(15,25928.57); h_SL2L164->SetBinContent(16,25221.43); h_SL2L164->SetBinContent(17,24921.43); h_SL2L164->SetBinContent(18,25635.71); h_SL2L164->SetBinContent(19,25071.43); h_SL2L164->SetBinContent(20,23821.43); h_SL2L164->SetBinContent(21,22578.57); h_SL2L164->SetBinContent(22,22107.14); h_SL2L164->SetBinContent(23,21357.14); h_SL2L164->SetBinContent(24,19871.43); h_SL2L164->SetBinContent(25,18564.29); h_SL2L164->SetBinContent(26,19085.71); h_SL2L164->SetBinContent(27,18778.57); h_SL2L164->SetBinContent(28,18614.29); h_SL2L164->SetBinContent(29,18142.86); h_SL2L164->SetBinContent(30,17907.14); h_SL2L164->SetBinContent(31,18050); h_SL2L164->SetBinContent(32,18735.71); h_SL2L164->SetBinContent(33,19057.14); h_SL2L164->SetBinContent(34,18607.14); h_SL2L164->SetBinContent(36,19564.29); h_SL2L164->SetBinContent(37,20771.43); h_SL2L164->SetBinContent(38,19928.57); h_SL2L164->SetBinContent(39,20221.43); h_SL2L164->SetBinContent(40,54500); h_SL2L164->SetBinContent(41,42642.86); h_SL2L164->SetBinContent(42,23678.57); h_SL2L164->SetBinContent(43,23521.43); h_SL2L164->SetBinContent(44,22664.29); h_SL2L164->SetBinContent(45,19150); h_SL2L164->SetBinContent(46,17164.29); h_SL2L164->SetBinContent(47,17871.43); h_SL2L164->SetBinContent(48,17400); h_SL2L164->SetBinContent(49,17942.86); h_SL2L164->SetBinContent(50,17285.71); h_SL2L164->SetBinContent(51,18492.86); h_SL2L164->SetBinContent(52,20135.71); h_SL2L164->SetBinContent(53,21421.43); h_SL2L164->SetBinContent(54,22178.57); h_SL2L164->SetBinContent(55,20500); h_SL2L164->SetBinContent(56,17357.14); h_SL2L164->SetBinContent(57,12971.43); h_SL2L164->SetMaximum(72075.1); 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,12392.86); h_SL2L265->SetBinContent(2,19228.57); h_SL2L265->SetBinContent(3,21307.14); h_SL2L265->SetBinContent(4,27350); h_SL2L265->SetBinContent(5,26221.43); h_SL2L265->SetBinContent(6,25650); h_SL2L265->SetBinContent(7,25314.29); h_SL2L265->SetBinContent(8,22371.43); h_SL2L265->SetBinContent(9,23778.57); h_SL2L265->SetBinContent(10,25092.86); h_SL2L265->SetBinContent(11,25928.57); h_SL2L265->SetBinContent(12,26242.86); h_SL2L265->SetBinContent(13,26621.43); h_SL2L265->SetBinContent(14,26285.71); h_SL2L265->SetBinContent(15,25692.86); h_SL2L265->SetBinContent(16,25414.29); h_SL2L265->SetBinContent(17,24328.57); h_SL2L265->SetBinContent(18,24735.71); h_SL2L265->SetBinContent(19,24414.29); h_SL2L265->SetBinContent(20,23707.14); h_SL2L265->SetBinContent(21,22942.86); h_SL2L265->SetBinContent(22,22021.43); h_SL2L265->SetBinContent(23,21521.43); h_SL2L265->SetBinContent(24,20178.57); h_SL2L265->SetBinContent(25,19428.57); h_SL2L265->SetBinContent(26,18685.71); h_SL2L265->SetBinContent(27,18707.14); h_SL2L265->SetBinContent(28,18450); h_SL2L265->SetBinContent(29,17814.29); h_SL2L265->SetBinContent(30,18100); h_SL2L265->SetBinContent(31,17607.14); h_SL2L265->SetBinContent(32,18178.57); h_SL2L265->SetBinContent(33,18678.57); h_SL2L265->SetBinContent(34,18542.86); h_SL2L265->SetBinContent(35,17942.86); h_SL2L265->SetBinContent(36,17307.14); h_SL2L265->SetBinContent(37,19528.57); h_SL2L265->SetBinContent(38,19414.29); h_SL2L265->SetBinContent(39,19314.29); h_SL2L265->SetBinContent(40,19200); h_SL2L265->SetBinContent(41,19914.29); h_SL2L265->SetBinContent(42,19850); h_SL2L265->SetBinContent(43,19528.57); h_SL2L265->SetBinContent(44,18978.57); h_SL2L265->SetBinContent(45,18500); h_SL2L265->SetBinContent(46,17871.43); h_SL2L265->SetBinContent(47,17628.57); h_SL2L265->SetBinContent(48,17078.57); h_SL2L265->SetBinContent(49,16235.71); h_SL2L265->SetBinContent(50,16935.71); h_SL2L265->SetBinContent(51,17185.71); h_SL2L265->SetBinContent(52,18135.71); h_SL2L265->SetBinContent(53,20221.43); h_SL2L265->SetBinContent(54,21521.43); h_SL2L265->SetBinContent(55,21942.86); h_SL2L265->SetBinContent(56,18042.86); h_SL2L265->SetBinContent(57,16114.29); h_SL2L265->SetMaximum(62675); 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,15192.86); h_SL2L366->SetBinContent(2,19507.14); h_SL2L366->SetBinContent(3,24278.57); h_SL2L366->SetBinContent(4,26457.14); h_SL2L366->SetBinContent(5,24771.43); h_SL2L366->SetBinContent(6,25114.29); h_SL2L366->SetBinContent(7,22528.57); h_SL2L366->SetBinContent(8,21878.57); h_SL2L366->SetBinContent(9,24692.86); h_SL2L366->SetBinContent(10,24264.29); h_SL2L366->SetBinContent(11,25328.57); h_SL2L366->SetBinContent(12,25585.71); h_SL2L366->SetBinContent(13,25121.43); h_SL2L366->SetBinContent(14,25871.43); h_SL2L366->SetBinContent(15,24450); h_SL2L366->SetBinContent(16,24735.71); h_SL2L366->SetBinContent(17,24871.43); h_SL2L366->SetBinContent(18,23842.86); h_SL2L366->SetBinContent(19,22964.29); h_SL2L366->SetBinContent(20,21850); h_SL2L366->SetBinContent(21,21800); h_SL2L366->SetBinContent(22,20914.29); h_SL2L366->SetBinContent(23,19457.14); h_SL2L366->SetBinContent(24,19292.86); h_SL2L366->SetBinContent(25,18164.29); h_SL2L366->SetBinContent(26,17800); h_SL2L366->SetBinContent(27,18442.86); h_SL2L366->SetBinContent(28,17957.14); h_SL2L366->SetBinContent(29,17357.14); h_SL2L366->SetBinContent(30,17664.29); h_SL2L366->SetBinContent(31,17385.71); h_SL2L366->SetBinContent(32,17685.71); h_SL2L366->SetBinContent(33,18050); h_SL2L366->SetBinContent(34,17400); h_SL2L366->SetBinContent(35,17800); h_SL2L366->SetBinContent(36,17842.86); h_SL2L366->SetBinContent(37,19314.29); h_SL2L366->SetBinContent(38,18842.86); h_SL2L366->SetBinContent(39,18142.86); h_SL2L366->SetBinContent(40,18571.43); h_SL2L366->SetBinContent(41,18450); h_SL2L366->SetBinContent(42,18464.29); h_SL2L366->SetBinContent(43,18828.57); h_SL2L366->SetBinContent(44,18592.86); h_SL2L366->SetBinContent(45,17392.86); h_SL2L366->SetBinContent(46,17414.29); h_SL2L366->SetBinContent(47,17050); h_SL2L366->SetBinContent(48,16714.29); h_SL2L366->SetBinContent(49,16021.43); h_SL2L366->SetBinContent(50,17285.71); h_SL2L366->SetBinContent(51,17000); h_SL2L366->SetBinContent(52,18742.86); h_SL2L366->SetBinContent(53,20035.71); h_SL2L366->SetBinContent(54,21157.14); h_SL2L366->SetBinContent(55,20721.43); h_SL2L366->SetBinContent(56,16342.86); h_SL2L366->SetBinContent(57,14907.14); h_SL2L366->SetMaximum(62675); 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,17857.14); h_SL2L467->SetBinContent(3,21550); h_SL2L467->SetBinContent(4,24650); h_SL2L467->SetBinContent(5,24992.86); h_SL2L467->SetBinContent(6,24150); h_SL2L467->SetBinContent(7,24064.29); h_SL2L467->SetBinContent(8,20807.14); h_SL2L467->SetBinContent(9,23464.29); h_SL2L467->SetBinContent(10,23428.57); h_SL2L467->SetBinContent(11,24628.57); h_SL2L467->SetBinContent(12,25278.57); h_SL2L467->SetBinContent(13,24885.71); h_SL2L467->SetBinContent(14,25035.71); h_SL2L467->SetBinContent(15,24607.14); h_SL2L467->SetBinContent(16,24585.71); h_SL2L467->SetBinContent(17,23950); h_SL2L467->SetBinContent(18,23864.29); h_SL2L467->SetBinContent(19,23228.57); h_SL2L467->SetBinContent(20,22500); h_SL2L467->SetBinContent(21,21721.43); h_SL2L467->SetBinContent(22,21150); h_SL2L467->SetBinContent(23,19750); h_SL2L467->SetBinContent(24,19378.57); h_SL2L467->SetBinContent(25,18385.71); h_SL2L467->SetBinContent(26,17521.43); h_SL2L467->SetBinContent(27,18092.86); h_SL2L467->SetBinContent(28,17721.43); h_SL2L467->SetBinContent(29,17450); h_SL2L467->SetBinContent(30,17928.57); h_SL2L467->SetBinContent(31,16678.57); h_SL2L467->SetBinContent(32,17164.29); h_SL2L467->SetBinContent(33,17985.71); h_SL2L467->SetBinContent(34,18071.43); h_SL2L467->SetBinContent(35,17285.71); h_SL2L467->SetBinContent(36,18178.57); h_SL2L467->SetBinContent(37,18064.29); h_SL2L467->SetBinContent(38,19028.57); h_SL2L467->SetBinContent(39,18485.71); h_SL2L467->SetBinContent(40,17835.71); h_SL2L467->SetBinContent(41,18542.86); h_SL2L467->SetBinContent(42,18564.29); h_SL2L467->SetBinContent(43,18135.71); h_SL2L467->SetBinContent(44,18035.71); h_SL2L467->SetBinContent(45,18071.43); h_SL2L467->SetBinContent(46,17057.14); h_SL2L467->SetBinContent(47,16735.71); h_SL2L467->SetBinContent(48,16635.71); h_SL2L467->SetBinContent(49,15892.86); h_SL2L467->SetBinContent(50,16157.14); h_SL2L467->SetBinContent(51,16428.57); h_SL2L467->SetBinContent(52,17892.86); h_SL2L467->SetBinContent(53,19000); h_SL2L467->SetBinContent(54,20035.71); h_SL2L467->SetBinContent(55,20771.43); h_SL2L467->SetBinContent(56,17771.43); h_SL2L467->SetBinContent(57,14721.43); h_SL2L467->SetMaximum(62675); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 7721"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }