void RatesPerCell_Removing_noisy_cells_run_5650_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:26:51 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9745.101,67.5,87705.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5650",60,0,60); h_SL2L164->SetBinContent(1,820); h_SL2L164->SetBinContent(2,944.2858); h_SL2L164->SetBinContent(3,1058.571); h_SL2L164->SetBinContent(4,1194.286); h_SL2L164->SetBinContent(5,1232.857); h_SL2L164->SetBinContent(6,1310); h_SL2L164->SetBinContent(7,1220); h_SL2L164->SetBinContent(8,1404.286); h_SL2L164->SetBinContent(9,1608.571); h_SL2L164->SetBinContent(10,1688.571); h_SL2L164->SetBinContent(11,1927.143); h_SL2L164->SetBinContent(12,2027.143); h_SL2L164->SetBinContent(13,2164.286); h_SL2L164->SetBinContent(14,2265.714); h_SL2L164->SetBinContent(15,2370); h_SL2L164->SetBinContent(16,2711.429); h_SL2L164->SetBinContent(17,2874.286); h_SL2L164->SetBinContent(18,2991.429); h_SL2L164->SetBinContent(19,3212.857); h_SL2L164->SetBinContent(20,3577.143); h_SL2L164->SetBinContent(21,3678.572); h_SL2L164->SetBinContent(22,3997.143); h_SL2L164->SetBinContent(23,4064.286); h_SL2L164->SetBinContent(24,4594.286); h_SL2L164->SetBinContent(25,10031.43); h_SL2L164->SetBinContent(26,32710); h_SL2L164->SetBinContent(27,49794.29); h_SL2L164->SetBinContent(28,58022.86); h_SL2L164->SetBinContent(29,58644.29); h_SL2L164->SetBinContent(30,52734.29); h_SL2L164->SetBinContent(31,44551.43); h_SL2L164->SetBinContent(32,42157.14); h_SL2L164->SetBinContent(33,39261.43); h_SL2L164->SetBinContent(34,21908.57); h_SL2L164->SetBinContent(36,4007.143); h_SL2L164->SetBinContent(37,3207.143); h_SL2L164->SetBinContent(38,2737.143); h_SL2L164->SetBinContent(39,2501.429); h_SL2L164->SetBinContent(40,1932.857); h_SL2L164->SetBinContent(41,1928.572); h_SL2L164->SetBinContent(42,1804.286); h_SL2L164->SetBinContent(43,1635.714); h_SL2L164->SetBinContent(44,1627.143); h_SL2L164->SetBinContent(45,1448.571); h_SL2L164->SetBinContent(46,1357.143); h_SL2L164->SetBinContent(47,1388.571); h_SL2L164->SetBinContent(48,1268.571); h_SL2L164->SetBinContent(49,1205.714); h_SL2L164->SetBinContent(50,1165.714); h_SL2L164->SetBinContent(51,1138.571); h_SL2L164->SetBinContent(52,1042.857); h_SL2L164->SetBinContent(53,1008.571); h_SL2L164->SetBinContent(54,1027.143); h_SL2L164->SetBinContent(55,980); h_SL2L164->SetBinContent(56,847.1429); h_SL2L164->SetBinContent(57,837.1429); h_SL2L164->SetMaximum(77960.8); 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,780); h_SL2L265->SetBinContent(2,881.4286); h_SL2L265->SetBinContent(3,971.4286); h_SL2L265->SetBinContent(4,1077.143); h_SL2L265->SetBinContent(5,1187.143); h_SL2L265->SetBinContent(6,1280); h_SL2L265->SetBinContent(7,1277.143); h_SL2L265->SetBinContent(8,1278.571); h_SL2L265->SetBinContent(9,1488.571); h_SL2L265->SetBinContent(10,1607.143); h_SL2L265->SetBinContent(11,1830); h_SL2L265->SetBinContent(12,1960); h_SL2L265->SetBinContent(13,2052.857); h_SL2L265->SetBinContent(14,2252.857); h_SL2L265->SetBinContent(15,2254.286); h_SL2L265->SetBinContent(16,2482.857); h_SL2L265->SetBinContent(17,2781.429); h_SL2L265->SetBinContent(18,2862.857); h_SL2L265->SetBinContent(19,3050); h_SL2L265->SetBinContent(20,3477.143); h_SL2L265->SetBinContent(21,3515.714); h_SL2L265->SetBinContent(22,3650); h_SL2L265->SetBinContent(23,3955.714); h_SL2L265->SetBinContent(24,4217.143); h_SL2L265->SetBinContent(25,5091.429); h_SL2L265->SetBinContent(26,20585.71); h_SL2L265->SetBinContent(27,42465.71); h_SL2L265->SetBinContent(28,54631.43); h_SL2L265->SetBinContent(29,58824.29); h_SL2L265->SetBinContent(30,56007.14); h_SL2L265->SetBinContent(31,47968.57); h_SL2L265->SetBinContent(32,42618.57); h_SL2L265->SetBinContent(33,41188.57); h_SL2L265->SetBinContent(34,33141.43); h_SL2L265->SetBinContent(35,11805.71); h_SL2L265->SetBinContent(36,4745.714); h_SL2L265->SetBinContent(37,3505.714); h_SL2L265->SetBinContent(38,2888.572); h_SL2L265->SetBinContent(39,2618.572); h_SL2L265->SetBinContent(40,2391.429); h_SL2L265->SetBinContent(41,2017.143); h_SL2L265->SetBinContent(42,1897.143); h_SL2L265->SetBinContent(43,1632.857); h_SL2L265->SetBinContent(44,1608.571); h_SL2L265->SetBinContent(45,1570); h_SL2L265->SetBinContent(46,1417.143); h_SL2L265->SetBinContent(47,1345.714); h_SL2L265->SetBinContent(48,1297.143); h_SL2L265->SetBinContent(49,1221.429); h_SL2L265->SetBinContent(50,1124.286); h_SL2L265->SetBinContent(51,1130); h_SL2L265->SetBinContent(52,1100); h_SL2L265->SetBinContent(53,965.7143); h_SL2L265->SetBinContent(54,1001.429); h_SL2L265->SetBinContent(55,971.4286); h_SL2L265->SetBinContent(56,908.5715); h_SL2L265->SetBinContent(57,845.7143); h_SL2L265->SetMaximum(67792.5); 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,822.8572); h_SL2L366->SetBinContent(2,940); h_SL2L366->SetBinContent(3,978.5715); h_SL2L366->SetBinContent(4,1148.571); h_SL2L366->SetBinContent(5,1210); h_SL2L366->SetBinContent(6,1224.286); h_SL2L366->SetBinContent(7,1151.429); h_SL2L366->SetBinContent(8,1407.143); h_SL2L366->SetBinContent(9,1495.714); h_SL2L366->SetBinContent(10,1638.571); h_SL2L366->SetBinContent(11,1868.572); h_SL2L366->SetBinContent(12,1948.572); h_SL2L366->SetBinContent(13,2095.714); h_SL2L366->SetBinContent(14,2277.143); h_SL2L366->SetBinContent(15,2337.143); h_SL2L366->SetBinContent(16,2592.857); h_SL2L366->SetBinContent(17,2742.857); h_SL2L366->SetBinContent(18,2864.286); h_SL2L366->SetBinContent(19,3127.143); h_SL2L366->SetBinContent(20,3390); h_SL2L366->SetBinContent(21,3550); h_SL2L366->SetBinContent(22,3934.286); h_SL2L366->SetBinContent(23,3975.714); h_SL2L366->SetBinContent(24,4467.143); h_SL2L366->SetBinContent(25,9850); h_SL2L366->SetBinContent(26,32555.71); h_SL2L366->SetBinContent(27,49688.57); h_SL2L366->SetBinContent(28,57751.43); h_SL2L366->SetBinContent(29,58104.29); h_SL2L366->SetBinContent(30,52455.71); h_SL2L366->SetBinContent(31,44375.71); h_SL2L366->SetBinContent(32,42007.14); h_SL2L366->SetBinContent(33,39110); h_SL2L366->SetBinContent(34,21835.71); h_SL2L366->SetBinContent(35,6660); h_SL2L366->SetBinContent(36,3904.286); h_SL2L366->SetBinContent(37,3067.143); h_SL2L366->SetBinContent(38,2641.429); h_SL2L366->SetBinContent(39,2455.714); h_SL2L366->SetBinContent(40,2128.572); h_SL2L366->SetBinContent(41,1878.572); h_SL2L366->SetBinContent(42,1717.143); h_SL2L366->SetBinContent(43,1545.714); h_SL2L366->SetBinContent(44,1591.429); h_SL2L366->SetBinContent(45,1398.571); h_SL2L366->SetBinContent(46,1385.714); h_SL2L366->SetBinContent(47,1297.143); h_SL2L366->SetBinContent(48,1181.429); h_SL2L366->SetBinContent(49,1150); h_SL2L366->SetBinContent(50,1108.571); h_SL2L366->SetBinContent(51,1098.571); h_SL2L366->SetBinContent(52,1017.143); h_SL2L366->SetBinContent(53,975.7143); h_SL2L366->SetBinContent(54,981.4286); h_SL2L366->SetBinContent(55,898.5715); h_SL2L366->SetBinContent(56,860); h_SL2L366->SetBinContent(57,820); h_SL2L366->SetMaximum(67792.5); 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,871.4286); h_SL2L467->SetBinContent(3,961.4286); h_SL2L467->SetBinContent(4,1027.143); h_SL2L467->SetBinContent(5,1160); h_SL2L467->SetBinContent(6,1201.429); h_SL2L467->SetBinContent(7,1168.571); h_SL2L467->SetBinContent(8,1250); h_SL2L467->SetBinContent(9,1425.714); h_SL2L467->SetBinContent(10,1554.286); h_SL2L467->SetBinContent(11,1720); h_SL2L467->SetBinContent(12,1880); h_SL2L467->SetBinContent(13,1931.429); h_SL2L467->SetBinContent(14,2181.429); h_SL2L467->SetBinContent(15,2230); h_SL2L467->SetBinContent(16,2415.714); h_SL2L467->SetBinContent(17,2677.143); h_SL2L467->SetBinContent(18,2702.857); h_SL2L467->SetBinContent(19,2942.857); h_SL2L467->SetBinContent(20,3372.857); h_SL2L467->SetBinContent(21,3412.857); h_SL2L467->SetBinContent(22,3542.857); h_SL2L467->SetBinContent(23,3868.572); h_SL2L467->SetBinContent(24,4172.857); h_SL2L467->SetBinContent(25,4991.429); h_SL2L467->SetBinContent(26,20560); h_SL2L467->SetBinContent(27,42330); h_SL2L467->SetBinContent(28,54571.43); h_SL2L467->SetBinContent(29,58950); h_SL2L467->SetBinContent(30,56324.29); h_SL2L467->SetBinContent(31,48011.43); h_SL2L467->SetBinContent(32,42784.29); h_SL2L467->SetBinContent(33,41302.86); h_SL2L467->SetBinContent(34,33318.57); h_SL2L467->SetBinContent(35,11755.71); h_SL2L467->SetBinContent(36,4708.572); h_SL2L467->SetBinContent(37,3415.714); h_SL2L467->SetBinContent(38,2805.714); h_SL2L467->SetBinContent(39,2491.429); h_SL2L467->SetBinContent(40,2280); h_SL2L467->SetBinContent(41,1961.429); h_SL2L467->SetBinContent(42,1808.571); h_SL2L467->SetBinContent(43,1527.143); h_SL2L467->SetBinContent(44,1521.429); h_SL2L467->SetBinContent(45,1495.714); h_SL2L467->SetBinContent(46,1361.429); h_SL2L467->SetBinContent(47,1292.857); h_SL2L467->SetBinContent(48,1177.143); h_SL2L467->SetBinContent(49,1158.571); h_SL2L467->SetBinContent(50,1035.714); h_SL2L467->SetBinContent(51,1070); h_SL2L467->SetBinContent(52,1037.143); h_SL2L467->SetBinContent(53,937.1429); h_SL2L467->SetBinContent(54,992.8572); h_SL2L467->SetBinContent(55,908.5715); h_SL2L467->SetBinContent(56,892.8572); h_SL2L467->SetBinContent(57,835.7143); h_SL2L467->SetMaximum(67792.5); 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 5650"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }