void RatesPerCell_Removing_noisy_cells_run_5316_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:23:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11819.13,67.5,106372.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5316",60,0,60); h_SL2L164->SetBinContent(1,748.5715); h_SL2L164->SetBinContent(2,958.5715); h_SL2L164->SetBinContent(3,1122.857); h_SL2L164->SetBinContent(4,1245.714); h_SL2L164->SetBinContent(5,1318.571); h_SL2L164->SetBinContent(6,1294.286); h_SL2L164->SetBinContent(7,1235.714); h_SL2L164->SetBinContent(8,1350); h_SL2L164->SetBinContent(9,1555.714); h_SL2L164->SetBinContent(10,1590); h_SL2L164->SetBinContent(11,1772.857); h_SL2L164->SetBinContent(12,1887.143); h_SL2L164->SetBinContent(13,2054.286); h_SL2L164->SetBinContent(14,2247.143); h_SL2L164->SetBinContent(15,2412.857); h_SL2L164->SetBinContent(16,2452.857); h_SL2L164->SetBinContent(17,2637.143); h_SL2L164->SetBinContent(18,2781.429); h_SL2L164->SetBinContent(19,3107.143); h_SL2L164->SetBinContent(20,3450); h_SL2L164->SetBinContent(21,3517.143); h_SL2L164->SetBinContent(22,3804.286); h_SL2L164->SetBinContent(23,4177.143); h_SL2L164->SetBinContent(24,4537.143); h_SL2L164->SetBinContent(25,9305.715); h_SL2L164->SetBinContent(26,29352.86); h_SL2L164->SetBinContent(27,45881.43); h_SL2L164->SetBinContent(28,54651.43); h_SL2L164->SetBinContent(29,56734.29); h_SL2L164->SetBinContent(30,52854.29); h_SL2L164->SetBinContent(31,46671.43); h_SL2L164->SetBinContent(32,45562.86); h_SL2L164->SetBinContent(33,44272.86); h_SL2L164->SetBinContent(34,24661.43); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,4508.572); h_SL2L164->SetBinContent(37,3841.429); h_SL2L164->SetBinContent(38,3200); h_SL2L164->SetBinContent(39,2985.714); h_SL2L164->SetBinContent(40,71495.72); h_SL2L164->SetBinContent(41,2980); h_SL2L164->SetBinContent(42,2755.714); h_SL2L164->SetBinContent(43,2875.714); h_SL2L164->SetBinContent(44,2710); h_SL2L164->SetBinContent(45,1548.571); h_SL2L164->SetBinContent(46,1507.143); h_SL2L164->SetBinContent(47,1312.857); h_SL2L164->SetBinContent(48,1325.714); h_SL2L164->SetBinContent(49,1154.286); h_SL2L164->SetBinContent(50,1122.857); h_SL2L164->SetBinContent(51,1105.714); h_SL2L164->SetBinContent(52,1061.429); h_SL2L164->SetBinContent(53,1025.714); h_SL2L164->SetBinContent(54,978.5715); h_SL2L164->SetBinContent(55,918.5715); h_SL2L164->SetBinContent(56,838.5715); h_SL2L164->SetBinContent(57,728.5715); h_SL2L164->SetMaximum(94553); 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,702.8572); h_SL2L265->SetBinContent(2,852.8572); h_SL2L265->SetBinContent(3,1007.143); h_SL2L265->SetBinContent(4,1148.571); h_SL2L265->SetBinContent(5,1251.429); h_SL2L265->SetBinContent(6,1291.429); h_SL2L265->SetBinContent(7,1205.714); h_SL2L265->SetBinContent(8,1260); h_SL2L265->SetBinContent(9,1368.571); h_SL2L265->SetBinContent(10,1547.143); h_SL2L265->SetBinContent(11,1648.571); h_SL2L265->SetBinContent(12,1814.286); h_SL2L265->SetBinContent(13,1875.714); h_SL2L265->SetBinContent(14,2050); h_SL2L265->SetBinContent(15,2290); h_SL2L265->SetBinContent(16,2361.429); h_SL2L265->SetBinContent(17,2511.429); h_SL2L265->SetBinContent(18,2744.286); h_SL2L265->SetBinContent(19,2845.714); h_SL2L265->SetBinContent(20,3250); h_SL2L265->SetBinContent(21,3464.286); h_SL2L265->SetBinContent(22,3518.572); h_SL2L265->SetBinContent(23,3990); h_SL2L265->SetBinContent(24,4220); h_SL2L265->SetBinContent(25,4975.714); h_SL2L265->SetBinContent(26,18742.86); h_SL2L265->SetBinContent(27,38415.71); h_SL2L265->SetBinContent(28,51164.29); h_SL2L265->SetBinContent(29,56075.71); h_SL2L265->SetBinContent(30,55322.86); h_SL2L265->SetBinContent(31,48574.29); h_SL2L265->SetBinContent(32,45862.86); h_SL2L265->SetBinContent(33,45147.14); h_SL2L265->SetBinContent(34,37681.43); h_SL2L265->SetBinContent(35,13398.57); h_SL2L265->SetBinContent(36,5504.286); h_SL2L265->SetBinContent(37,3865.714); h_SL2L265->SetBinContent(38,3194.286); h_SL2L265->SetBinContent(39,2774.286); h_SL2L265->SetBinContent(40,2732.857); h_SL2L265->SetBinContent(41,2297.143); h_SL2L265->SetBinContent(42,2108.572); h_SL2L265->SetBinContent(43,1901.429); h_SL2L265->SetBinContent(44,1807.143); h_SL2L265->SetBinContent(45,1557.143); h_SL2L265->SetBinContent(46,1515.714); h_SL2L265->SetBinContent(47,1288.571); h_SL2L265->SetBinContent(48,1268.571); h_SL2L265->SetBinContent(49,1222.857); h_SL2L265->SetBinContent(50,1115.714); h_SL2L265->SetBinContent(51,1065.714); h_SL2L265->SetBinContent(52,1088.571); h_SL2L265->SetBinContent(53,982.8572); h_SL2L265->SetBinContent(54,1041.429); h_SL2L265->SetBinContent(55,951.4286); h_SL2L265->SetBinContent(56,911.4286); h_SL2L265->SetBinContent(57,768.5715); h_SL2L265->SetMaximum(82220.08); 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,745.7143); h_SL2L366->SetBinContent(2,932.8572); h_SL2L366->SetBinContent(3,1065.714); h_SL2L366->SetBinContent(4,1147.143); h_SL2L366->SetBinContent(5,1214.286); h_SL2L366->SetBinContent(6,1191.429); h_SL2L366->SetBinContent(7,1220); h_SL2L366->SetBinContent(8,1304.286); h_SL2L366->SetBinContent(9,1468.571); h_SL2L366->SetBinContent(10,1490); h_SL2L366->SetBinContent(11,1682.857); h_SL2L366->SetBinContent(12,1778.571); h_SL2L366->SetBinContent(13,1937.143); h_SL2L366->SetBinContent(14,2171.429); h_SL2L366->SetBinContent(15,2301.429); h_SL2L366->SetBinContent(16,2337.143); h_SL2L366->SetBinContent(17,2528.572); h_SL2L366->SetBinContent(18,2708.572); h_SL2L366->SetBinContent(19,3005.714); h_SL2L366->SetBinContent(20,3370); h_SL2L366->SetBinContent(21,3420); h_SL2L366->SetBinContent(22,3715.714); h_SL2L366->SetBinContent(23,3971.429); h_SL2L366->SetBinContent(24,4397.143); h_SL2L366->SetBinContent(25,9195.715); h_SL2L366->SetBinContent(26,29370); h_SL2L366->SetBinContent(27,45725.71); h_SL2L366->SetBinContent(28,54440); h_SL2L366->SetBinContent(29,56452.86); h_SL2L366->SetBinContent(30,52577.14); h_SL2L366->SetBinContent(31,46352.86); h_SL2L366->SetBinContent(32,45367.14); h_SL2L366->SetBinContent(33,43975.71); h_SL2L366->SetBinContent(34,24697.14); h_SL2L366->SetBinContent(35,7728.572); h_SL2L366->SetBinContent(36,4454.286); h_SL2L366->SetBinContent(37,3278.572); h_SL2L366->SetBinContent(38,2885.714); h_SL2L366->SetBinContent(39,2397.143); h_SL2L366->SetBinContent(40,2322.857); h_SL2L366->SetBinContent(41,2178.572); h_SL2L366->SetBinContent(42,1827.143); h_SL2L366->SetBinContent(43,1740); h_SL2L366->SetBinContent(44,1561.429); h_SL2L366->SetBinContent(45,1465.714); h_SL2L366->SetBinContent(46,1390); h_SL2L366->SetBinContent(47,1257.143); h_SL2L366->SetBinContent(48,1217.143); h_SL2L366->SetBinContent(49,1131.429); h_SL2L366->SetBinContent(50,1080); h_SL2L366->SetBinContent(51,1070); h_SL2L366->SetBinContent(52,987.1429); h_SL2L366->SetBinContent(53,958.5715); h_SL2L366->SetBinContent(54,962.8572); h_SL2L366->SetBinContent(55,891.4286); h_SL2L366->SetBinContent(56,841.4286); h_SL2L366->SetBinContent(57,742.8572); h_SL2L366->SetMaximum(82220.08); 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,798.5715); h_SL2L467->SetBinContent(3,975.7143); h_SL2L467->SetBinContent(4,1075.714); h_SL2L467->SetBinContent(5,1154.286); h_SL2L467->SetBinContent(6,1202.857); h_SL2L467->SetBinContent(7,1178.571); h_SL2L467->SetBinContent(8,1251.429); h_SL2L467->SetBinContent(9,1304.286); h_SL2L467->SetBinContent(10,1468.571); h_SL2L467->SetBinContent(11,1605.714); h_SL2L467->SetBinContent(12,1664.286); h_SL2L467->SetBinContent(13,1760); h_SL2L467->SetBinContent(14,1991.429); h_SL2L467->SetBinContent(15,2192.857); h_SL2L467->SetBinContent(16,2270); h_SL2L467->SetBinContent(17,2328.572); h_SL2L467->SetBinContent(18,2665.714); h_SL2L467->SetBinContent(19,2718.572); h_SL2L467->SetBinContent(20,3167.143); h_SL2L467->SetBinContent(21,3265.714); h_SL2L467->SetBinContent(22,3412.857); h_SL2L467->SetBinContent(23,3872.857); h_SL2L467->SetBinContent(24,4105.714); h_SL2L467->SetBinContent(25,4822.857); h_SL2L467->SetBinContent(26,18755.71); h_SL2L467->SetBinContent(27,38524.29); h_SL2L467->SetBinContent(28,51258.57); h_SL2L467->SetBinContent(29,56171.43); h_SL2L467->SetBinContent(30,55921.43); h_SL2L467->SetBinContent(31,48581.43); h_SL2L467->SetBinContent(32,45902.86); h_SL2L467->SetBinContent(33,45295.71); h_SL2L467->SetBinContent(34,37815.71); h_SL2L467->SetBinContent(35,13252.86); h_SL2L467->SetBinContent(36,5407.143); h_SL2L467->SetBinContent(37,3687.143); h_SL2L467->SetBinContent(38,3020); h_SL2L467->SetBinContent(39,2598.572); h_SL2L467->SetBinContent(40,2157.143); h_SL2L467->SetBinContent(41,2128.572); h_SL2L467->SetBinContent(42,1921.429); h_SL2L467->SetBinContent(43,1820); h_SL2L467->SetBinContent(44,1598.571); h_SL2L467->SetBinContent(45,1494.286); h_SL2L467->SetBinContent(46,1375.714); h_SL2L467->SetBinContent(47,1310); h_SL2L467->SetBinContent(48,1194.286); h_SL2L467->SetBinContent(49,1122.857); h_SL2L467->SetBinContent(50,1037.143); h_SL2L467->SetBinContent(51,1030); h_SL2L467->SetBinContent(52,1042.857); h_SL2L467->SetBinContent(53,950); h_SL2L467->SetBinContent(54,987.1429); h_SL2L467->SetBinContent(55,908.5715); h_SL2L467->SetBinContent(56,855.7143); h_SL2L467->SetBinContent(57,777.1429); h_SL2L467->SetMaximum(82220.08); 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 5316"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }