void RatesPerCell_Removing_noisy_cells_run_5649_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:29:26 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9691.051,67.5,87219.45); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5649",60,0,60); h_SL2L164->SetBinContent(1,765.7143); h_SL2L164->SetBinContent(2,960); h_SL2L164->SetBinContent(3,1055.714); h_SL2L164->SetBinContent(4,1124.286); h_SL2L164->SetBinContent(5,1194.286); h_SL2L164->SetBinContent(6,1235.714); h_SL2L164->SetBinContent(7,1235.714); h_SL2L164->SetBinContent(8,1405.714); h_SL2L164->SetBinContent(9,1442.857); h_SL2L164->SetBinContent(10,1632.857); h_SL2L164->SetBinContent(11,1815.714); h_SL2L164->SetBinContent(12,1910); h_SL2L164->SetBinContent(13,2137.143); h_SL2L164->SetBinContent(14,2242.857); h_SL2L164->SetBinContent(15,2471.429); h_SL2L164->SetBinContent(16,2601.429); h_SL2L164->SetBinContent(17,2934.286); h_SL2L164->SetBinContent(18,2871.429); h_SL2L164->SetBinContent(19,3272.857); h_SL2L164->SetBinContent(20,3545.714); h_SL2L164->SetBinContent(21,3610); h_SL2L164->SetBinContent(22,3830); h_SL2L164->SetBinContent(23,4181.429); h_SL2L164->SetBinContent(24,4504.286); h_SL2L164->SetBinContent(25,9788.571); h_SL2L164->SetBinContent(26,32165.71); h_SL2L164->SetBinContent(27,49412.86); h_SL2L164->SetBinContent(28,57940); h_SL2L164->SetBinContent(29,58274.29); h_SL2L164->SetBinContent(30,52434.29); h_SL2L164->SetBinContent(31,44644.29); h_SL2L164->SetBinContent(32,42370); h_SL2L164->SetBinContent(33,39727.14); h_SL2L164->SetBinContent(34,21951.43); h_SL2L164->SetBinContent(36,4072.857); h_SL2L164->SetBinContent(37,3331.429); h_SL2L164->SetBinContent(38,2684.286); h_SL2L164->SetBinContent(39,2444.286); h_SL2L164->SetBinContent(40,1931.429); h_SL2L164->SetBinContent(41,1931.429); h_SL2L164->SetBinContent(42,1890); h_SL2L164->SetBinContent(43,1711.429); h_SL2L164->SetBinContent(44,1567.143); h_SL2L164->SetBinContent(45,1405.714); h_SL2L164->SetBinContent(46,1402.857); h_SL2L164->SetBinContent(47,1318.571); h_SL2L164->SetBinContent(48,1205.714); h_SL2L164->SetBinContent(49,1162.857); h_SL2L164->SetBinContent(50,1127.143); h_SL2L164->SetBinContent(51,1080); h_SL2L164->SetBinContent(52,1012.857); h_SL2L164->SetBinContent(53,992.8572); h_SL2L164->SetBinContent(54,958.5715); h_SL2L164->SetBinContent(55,912.8572); h_SL2L164->SetBinContent(56,834.2857); h_SL2L164->SetBinContent(57,797.1429); h_SL2L164->SetMaximum(77528.4); 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,734.2857); h_SL2L265->SetBinContent(2,897.1429); h_SL2L265->SetBinContent(3,1025.714); h_SL2L265->SetBinContent(4,1034.286); h_SL2L265->SetBinContent(5,1170); h_SL2L265->SetBinContent(6,1155.714); h_SL2L265->SetBinContent(7,1197.143); h_SL2L265->SetBinContent(8,1312.857); h_SL2L265->SetBinContent(9,1388.571); h_SL2L265->SetBinContent(10,1500); h_SL2L265->SetBinContent(11,1681.429); h_SL2L265->SetBinContent(12,1840); h_SL2L265->SetBinContent(13,1968.572); h_SL2L265->SetBinContent(14,2144.286); h_SL2L265->SetBinContent(15,2362.857); h_SL2L265->SetBinContent(16,2415.714); h_SL2L265->SetBinContent(17,2705.714); h_SL2L265->SetBinContent(18,2901.429); h_SL2L265->SetBinContent(19,2937.143); h_SL2L265->SetBinContent(20,3467.143); h_SL2L265->SetBinContent(21,3462.857); h_SL2L265->SetBinContent(22,3675.714); h_SL2L265->SetBinContent(23,3930); h_SL2L265->SetBinContent(24,4264.286); h_SL2L265->SetBinContent(25,5018.572); h_SL2L265->SetBinContent(26,20387.14); h_SL2L265->SetBinContent(27,41975.71); h_SL2L265->SetBinContent(28,54418.57); h_SL2L265->SetBinContent(29,58622.86); h_SL2L265->SetBinContent(30,55927.14); h_SL2L265->SetBinContent(31,47815.71); h_SL2L265->SetBinContent(32,42611.43); h_SL2L265->SetBinContent(33,41280); h_SL2L265->SetBinContent(34,33312.86); h_SL2L265->SetBinContent(35,12007.14); h_SL2L265->SetBinContent(36,4705.714); h_SL2L265->SetBinContent(37,3531.429); h_SL2L265->SetBinContent(38,2941.429); h_SL2L265->SetBinContent(39,2527.143); h_SL2L265->SetBinContent(40,2265.714); h_SL2L265->SetBinContent(41,2101.429); h_SL2L265->SetBinContent(42,1895.714); h_SL2L265->SetBinContent(43,1765.714); h_SL2L265->SetBinContent(44,1612.857); h_SL2L265->SetBinContent(45,1575.714); h_SL2L265->SetBinContent(46,1385.714); h_SL2L265->SetBinContent(47,1361.429); h_SL2L265->SetBinContent(48,1218.571); h_SL2L265->SetBinContent(49,1175.714); h_SL2L265->SetBinContent(50,1097.143); h_SL2L265->SetBinContent(51,1018.571); h_SL2L265->SetBinContent(52,1010); h_SL2L265->SetBinContent(53,990); h_SL2L265->SetBinContent(54,982.8572); h_SL2L265->SetBinContent(55,950); h_SL2L265->SetBinContent(56,825.7143); h_SL2L265->SetBinContent(57,878.5715); h_SL2L265->SetMaximum(67416.29); 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,802.8572); h_SL2L366->SetBinContent(2,955.7143); h_SL2L366->SetBinContent(3,1037.143); h_SL2L366->SetBinContent(4,1074.286); h_SL2L366->SetBinContent(5,1108.571); h_SL2L366->SetBinContent(6,1192.857); h_SL2L366->SetBinContent(7,1151.429); h_SL2L366->SetBinContent(8,1385.714); h_SL2L366->SetBinContent(9,1427.143); h_SL2L366->SetBinContent(10,1540); h_SL2L366->SetBinContent(11,1737.143); h_SL2L366->SetBinContent(12,1805.714); h_SL2L366->SetBinContent(13,2041.429); h_SL2L366->SetBinContent(14,2171.429); h_SL2L366->SetBinContent(15,2350); h_SL2L366->SetBinContent(16,2504.286); h_SL2L366->SetBinContent(17,2812.857); h_SL2L366->SetBinContent(18,2791.429); h_SL2L366->SetBinContent(19,3131.429); h_SL2L366->SetBinContent(20,3467.143); h_SL2L366->SetBinContent(21,3438.572); h_SL2L366->SetBinContent(22,3774.286); h_SL2L366->SetBinContent(23,4051.429); h_SL2L366->SetBinContent(24,4385.714); h_SL2L366->SetBinContent(25,9568.571); h_SL2L366->SetBinContent(26,32052.86); h_SL2L366->SetBinContent(27,49157.14); h_SL2L366->SetBinContent(28,57742.86); h_SL2L366->SetBinContent(29,57728.57); h_SL2L366->SetBinContent(30,52225.71); h_SL2L366->SetBinContent(31,44384.29); h_SL2L366->SetBinContent(32,42235.71); h_SL2L366->SetBinContent(33,39484.29); h_SL2L366->SetBinContent(34,21885.71); h_SL2L366->SetBinContent(35,6677.143); h_SL2L366->SetBinContent(36,3974.286); h_SL2L366->SetBinContent(37,3092.857); h_SL2L366->SetBinContent(38,2605.714); h_SL2L366->SetBinContent(39,2282.857); h_SL2L366->SetBinContent(40,2187.143); h_SL2L366->SetBinContent(41,1964.286); h_SL2L366->SetBinContent(42,1761.429); h_SL2L366->SetBinContent(43,1685.714); h_SL2L366->SetBinContent(44,1530); h_SL2L366->SetBinContent(45,1371.429); h_SL2L366->SetBinContent(46,1348.571); h_SL2L366->SetBinContent(47,1230); h_SL2L366->SetBinContent(48,1198.571); h_SL2L366->SetBinContent(49,1137.143); h_SL2L366->SetBinContent(50,1110); h_SL2L366->SetBinContent(51,1044.286); h_SL2L366->SetBinContent(52,950); h_SL2L366->SetBinContent(53,948.5715); h_SL2L366->SetBinContent(54,934.2858); h_SL2L366->SetBinContent(55,847.1429); h_SL2L366->SetBinContent(56,854.2857); h_SL2L366->SetBinContent(57,847.1429); h_SL2L366->SetMaximum(67416.29); 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,885.7143); h_SL2L467->SetBinContent(3,1041.429); h_SL2L467->SetBinContent(4,974.2858); h_SL2L467->SetBinContent(5,1102.857); h_SL2L467->SetBinContent(6,1118.571); h_SL2L467->SetBinContent(7,1194.286); h_SL2L467->SetBinContent(8,1281.429); h_SL2L467->SetBinContent(9,1365.714); h_SL2L467->SetBinContent(10,1402.857); h_SL2L467->SetBinContent(11,1608.571); h_SL2L467->SetBinContent(12,1750); h_SL2L467->SetBinContent(13,1802.857); h_SL2L467->SetBinContent(14,2024.286); h_SL2L467->SetBinContent(15,2270); h_SL2L467->SetBinContent(16,2308.572); h_SL2L467->SetBinContent(17,2552.857); h_SL2L467->SetBinContent(18,2720); h_SL2L467->SetBinContent(19,2794.286); h_SL2L467->SetBinContent(20,3360); h_SL2L467->SetBinContent(21,3342.857); h_SL2L467->SetBinContent(22,3591.429); h_SL2L467->SetBinContent(23,3822.857); h_SL2L467->SetBinContent(24,4137.143); h_SL2L467->SetBinContent(25,4845.714); h_SL2L467->SetBinContent(26,20297.14); h_SL2L467->SetBinContent(27,42042.86); h_SL2L467->SetBinContent(28,54501.43); h_SL2L467->SetBinContent(29,58621.43); h_SL2L467->SetBinContent(30,56387.14); h_SL2L467->SetBinContent(31,47658.57); h_SL2L467->SetBinContent(32,42710); h_SL2L467->SetBinContent(33,41392.86); h_SL2L467->SetBinContent(34,33294.29); h_SL2L467->SetBinContent(35,11760); h_SL2L467->SetBinContent(36,4615.714); h_SL2L467->SetBinContent(37,3397.143); h_SL2L467->SetBinContent(38,2757.143); h_SL2L467->SetBinContent(39,2387.143); h_SL2L467->SetBinContent(40,2188.572); h_SL2L467->SetBinContent(41,1992.857); h_SL2L467->SetBinContent(42,1837.143); h_SL2L467->SetBinContent(43,1690); h_SL2L467->SetBinContent(44,1571.429); h_SL2L467->SetBinContent(45,1477.143); h_SL2L467->SetBinContent(46,1338.571); h_SL2L467->SetBinContent(47,1245.714); h_SL2L467->SetBinContent(48,1194.286); h_SL2L467->SetBinContent(49,1184.286); h_SL2L467->SetBinContent(50,1035.714); h_SL2L467->SetBinContent(51,1057.143); h_SL2L467->SetBinContent(52,1012.857); h_SL2L467->SetBinContent(53,941.4286); h_SL2L467->SetBinContent(54,964.2858); h_SL2L467->SetBinContent(55,887.1429); h_SL2L467->SetBinContent(56,808.5715); h_SL2L467->SetBinContent(57,861.4286); h_SL2L467->SetMaximum(67416.29); 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 5649"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }