void RatesPerCell_Removing_noisy_cells_run_6543_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 20:08:43 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11534.93,67.5,103814.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6543",60,0,60); h_SL2L164->SetBinContent(1,752.8572); h_SL2L164->SetBinContent(2,835.7143); h_SL2L164->SetBinContent(3,1015.714); h_SL2L164->SetBinContent(4,1044.286); h_SL2L164->SetBinContent(5,1138.571); h_SL2L164->SetBinContent(6,1074.286); h_SL2L164->SetBinContent(7,1168.571); h_SL2L164->SetBinContent(8,1242.857); h_SL2L164->SetBinContent(9,1317.143); h_SL2L164->SetBinContent(10,1405.714); h_SL2L164->SetBinContent(11,1575.714); h_SL2L164->SetBinContent(12,1688.571); h_SL2L164->SetBinContent(13,1811.429); h_SL2L164->SetBinContent(14,1852.857); h_SL2L164->SetBinContent(15,1957.143); h_SL2L164->SetBinContent(16,2014.286); h_SL2L164->SetBinContent(17,2140); h_SL2L164->SetBinContent(18,2211.429); h_SL2L164->SetBinContent(19,2530); h_SL2L164->SetBinContent(20,2558.572); h_SL2L164->SetBinContent(21,2721.429); h_SL2L164->SetBinContent(22,2702.857); h_SL2L164->SetBinContent(23,3067.143); h_SL2L164->SetBinContent(24,3601.429); h_SL2L164->SetBinContent(25,8610); h_SL2L164->SetBinContent(26,26310); h_SL2L164->SetBinContent(27,40585.71); h_SL2L164->SetBinContent(28,48130); h_SL2L164->SetBinContent(29,51651.43); h_SL2L164->SetBinContent(30,51358.57); h_SL2L164->SetBinContent(31,50450); h_SL2L164->SetBinContent(32,51258.57); h_SL2L164->SetBinContent(33,50675.71); h_SL2L164->SetBinContent(34,28591.43); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,3844.286); h_SL2L164->SetBinContent(37,8887.144); h_SL2L164->SetBinContent(38,5181.429); h_SL2L164->SetBinContent(39,6977.143); h_SL2L164->SetBinContent(40,41884.29); h_SL2L164->SetBinContent(41,69777.14); h_SL2L164->SetBinContent(42,12742.86); h_SL2L164->SetBinContent(43,12670); h_SL2L164->SetBinContent(44,13230); h_SL2L164->SetBinContent(45,1441.429); h_SL2L164->SetBinContent(46,1368.571); h_SL2L164->SetBinContent(47,1267.143); h_SL2L164->SetBinContent(48,1132.857); h_SL2L164->SetBinContent(49,1095.714); h_SL2L164->SetBinContent(50,1005.714); h_SL2L164->SetBinContent(51,950); h_SL2L164->SetBinContent(52,864.2857); h_SL2L164->SetBinContent(53,847.1429); h_SL2L164->SetBinContent(54,830); h_SL2L164->SetBinContent(55,715.7143); h_SL2L164->SetBinContent(56,597.1429); h_SL2L164->SetBinContent(57,6182.857); h_SL2L164->SetMaximum(92279.45); 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,662.8572); h_SL2L265->SetBinContent(2,790); h_SL2L265->SetBinContent(3,990); h_SL2L265->SetBinContent(4,1020); h_SL2L265->SetBinContent(5,1052.857); h_SL2L265->SetBinContent(6,1062.857); h_SL2L265->SetBinContent(7,1132.857); h_SL2L265->SetBinContent(8,1145.714); h_SL2L265->SetBinContent(9,1235.714); h_SL2L265->SetBinContent(10,1361.429); h_SL2L265->SetBinContent(11,1415.714); h_SL2L265->SetBinContent(12,1627.143); h_SL2L265->SetBinContent(13,1687.143); h_SL2L265->SetBinContent(14,1744.286); h_SL2L265->SetBinContent(15,1818.571); h_SL2L265->SetBinContent(16,1955.714); h_SL2L265->SetBinContent(17,2085.714); h_SL2L265->SetBinContent(18,2145.714); h_SL2L265->SetBinContent(19,2294.286); h_SL2L265->SetBinContent(20,2498.572); h_SL2L265->SetBinContent(21,2535.714); h_SL2L265->SetBinContent(22,2677.143); h_SL2L265->SetBinContent(23,2894.286); h_SL2L265->SetBinContent(24,3194.286); h_SL2L265->SetBinContent(25,4278.571); h_SL2L265->SetBinContent(26,17321.43); h_SL2L265->SetBinContent(27,34055.71); h_SL2L265->SetBinContent(28,44840); h_SL2L265->SetBinContent(29,50268.57); h_SL2L265->SetBinContent(30,51445.71); h_SL2L265->SetBinContent(31,50498.57); h_SL2L265->SetBinContent(32,50557.14); h_SL2L265->SetBinContent(33,52350); h_SL2L265->SetBinContent(34,42880); h_SL2L265->SetBinContent(35,15052.86); h_SL2L265->SetBinContent(36,4974.286); h_SL2L265->SetBinContent(37,3411.429); h_SL2L265->SetBinContent(38,2762.857); h_SL2L265->SetBinContent(39,3975.714); h_SL2L265->SetBinContent(40,5397.143); h_SL2L265->SetBinContent(41,4111.429); h_SL2L265->SetBinContent(42,3708.572); h_SL2L265->SetBinContent(43,2298.572); h_SL2L265->SetBinContent(44,3648.572); h_SL2L265->SetBinContent(45,1462.857); h_SL2L265->SetBinContent(46,1352.857); h_SL2L265->SetBinContent(47,1282.857); h_SL2L265->SetBinContent(48,1188.571); h_SL2L265->SetBinContent(49,1114.286); h_SL2L265->SetBinContent(50,975.7143); h_SL2L265->SetBinContent(51,981.4286); h_SL2L265->SetBinContent(52,807.1429); h_SL2L265->SetBinContent(53,844.2857); h_SL2L265->SetBinContent(54,842.8572); h_SL2L265->SetBinContent(55,794.2857); h_SL2L265->SetBinContent(56,642.8572); h_SL2L265->SetBinContent(57,594.2857); h_SL2L265->SetMaximum(80243.71); 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,745.7143); h_SL2L366->SetBinContent(2,861.4286); h_SL2L366->SetBinContent(3,965.7143); h_SL2L366->SetBinContent(4,1000); h_SL2L366->SetBinContent(5,1057.143); h_SL2L366->SetBinContent(6,1058.571); h_SL2L366->SetBinContent(7,1105.714); h_SL2L366->SetBinContent(8,1171.429); h_SL2L366->SetBinContent(9,1271.429); h_SL2L366->SetBinContent(10,1422.857); h_SL2L366->SetBinContent(11,1514.286); h_SL2L366->SetBinContent(12,1672.857); h_SL2L366->SetBinContent(13,1691.429); h_SL2L366->SetBinContent(14,1822.857); h_SL2L366->SetBinContent(15,1887.143); h_SL2L366->SetBinContent(16,1968.572); h_SL2L366->SetBinContent(17,2001.429); h_SL2L366->SetBinContent(18,2160); h_SL2L366->SetBinContent(19,2395.714); h_SL2L366->SetBinContent(20,2497.143); h_SL2L366->SetBinContent(21,2668.572); h_SL2L366->SetBinContent(22,2724.286); h_SL2L366->SetBinContent(23,2900); h_SL2L366->SetBinContent(24,3437.143); h_SL2L366->SetBinContent(25,8502.857); h_SL2L366->SetBinContent(26,26412.86); h_SL2L366->SetBinContent(27,40464.29); h_SL2L366->SetBinContent(28,48022.86); h_SL2L366->SetBinContent(29,51357.14); h_SL2L366->SetBinContent(30,51187.14); h_SL2L366->SetBinContent(31,50741.43); h_SL2L366->SetBinContent(32,51308.57); h_SL2L366->SetBinContent(33,50650); h_SL2L366->SetBinContent(34,28704.29); h_SL2L366->SetBinContent(35,7538.572); h_SL2L366->SetBinContent(36,3888.572); h_SL2L366->SetBinContent(37,3064.286); h_SL2L366->SetBinContent(38,2557.143); h_SL2L366->SetBinContent(39,2068.572); h_SL2L366->SetBinContent(40,4097.143); h_SL2L366->SetBinContent(41,2402.857); h_SL2L366->SetBinContent(42,1811.429); h_SL2L366->SetBinContent(43,1590); h_SL2L366->SetBinContent(44,1508.571); h_SL2L366->SetBinContent(45,1408.571); h_SL2L366->SetBinContent(46,1324.286); h_SL2L366->SetBinContent(47,1210); h_SL2L366->SetBinContent(48,1114.286); h_SL2L366->SetBinContent(49,1090); h_SL2L366->SetBinContent(50,974.2858); h_SL2L366->SetBinContent(51,877.1429); h_SL2L366->SetBinContent(52,812.8572); h_SL2L366->SetBinContent(53,817.1429); h_SL2L366->SetBinContent(54,804.2857); h_SL2L366->SetBinContent(55,711.4286); h_SL2L366->SetBinContent(56,582.8572); h_SL2L366->SetBinContent(57,610); h_SL2L366->SetMaximum(80243.71); 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,795.7143); h_SL2L467->SetBinContent(3,998.5715); h_SL2L467->SetBinContent(4,978.5715); h_SL2L467->SetBinContent(5,987.1429); h_SL2L467->SetBinContent(6,1038.571); h_SL2L467->SetBinContent(7,1127.143); h_SL2L467->SetBinContent(8,1134.286); h_SL2L467->SetBinContent(9,1190); h_SL2L467->SetBinContent(10,1294.286); h_SL2L467->SetBinContent(11,1355.714); h_SL2L467->SetBinContent(12,1558.571); h_SL2L467->SetBinContent(13,1682.857); h_SL2L467->SetBinContent(14,1722.857); h_SL2L467->SetBinContent(15,1764.286); h_SL2L467->SetBinContent(16,1884.286); h_SL2L467->SetBinContent(17,2024.286); h_SL2L467->SetBinContent(18,2078.572); h_SL2L467->SetBinContent(19,2290); h_SL2L467->SetBinContent(20,2495.714); h_SL2L467->SetBinContent(21,2437.143); h_SL2L467->SetBinContent(22,2642.857); h_SL2L467->SetBinContent(23,2832.857); h_SL2L467->SetBinContent(24,3061.429); h_SL2L467->SetBinContent(25,4155.714); h_SL2L467->SetBinContent(26,17195.71); h_SL2L467->SetBinContent(27,34171.43); h_SL2L467->SetBinContent(28,44787.14); h_SL2L467->SetBinContent(29,50238.57); h_SL2L467->SetBinContent(30,52184.29); h_SL2L467->SetBinContent(31,50665.71); h_SL2L467->SetBinContent(32,50978.57); h_SL2L467->SetBinContent(33,52418.57); h_SL2L467->SetBinContent(34,43004.29); h_SL2L467->SetBinContent(35,15025.71); h_SL2L467->SetBinContent(36,4827.143); h_SL2L467->SetBinContent(37,3370); h_SL2L467->SetBinContent(38,2681.429); h_SL2L467->SetBinContent(39,2357.143); h_SL2L467->SetBinContent(40,2005.714); h_SL2L467->SetBinContent(41,1800); h_SL2L467->SetBinContent(42,2307.143); h_SL2L467->SetBinContent(43,1597.143); h_SL2L467->SetBinContent(44,1530); h_SL2L467->SetBinContent(45,1485.714); h_SL2L467->SetBinContent(46,1284.286); h_SL2L467->SetBinContent(47,1258.571); h_SL2L467->SetBinContent(48,1132.857); h_SL2L467->SetBinContent(49,1051.429); h_SL2L467->SetBinContent(50,955.7143); h_SL2L467->SetBinContent(51,944.2858); h_SL2L467->SetBinContent(52,788.5715); h_SL2L467->SetBinContent(53,818.5715); h_SL2L467->SetBinContent(54,828.5715); h_SL2L467->SetBinContent(55,781.4286); h_SL2L467->SetBinContent(56,645.7143); h_SL2L467->SetBinContent(57,574.2857); h_SL2L467->SetMaximum(80243.71); 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 6543"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }