void RatesPerCell_Removing_noisy_cells_run_5670_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:26:57 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9569.438,67.5,86124.94); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5670",60,0,60); h_SL2L164->SetBinContent(1,618.5715); h_SL2L164->SetBinContent(2,690); h_SL2L164->SetBinContent(3,862.8572); h_SL2L164->SetBinContent(4,990); h_SL2L164->SetBinContent(5,1005.714); h_SL2L164->SetBinContent(6,997.1429); h_SL2L164->SetBinContent(7,984.2858); h_SL2L164->SetBinContent(8,1144.286); h_SL2L164->SetBinContent(9,1202.857); h_SL2L164->SetBinContent(10,1318.571); h_SL2L164->SetBinContent(11,1561.429); h_SL2L164->SetBinContent(12,1621.429); h_SL2L164->SetBinContent(13,1811.429); h_SL2L164->SetBinContent(14,1905.714); h_SL2L164->SetBinContent(15,2068.572); h_SL2L164->SetBinContent(16,2265.714); h_SL2L164->SetBinContent(17,2402.857); h_SL2L164->SetBinContent(18,2652.857); h_SL2L164->SetBinContent(19,2881.429); h_SL2L164->SetBinContent(20,2984.286); h_SL2L164->SetBinContent(21,3114.286); h_SL2L164->SetBinContent(22,3312.857); h_SL2L164->SetBinContent(23,3594.286); h_SL2L164->SetBinContent(24,4098.571); h_SL2L164->SetBinContent(25,9480); h_SL2L164->SetBinContent(26,31577.14); h_SL2L164->SetBinContent(27,48778.57); h_SL2L164->SetBinContent(28,56644.29); h_SL2L164->SetBinContent(29,57817.14); h_SL2L164->SetBinContent(30,51992.86); h_SL2L164->SetBinContent(31,44521.43); h_SL2L164->SetBinContent(32,42674.29); h_SL2L164->SetBinContent(33,39932.86); h_SL2L164->SetBinContent(34,21811.43); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,3652.857); h_SL2L164->SetBinContent(37,2948.572); h_SL2L164->SetBinContent(38,2532.857); h_SL2L164->SetBinContent(39,2142.857); h_SL2L164->SetBinContent(40,1597.143); h_SL2L164->SetBinContent(41,1648.571); h_SL2L164->SetBinContent(42,1520); h_SL2L164->SetBinContent(43,1474.286); h_SL2L164->SetBinContent(44,1277.143); h_SL2L164->SetBinContent(45,1307.143); h_SL2L164->SetBinContent(46,1165.714); h_SL2L164->SetBinContent(47,1111.429); h_SL2L164->SetBinContent(48,1058.571); h_SL2L164->SetBinContent(49,1011.429); h_SL2L164->SetBinContent(50,935.7143); h_SL2L164->SetBinContent(51,834.2857); h_SL2L164->SetBinContent(52,790); h_SL2L164->SetBinContent(53,822.8572); h_SL2L164->SetBinContent(54,767.1429); h_SL2L164->SetBinContent(55,715.7143); h_SL2L164->SetBinContent(56,637.1429); h_SL2L164->SetBinContent(57,605.7143); h_SL2L164->SetMaximum(76555.5); 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,562.8572); h_SL2L265->SetBinContent(2,684.2857); h_SL2L265->SetBinContent(3,738.5715); h_SL2L265->SetBinContent(4,911.4286); h_SL2L265->SetBinContent(5,921.4286); h_SL2L265->SetBinContent(6,958.5715); h_SL2L265->SetBinContent(7,1015.714); h_SL2L265->SetBinContent(8,1054.286); h_SL2L265->SetBinContent(9,1107.143); h_SL2L265->SetBinContent(10,1218.571); h_SL2L265->SetBinContent(11,1412.857); h_SL2L265->SetBinContent(12,1487.143); h_SL2L265->SetBinContent(13,1615.714); h_SL2L265->SetBinContent(14,1802.857); h_SL2L265->SetBinContent(15,1865.714); h_SL2L265->SetBinContent(16,2218.572); h_SL2L265->SetBinContent(17,2218.572); h_SL2L265->SetBinContent(18,2428.572); h_SL2L265->SetBinContent(19,2720); h_SL2L265->SetBinContent(20,2935.714); h_SL2L265->SetBinContent(21,3027.143); h_SL2L265->SetBinContent(22,3118.572); h_SL2L265->SetBinContent(23,3385.714); h_SL2L265->SetBinContent(24,3810); h_SL2L265->SetBinContent(25,4504.286); h_SL2L265->SetBinContent(26,19910); h_SL2L265->SetBinContent(27,41445.71); h_SL2L265->SetBinContent(28,53292.86); h_SL2L265->SetBinContent(29,57887.14); h_SL2L265->SetBinContent(30,55511.43); h_SL2L265->SetBinContent(31,47405.71); h_SL2L265->SetBinContent(32,42950); h_SL2L265->SetBinContent(33,41517.14); h_SL2L265->SetBinContent(34,33618.57); h_SL2L265->SetBinContent(35,11538.57); h_SL2L265->SetBinContent(36,4352.857); h_SL2L265->SetBinContent(37,3235.714); h_SL2L265->SetBinContent(38,2630); h_SL2L265->SetBinContent(39,2360); h_SL2L265->SetBinContent(40,1890); h_SL2L265->SetBinContent(41,1694.286); h_SL2L265->SetBinContent(42,1617.143); h_SL2L265->SetBinContent(43,1481.429); h_SL2L265->SetBinContent(44,1368.571); h_SL2L265->SetBinContent(45,1251.429); h_SL2L265->SetBinContent(46,1171.429); h_SL2L265->SetBinContent(47,1107.143); h_SL2L265->SetBinContent(48,1011.429); h_SL2L265->SetBinContent(49,1018.571); h_SL2L265->SetBinContent(50,922.8572); h_SL2L265->SetBinContent(51,855.7143); h_SL2L265->SetBinContent(52,807.1429); h_SL2L265->SetBinContent(53,758.5715); h_SL2L265->SetBinContent(54,791.4286); h_SL2L265->SetBinContent(55,708.5715); h_SL2L265->SetBinContent(56,664.2857); h_SL2L265->SetBinContent(57,575.7143); h_SL2L265->SetMaximum(66570.22); 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,624.2857); h_SL2L366->SetBinContent(2,698.5715); h_SL2L366->SetBinContent(3,851.4286); h_SL2L366->SetBinContent(4,928.5715); h_SL2L366->SetBinContent(5,915.7143); h_SL2L366->SetBinContent(6,981.4286); h_SL2L366->SetBinContent(7,947.1429); h_SL2L366->SetBinContent(8,1117.143); h_SL2L366->SetBinContent(9,1171.429); h_SL2L366->SetBinContent(10,1232.857); h_SL2L366->SetBinContent(11,1400); h_SL2L366->SetBinContent(12,1571.429); h_SL2L366->SetBinContent(13,1618.571); h_SL2L366->SetBinContent(14,1831.429); h_SL2L366->SetBinContent(15,2021.429); h_SL2L366->SetBinContent(16,2201.429); h_SL2L366->SetBinContent(17,2217.143); h_SL2L366->SetBinContent(18,2590); h_SL2L366->SetBinContent(19,2775.714); h_SL2L366->SetBinContent(20,2927.143); h_SL2L366->SetBinContent(21,2948.572); h_SL2L366->SetBinContent(22,3240); h_SL2L366->SetBinContent(23,3438.572); h_SL2L366->SetBinContent(24,3992.857); h_SL2L366->SetBinContent(25,9288.571); h_SL2L366->SetBinContent(26,31521.43); h_SL2L366->SetBinContent(27,48725.71); h_SL2L366->SetBinContent(28,56461.43); h_SL2L366->SetBinContent(29,57331.43); h_SL2L366->SetBinContent(30,51611.43); h_SL2L366->SetBinContent(31,44434.29); h_SL2L366->SetBinContent(32,42612.86); h_SL2L366->SetBinContent(33,39827.14); h_SL2L366->SetBinContent(34,21837.14); h_SL2L366->SetBinContent(35,6328.572); h_SL2L366->SetBinContent(36,3692.857); h_SL2L366->SetBinContent(37,2818.572); h_SL2L366->SetBinContent(38,2365.714); h_SL2L366->SetBinContent(39,2100); h_SL2L366->SetBinContent(40,1810); h_SL2L366->SetBinContent(41,1694.286); h_SL2L366->SetBinContent(42,1475.714); h_SL2L366->SetBinContent(43,1392.857); h_SL2L366->SetBinContent(44,1280); h_SL2L366->SetBinContent(45,1152.857); h_SL2L366->SetBinContent(46,1094.286); h_SL2L366->SetBinContent(47,1041.429); h_SL2L366->SetBinContent(48,1031.429); h_SL2L366->SetBinContent(49,934.2858); h_SL2L366->SetBinContent(50,870); h_SL2L366->SetBinContent(51,775.7143); h_SL2L366->SetBinContent(52,751.4286); h_SL2L366->SetBinContent(53,757.1429); h_SL2L366->SetBinContent(54,735.7143); h_SL2L366->SetBinContent(55,694.2857); h_SL2L366->SetBinContent(56,597.1429); h_SL2L366->SetBinContent(57,574.2857); h_SL2L366->SetMaximum(66570.22); 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,640); h_SL2L467->SetBinContent(3,734.2857); h_SL2L467->SetBinContent(4,862.8572); h_SL2L467->SetBinContent(5,924.2858); h_SL2L467->SetBinContent(6,887.1429); h_SL2L467->SetBinContent(7,921.4286); h_SL2L467->SetBinContent(8,1000); h_SL2L467->SetBinContent(9,1051.429); h_SL2L467->SetBinContent(10,1162.857); h_SL2L467->SetBinContent(11,1291.429); h_SL2L467->SetBinContent(12,1397.143); h_SL2L467->SetBinContent(13,1538.571); h_SL2L467->SetBinContent(14,1692.857); h_SL2L467->SetBinContent(15,1832.857); h_SL2L467->SetBinContent(16,2064.286); h_SL2L467->SetBinContent(17,2130); h_SL2L467->SetBinContent(18,2354.286); h_SL2L467->SetBinContent(19,2631.429); h_SL2L467->SetBinContent(20,2884.286); h_SL2L467->SetBinContent(21,2870); h_SL2L467->SetBinContent(22,2977.143); h_SL2L467->SetBinContent(23,3305.714); h_SL2L467->SetBinContent(24,3677.143); h_SL2L467->SetBinContent(25,4354.286); h_SL2L467->SetBinContent(26,19912.86); h_SL2L467->SetBinContent(27,41362.86); h_SL2L467->SetBinContent(28,53312.86); h_SL2L467->SetBinContent(29,57797.14); h_SL2L467->SetBinContent(30,55911.43); h_SL2L467->SetBinContent(31,47417.14); h_SL2L467->SetBinContent(32,43168.57); h_SL2L467->SetBinContent(33,41524.29); h_SL2L467->SetBinContent(34,33627.14); h_SL2L467->SetBinContent(35,11542.86); h_SL2L467->SetBinContent(36,4238.571); h_SL2L467->SetBinContent(37,3088.572); h_SL2L467->SetBinContent(38,2500); h_SL2L467->SetBinContent(39,2240); h_SL2L467->SetBinContent(40,1828.572); h_SL2L467->SetBinContent(41,1647.143); h_SL2L467->SetBinContent(42,1590); h_SL2L467->SetBinContent(43,1301.429); h_SL2L467->SetBinContent(44,1317.143); h_SL2L467->SetBinContent(45,1185.714); h_SL2L467->SetBinContent(46,1134.286); h_SL2L467->SetBinContent(47,1041.429); h_SL2L467->SetBinContent(48,982.8572); h_SL2L467->SetBinContent(49,1007.143); h_SL2L467->SetBinContent(50,841.4286); h_SL2L467->SetBinContent(51,865.7143); h_SL2L467->SetBinContent(52,735.7143); h_SL2L467->SetBinContent(53,752.8572); h_SL2L467->SetBinContent(54,738.5715); h_SL2L467->SetBinContent(55,677.1429); h_SL2L467->SetBinContent(56,654.2857); h_SL2L467->SetBinContent(57,545.7143); h_SL2L467->SetMaximum(66570.22); 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 5670"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }