void RatesPerCell_Removing_noisy_cells_run_5663_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:25:35 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9753.582,67.5,87782.23); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5663",60,0,60); h_SL2L164->SetBinContent(1,862.8572); h_SL2L164->SetBinContent(2,1027.143); h_SL2L164->SetBinContent(3,1158.571); h_SL2L164->SetBinContent(4,1371.429); h_SL2L164->SetBinContent(5,1371.429); h_SL2L164->SetBinContent(6,1421.429); h_SL2L164->SetBinContent(7,1470); h_SL2L164->SetBinContent(8,1508.571); h_SL2L164->SetBinContent(9,1681.429); h_SL2L164->SetBinContent(10,1818.571); h_SL2L164->SetBinContent(11,2004.286); h_SL2L164->SetBinContent(12,2232.857); h_SL2L164->SetBinContent(13,2504.286); h_SL2L164->SetBinContent(14,2602.857); h_SL2L164->SetBinContent(15,2887.143); h_SL2L164->SetBinContent(16,3044.286); h_SL2L164->SetBinContent(17,3187.143); h_SL2L164->SetBinContent(18,3431.429); h_SL2L164->SetBinContent(19,3642.857); h_SL2L164->SetBinContent(20,3845.714); h_SL2L164->SetBinContent(21,4105.714); h_SL2L164->SetBinContent(22,4418.572); h_SL2L164->SetBinContent(23,4670); h_SL2L164->SetBinContent(24,4982.857); h_SL2L164->SetBinContent(25,10428.57); h_SL2L164->SetBinContent(26,32935.71); h_SL2L164->SetBinContent(27,49661.43); h_SL2L164->SetBinContent(28,58177.14); h_SL2L164->SetBinContent(29,58961.43); h_SL2L164->SetBinContent(30,52694.29); h_SL2L164->SetBinContent(31,45195.71); h_SL2L164->SetBinContent(32,42708.57); h_SL2L164->SetBinContent(33,39630); h_SL2L164->SetBinContent(34,22305.71); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,4355.714); h_SL2L164->SetBinContent(37,3682.857); h_SL2L164->SetBinContent(38,3091.429); h_SL2L164->SetBinContent(39,2772.857); h_SL2L164->SetBinContent(40,2085.714); h_SL2L164->SetBinContent(41,2140); h_SL2L164->SetBinContent(42,1994.286); h_SL2L164->SetBinContent(43,1914.286); h_SL2L164->SetBinContent(44,1801.429); h_SL2L164->SetBinContent(45,1645.714); h_SL2L164->SetBinContent(46,1662.857); h_SL2L164->SetBinContent(47,1428.571); h_SL2L164->SetBinContent(48,1498.571); h_SL2L164->SetBinContent(49,1338.571); h_SL2L164->SetBinContent(50,1310); h_SL2L164->SetBinContent(51,1142.857); h_SL2L164->SetBinContent(52,1211.429); h_SL2L164->SetBinContent(53,1202.857); h_SL2L164->SetBinContent(54,1092.857); h_SL2L164->SetBinContent(55,1052.857); h_SL2L164->SetBinContent(56,937.1429); h_SL2L164->SetBinContent(57,921.4286); h_SL2L164->SetMaximum(78028.65); 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,861.4286); h_SL2L265->SetBinContent(2,960); h_SL2L265->SetBinContent(3,1047.143); h_SL2L265->SetBinContent(4,1257.143); h_SL2L265->SetBinContent(5,1310); h_SL2L265->SetBinContent(6,1402.857); h_SL2L265->SetBinContent(7,1351.429); h_SL2L265->SetBinContent(8,1434.286); h_SL2L265->SetBinContent(9,1597.143); h_SL2L265->SetBinContent(10,1665.714); h_SL2L265->SetBinContent(11,1891.429); h_SL2L265->SetBinContent(12,2050); h_SL2L265->SetBinContent(13,2262.857); h_SL2L265->SetBinContent(14,2484.286); h_SL2L265->SetBinContent(15,2650); h_SL2L265->SetBinContent(16,2912.857); h_SL2L265->SetBinContent(17,3087.143); h_SL2L265->SetBinContent(18,3178.572); h_SL2L265->SetBinContent(19,3420); h_SL2L265->SetBinContent(20,3691.429); h_SL2L265->SetBinContent(21,3850); h_SL2L265->SetBinContent(22,4184.286); h_SL2L265->SetBinContent(23,4600); h_SL2L265->SetBinContent(24,4540); h_SL2L265->SetBinContent(25,5611.429); h_SL2L265->SetBinContent(26,20837.14); h_SL2L265->SetBinContent(27,42995.71); h_SL2L265->SetBinContent(28,54595.71); h_SL2L265->SetBinContent(29,59001.43); h_SL2L265->SetBinContent(30,56472.86); h_SL2L265->SetBinContent(31,48460); h_SL2L265->SetBinContent(32,42875.71); h_SL2L265->SetBinContent(33,41514.29); h_SL2L265->SetBinContent(34,33487.14); h_SL2L265->SetBinContent(35,12324.29); h_SL2L265->SetBinContent(36,5180); h_SL2L265->SetBinContent(37,3797.143); h_SL2L265->SetBinContent(38,3307.143); h_SL2L265->SetBinContent(39,2982.857); h_SL2L265->SetBinContent(40,2434.286); h_SL2L265->SetBinContent(41,2295.714); h_SL2L265->SetBinContent(42,1995.714); h_SL2L265->SetBinContent(43,1958.572); h_SL2L265->SetBinContent(44,1800); h_SL2L265->SetBinContent(45,1681.429); h_SL2L265->SetBinContent(46,1648.571); h_SL2L265->SetBinContent(47,1538.571); h_SL2L265->SetBinContent(48,1450); h_SL2L265->SetBinContent(49,1380); h_SL2L265->SetBinContent(50,1315.714); h_SL2L265->SetBinContent(51,1170); h_SL2L265->SetBinContent(52,1168.571); h_SL2L265->SetBinContent(53,1141.429); h_SL2L265->SetBinContent(54,1131.429); h_SL2L265->SetBinContent(55,1135.714); h_SL2L265->SetBinContent(56,968.5715); h_SL2L265->SetBinContent(57,922.8572); h_SL2L265->SetMaximum(67851.64); 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,874.2857); h_SL2L366->SetBinContent(2,1034.286); h_SL2L366->SetBinContent(3,1134.286); h_SL2L366->SetBinContent(4,1310); h_SL2L366->SetBinContent(5,1302.857); h_SL2L366->SetBinContent(6,1341.429); h_SL2L366->SetBinContent(7,1432.857); h_SL2L366->SetBinContent(8,1460); h_SL2L366->SetBinContent(9,1578.571); h_SL2L366->SetBinContent(10,1768.571); h_SL2L366->SetBinContent(11,1935.714); h_SL2L366->SetBinContent(12,2115.714); h_SL2L366->SetBinContent(13,2395.714); h_SL2L366->SetBinContent(14,2505.714); h_SL2L366->SetBinContent(15,2754.286); h_SL2L366->SetBinContent(16,2922.857); h_SL2L366->SetBinContent(17,3071.429); h_SL2L366->SetBinContent(18,3255.714); h_SL2L366->SetBinContent(19,3562.857); h_SL2L366->SetBinContent(20,3697.143); h_SL2L366->SetBinContent(21,3990); h_SL2L366->SetBinContent(22,4357.143); h_SL2L366->SetBinContent(23,4467.143); h_SL2L366->SetBinContent(24,4927.143); h_SL2L366->SetBinContent(25,10240); h_SL2L366->SetBinContent(26,32807.14); h_SL2L366->SetBinContent(27,49447.14); h_SL2L366->SetBinContent(28,58054.29); h_SL2L366->SetBinContent(29,58458.57); h_SL2L366->SetBinContent(30,52532.86); h_SL2L366->SetBinContent(31,45045.71); h_SL2L366->SetBinContent(32,42414.29); h_SL2L366->SetBinContent(33,39474.29); h_SL2L366->SetBinContent(34,22311.43); h_SL2L366->SetBinContent(35,6881.429); h_SL2L366->SetBinContent(36,4348.571); h_SL2L366->SetBinContent(37,3547.143); h_SL2L366->SetBinContent(38,2935.714); h_SL2L366->SetBinContent(39,2614.286); h_SL2L366->SetBinContent(40,2270); h_SL2L366->SetBinContent(41,2202.857); h_SL2L366->SetBinContent(42,1897.143); h_SL2L366->SetBinContent(43,1864.286); h_SL2L366->SetBinContent(44,1711.429); h_SL2L366->SetBinContent(45,1614.286); h_SL2L366->SetBinContent(46,1522.857); h_SL2L366->SetBinContent(47,1372.857); h_SL2L366->SetBinContent(48,1402.857); h_SL2L366->SetBinContent(49,1302.857); h_SL2L366->SetBinContent(50,1255.714); h_SL2L366->SetBinContent(51,1110); h_SL2L366->SetBinContent(52,1195.714); h_SL2L366->SetBinContent(53,1168.571); h_SL2L366->SetBinContent(54,1098.571); h_SL2L366->SetBinContent(55,1030); h_SL2L366->SetBinContent(56,937.1429); h_SL2L366->SetBinContent(57,942.8572); h_SL2L366->SetMaximum(67851.64); 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,957.1429); h_SL2L467->SetBinContent(3,985.7143); h_SL2L467->SetBinContent(4,1160); h_SL2L467->SetBinContent(5,1315.714); h_SL2L467->SetBinContent(6,1325.714); h_SL2L467->SetBinContent(7,1292.857); h_SL2L467->SetBinContent(8,1417.143); h_SL2L467->SetBinContent(9,1547.143); h_SL2L467->SetBinContent(10,1572.857); h_SL2L467->SetBinContent(11,1785.714); h_SL2L467->SetBinContent(12,1938.572); h_SL2L467->SetBinContent(13,2190); h_SL2L467->SetBinContent(14,2431.429); h_SL2L467->SetBinContent(15,2570); h_SL2L467->SetBinContent(16,2812.857); h_SL2L467->SetBinContent(17,2942.857); h_SL2L467->SetBinContent(18,3001.429); h_SL2L467->SetBinContent(19,3275.714); h_SL2L467->SetBinContent(20,3710); h_SL2L467->SetBinContent(21,3795.714); h_SL2L467->SetBinContent(22,4107.143); h_SL2L467->SetBinContent(23,4387.143); h_SL2L467->SetBinContent(24,4514.286); h_SL2L467->SetBinContent(25,5518.572); h_SL2L467->SetBinContent(26,20662.86); h_SL2L467->SetBinContent(27,42805.71); h_SL2L467->SetBinContent(28,54515.71); h_SL2L467->SetBinContent(29,58934.29); h_SL2L467->SetBinContent(30,56660); h_SL2L467->SetBinContent(31,48412.86); h_SL2L467->SetBinContent(32,42972.86); h_SL2L467->SetBinContent(33,41600); h_SL2L467->SetBinContent(34,33545.71); h_SL2L467->SetBinContent(35,12155.71); h_SL2L467->SetBinContent(36,5151.429); h_SL2L467->SetBinContent(37,3717.143); h_SL2L467->SetBinContent(38,3084.286); h_SL2L467->SetBinContent(39,2875.714); h_SL2L467->SetBinContent(40,2341.429); h_SL2L467->SetBinContent(41,2231.429); h_SL2L467->SetBinContent(42,1965.714); h_SL2L467->SetBinContent(43,1858.572); h_SL2L467->SetBinContent(44,1698.571); h_SL2L467->SetBinContent(45,1601.429); h_SL2L467->SetBinContent(46,1590); h_SL2L467->SetBinContent(47,1452.857); h_SL2L467->SetBinContent(48,1362.857); h_SL2L467->SetBinContent(49,1348.571); h_SL2L467->SetBinContent(50,1311.429); h_SL2L467->SetBinContent(51,1100); h_SL2L467->SetBinContent(52,1154.286); h_SL2L467->SetBinContent(53,1120); h_SL2L467->SetBinContent(54,1148.571); h_SL2L467->SetBinContent(55,1050); h_SL2L467->SetBinContent(56,985.7143); h_SL2L467->SetBinContent(57,911.4286); h_SL2L467->SetMaximum(67851.64); 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 5663"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }