void RatesPerCell_Removing_noisy_cells_run_4979_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:09:26 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9145.663,67.5,82310.96); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4979",60,0,60); h_SL2L164->SetBinContent(1,729.2857); h_SL2L164->SetBinContent(2,823.5715); h_SL2L164->SetBinContent(3,942.8572); h_SL2L164->SetBinContent(4,1044.286); h_SL2L164->SetBinContent(5,1090); h_SL2L164->SetBinContent(6,1175); h_SL2L164->SetBinContent(7,1107.143); h_SL2L164->SetBinContent(8,1250); h_SL2L164->SetBinContent(9,1380.714); h_SL2L164->SetBinContent(10,1460.714); h_SL2L164->SetBinContent(11,1630.714); h_SL2L164->SetBinContent(12,1805.714); h_SL2L164->SetBinContent(13,1955.714); h_SL2L164->SetBinContent(14,2005.714); h_SL2L164->SetBinContent(15,2152.857); h_SL2L164->SetBinContent(16,2376.429); h_SL2L164->SetBinContent(17,2470.714); h_SL2L164->SetBinContent(18,2727.143); h_SL2L164->SetBinContent(19,2974.286); h_SL2L164->SetBinContent(20,3192.143); h_SL2L164->SetBinContent(21,3336.429); h_SL2L164->SetBinContent(22,3645); h_SL2L164->SetBinContent(23,3961.429); h_SL2L164->SetBinContent(24,4247.857); h_SL2L164->SetBinContent(25,8907.144); h_SL2L164->SetBinContent(26,28979.29); h_SL2L164->SetBinContent(27,44704.29); h_SL2L164->SetBinContent(28,51950.71); h_SL2L164->SetBinContent(29,55323.57); h_SL2L164->SetBinContent(30,52582.86); h_SL2L164->SetBinContent(31,48655); h_SL2L164->SetBinContent(32,49467.86); h_SL2L164->SetBinContent(33,47770); h_SL2L164->SetBinContent(34,27438.57); h_SL2L164->SetBinContent(35,6.428572); h_SL2L164->SetBinContent(36,4792.143); h_SL2L164->SetBinContent(37,9057.144); h_SL2L164->SetBinContent(38,5511.429); h_SL2L164->SetBinContent(39,7454.286); h_SL2L164->SetBinContent(40,31122.86); h_SL2L164->SetBinContent(41,9372.857); h_SL2L164->SetBinContent(42,10073.57); h_SL2L164->SetBinContent(43,10034.29); h_SL2L164->SetBinContent(44,10165); h_SL2L164->SetBinContent(45,1453.571); h_SL2L164->SetBinContent(46,1297.143); h_SL2L164->SetBinContent(47,1252.857); h_SL2L164->SetBinContent(48,1143.571); h_SL2L164->SetBinContent(49,1030.714); h_SL2L164->SetBinContent(50,950); h_SL2L164->SetBinContent(51,854.2857); h_SL2L164->SetBinContent(52,817.1429); h_SL2L164->SetBinContent(53,780.7143); h_SL2L164->SetBinContent(54,766.4286); h_SL2L164->SetBinContent(55,691.4286); h_SL2L164->SetBinContent(56,566.4286); h_SL2L164->SetBinContent(57,2648.572); h_SL2L164->SetMaximum(73165.3); 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,643.5715); h_SL2L265->SetBinContent(2,796.4286); h_SL2L265->SetBinContent(3,855.7143); h_SL2L265->SetBinContent(4,959.2858); h_SL2L265->SetBinContent(5,1042.143); h_SL2L265->SetBinContent(6,1081.429); h_SL2L265->SetBinContent(7,1159.286); h_SL2L265->SetBinContent(8,1101.429); h_SL2L265->SetBinContent(9,1294.286); h_SL2L265->SetBinContent(10,1366.429); h_SL2L265->SetBinContent(11,1490); h_SL2L265->SetBinContent(12,1680); h_SL2L265->SetBinContent(13,1844.286); h_SL2L265->SetBinContent(14,1948.572); h_SL2L265->SetBinContent(15,2065.714); h_SL2L265->SetBinContent(16,2266.429); h_SL2L265->SetBinContent(17,2352.143); h_SL2L265->SetBinContent(18,2517.857); h_SL2L265->SetBinContent(19,2835.714); h_SL2L265->SetBinContent(20,3039.286); h_SL2L265->SetBinContent(21,3212.857); h_SL2L265->SetBinContent(22,3405); h_SL2L265->SetBinContent(23,3721.429); h_SL2L265->SetBinContent(24,4029.286); h_SL2L265->SetBinContent(25,4808.572); h_SL2L265->SetBinContent(26,18179.29); h_SL2L265->SetBinContent(27,37757.14); h_SL2L265->SetBinContent(28,48768.57); h_SL2L265->SetBinContent(29,53971.43); h_SL2L265->SetBinContent(30,54272.86); h_SL2L265->SetBinContent(31,49618.57); h_SL2L265->SetBinContent(32,48924.29); h_SL2L265->SetBinContent(33,48814.29); h_SL2L265->SetBinContent(34,41527.14); h_SL2L265->SetBinContent(35,14370); h_SL2L265->SetBinContent(36,5413.572); h_SL2L265->SetBinContent(37,3796.429); h_SL2L265->SetBinContent(38,3016.429); h_SL2L265->SetBinContent(39,4271.429); h_SL2L265->SetBinContent(40,5698.572); h_SL2L265->SetBinContent(41,2537.143); h_SL2L265->SetBinContent(42,2777.857); h_SL2L265->SetBinContent(43,2047.857); h_SL2L265->SetBinContent(44,3015); h_SL2L265->SetBinContent(45,1521.429); h_SL2L265->SetBinContent(46,1337.857); h_SL2L265->SetBinContent(47,1214.286); h_SL2L265->SetBinContent(48,1237.143); h_SL2L265->SetBinContent(49,1063.571); h_SL2L265->SetBinContent(50,948.5715); h_SL2L265->SetBinContent(51,875); h_SL2L265->SetBinContent(52,832.1429); h_SL2L265->SetBinContent(53,792.8572); h_SL2L265->SetBinContent(54,800.7143); h_SL2L265->SetBinContent(55,724.2857); h_SL2L265->SetBinContent(56,640.7143); h_SL2L265->SetBinContent(57,555.7143); h_SL2L265->SetMaximum(63622.11); 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,719.2857); h_SL2L366->SetBinContent(2,767.1429); h_SL2L366->SetBinContent(3,875.7143); h_SL2L366->SetBinContent(4,966.4286); h_SL2L366->SetBinContent(5,1039.286); h_SL2L366->SetBinContent(6,1090.714); h_SL2L366->SetBinContent(7,1042.143); h_SL2L366->SetBinContent(8,1207.857); h_SL2L366->SetBinContent(9,1312.143); h_SL2L366->SetBinContent(10,1360.714); h_SL2L366->SetBinContent(11,1516.429); h_SL2L366->SetBinContent(12,1760.714); h_SL2L366->SetBinContent(13,1821.429); h_SL2L366->SetBinContent(14,1923.572); h_SL2L366->SetBinContent(15,2059.286); h_SL2L366->SetBinContent(16,2214.286); h_SL2L366->SetBinContent(17,2341.429); h_SL2L366->SetBinContent(18,2637.857); h_SL2L366->SetBinContent(19,2892.143); h_SL2L366->SetBinContent(20,3057.857); h_SL2L366->SetBinContent(21,3201.429); h_SL2L366->SetBinContent(22,3550.714); h_SL2L366->SetBinContent(23,3820.714); h_SL2L366->SetBinContent(24,4153.571); h_SL2L366->SetBinContent(25,8819.286); h_SL2L366->SetBinContent(26,28908.57); h_SL2L366->SetBinContent(27,44433.57); h_SL2L366->SetBinContent(28,51645); h_SL2L366->SetBinContent(29,54801.43); h_SL2L366->SetBinContent(30,52197.14); h_SL2L366->SetBinContent(31,48551.43); h_SL2L366->SetBinContent(32,49622.86); h_SL2L366->SetBinContent(33,47605.71); h_SL2L366->SetBinContent(34,27381.43); h_SL2L366->SetBinContent(35,7720); h_SL2L366->SetBinContent(36,4329.286); h_SL2L366->SetBinContent(37,3256.429); h_SL2L366->SetBinContent(38,2736.429); h_SL2L366->SetBinContent(39,2413.572); h_SL2L366->SetBinContent(40,4063.572); h_SL2L366->SetBinContent(41,1956.429); h_SL2L366->SetBinContent(42,1807.143); h_SL2L366->SetBinContent(43,1582.143); h_SL2L366->SetBinContent(44,1482.857); h_SL2L366->SetBinContent(45,1391.429); h_SL2L366->SetBinContent(46,1270.714); h_SL2L366->SetBinContent(47,1196.429); h_SL2L366->SetBinContent(48,1075.714); h_SL2L366->SetBinContent(49,992.8572); h_SL2L366->SetBinContent(50,876.4286); h_SL2L366->SetBinContent(51,798.5715); h_SL2L366->SetBinContent(52,809.2857); h_SL2L366->SetBinContent(53,716.4286); h_SL2L366->SetBinContent(54,744.2857); h_SL2L366->SetBinContent(55,648.5715); h_SL2L366->SetBinContent(56,529.2857); h_SL2L366->SetBinContent(57,556.4286); h_SL2L366->SetMaximum(63622.11); 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,752.1429); h_SL2L467->SetBinContent(3,810); h_SL2L467->SetBinContent(4,897.8572); h_SL2L467->SetBinContent(5,945); h_SL2L467->SetBinContent(6,1012.857); h_SL2L467->SetBinContent(7,1080.714); h_SL2L467->SetBinContent(8,1027.143); h_SL2L467->SetBinContent(9,1220.714); h_SL2L467->SetBinContent(10,1262.857); h_SL2L467->SetBinContent(11,1391.429); h_SL2L467->SetBinContent(12,1588.571); h_SL2L467->SetBinContent(13,1722.857); h_SL2L467->SetBinContent(14,1857.857); h_SL2L467->SetBinContent(15,1920); h_SL2L467->SetBinContent(16,2109.286); h_SL2L467->SetBinContent(17,2183.572); h_SL2L467->SetBinContent(18,2371.429); h_SL2L467->SetBinContent(19,2696.429); h_SL2L467->SetBinContent(20,2931.429); h_SL2L467->SetBinContent(21,3025.714); h_SL2L467->SetBinContent(22,3285); h_SL2L467->SetBinContent(23,3606.429); h_SL2L467->SetBinContent(24,3901.429); h_SL2L467->SetBinContent(25,4638.572); h_SL2L467->SetBinContent(26,18082.14); h_SL2L467->SetBinContent(27,37970.71); h_SL2L467->SetBinContent(28,48710.71); h_SL2L467->SetBinContent(29,53985.71); h_SL2L467->SetBinContent(30,54821.43); h_SL2L467->SetBinContent(31,49703.57); h_SL2L467->SetBinContent(32,49004.29); h_SL2L467->SetBinContent(33,48939.29); h_SL2L467->SetBinContent(34,41533.57); h_SL2L467->SetBinContent(35,14383.57); h_SL2L467->SetBinContent(36,5282.143); h_SL2L467->SetBinContent(37,3655.714); h_SL2L467->SetBinContent(38,2817.143); h_SL2L467->SetBinContent(39,2507.857); h_SL2L467->SetBinContent(40,2205); h_SL2L467->SetBinContent(41,1971.429); h_SL2L467->SetBinContent(42,1902.143); h_SL2L467->SetBinContent(43,1600.714); h_SL2L467->SetBinContent(44,1435); h_SL2L467->SetBinContent(45,1419.286); h_SL2L467->SetBinContent(46,1275); h_SL2L467->SetBinContent(47,1186.429); h_SL2L467->SetBinContent(48,1113.571); h_SL2L467->SetBinContent(49,1025.714); h_SL2L467->SetBinContent(50,898.5715); h_SL2L467->SetBinContent(51,833.5715); h_SL2L467->SetBinContent(52,776.4286); h_SL2L467->SetBinContent(53,722.8572); h_SL2L467->SetBinContent(54,747.1429); h_SL2L467->SetBinContent(55,672.1429); h_SL2L467->SetBinContent(56,585.7143); h_SL2L467->SetBinContent(57,532.1429); h_SL2L467->SetMaximum(63622.11); 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 4979"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }