void RatesPerCell_Removing_noisy_cells_run_5647_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:29:07 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9685.301,67.5,87167.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5647",60,0,60); h_SL2L164->SetBinContent(1,897.1429); h_SL2L164->SetBinContent(2,1032.857); h_SL2L164->SetBinContent(3,1251.429); h_SL2L164->SetBinContent(4,1217.143); h_SL2L164->SetBinContent(5,1381.429); h_SL2L164->SetBinContent(6,1444.286); h_SL2L164->SetBinContent(7,1567.143); h_SL2L164->SetBinContent(8,1631.429); h_SL2L164->SetBinContent(9,1595.714); h_SL2L164->SetBinContent(10,1872.857); h_SL2L164->SetBinContent(11,1970); h_SL2L164->SetBinContent(12,2045.714); h_SL2L164->SetBinContent(13,2468.572); h_SL2L164->SetBinContent(14,2648.572); h_SL2L164->SetBinContent(15,2711.429); h_SL2L164->SetBinContent(16,2900); h_SL2L164->SetBinContent(17,3182.857); h_SL2L164->SetBinContent(18,3324.286); h_SL2L164->SetBinContent(19,3624.286); h_SL2L164->SetBinContent(20,3890); h_SL2L164->SetBinContent(21,4045.714); h_SL2L164->SetBinContent(22,4287.143); h_SL2L164->SetBinContent(23,4640); h_SL2L164->SetBinContent(24,5041.429); h_SL2L164->SetBinContent(25,10414.29); h_SL2L164->SetBinContent(26,32910); h_SL2L164->SetBinContent(27,49202.86); h_SL2L164->SetBinContent(28,57342.86); h_SL2L164->SetBinContent(29,58588.57); h_SL2L164->SetBinContent(30,52921.43); h_SL2L164->SetBinContent(31,45602.86); h_SL2L164->SetBinContent(32,43422.86); h_SL2L164->SetBinContent(33,40222.86); h_SL2L164->SetBinContent(34,22602.86); h_SL2L164->SetBinContent(36,4561.429); h_SL2L164->SetBinContent(37,3561.429); h_SL2L164->SetBinContent(38,3107.143); h_SL2L164->SetBinContent(39,2608.572); h_SL2L164->SetBinContent(40,2211.429); h_SL2L164->SetBinContent(41,2191.429); h_SL2L164->SetBinContent(42,2075.714); h_SL2L164->SetBinContent(43,1915.714); h_SL2L164->SetBinContent(44,1821.429); h_SL2L164->SetBinContent(45,1692.857); h_SL2L164->SetBinContent(46,1540); h_SL2L164->SetBinContent(47,1515.714); h_SL2L164->SetBinContent(48,1344.286); h_SL2L164->SetBinContent(49,1318.571); h_SL2L164->SetBinContent(50,1241.429); h_SL2L164->SetBinContent(51,1167.143); h_SL2L164->SetBinContent(52,1195.714); h_SL2L164->SetBinContent(53,1170); h_SL2L164->SetBinContent(54,1112.857); h_SL2L164->SetBinContent(55,1027.143); h_SL2L164->SetBinContent(56,1012.857); h_SL2L164->SetBinContent(57,935.7143); h_SL2L164->SetMaximum(77482.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,877.1429); h_SL2L265->SetBinContent(2,904.2857); h_SL2L265->SetBinContent(3,1158.571); h_SL2L265->SetBinContent(4,1227.143); h_SL2L265->SetBinContent(5,1287.143); h_SL2L265->SetBinContent(6,1374.286); h_SL2L265->SetBinContent(7,1410); h_SL2L265->SetBinContent(8,1584.286); h_SL2L265->SetBinContent(9,1601.429); h_SL2L265->SetBinContent(10,1690); h_SL2L265->SetBinContent(11,1928.572); h_SL2L265->SetBinContent(12,1988.572); h_SL2L265->SetBinContent(13,2188.572); h_SL2L265->SetBinContent(14,2487.143); h_SL2L265->SetBinContent(15,2638.572); h_SL2L265->SetBinContent(16,2714.286); h_SL2L265->SetBinContent(17,2985.714); h_SL2L265->SetBinContent(18,3248.572); h_SL2L265->SetBinContent(19,3265.714); h_SL2L265->SetBinContent(20,3774.286); h_SL2L265->SetBinContent(21,3845.714); h_SL2L265->SetBinContent(22,4077.143); h_SL2L265->SetBinContent(23,4348.571); h_SL2L265->SetBinContent(24,4648.572); h_SL2L265->SetBinContent(25,5544.286); h_SL2L265->SetBinContent(26,21075.71); h_SL2L265->SetBinContent(27,41875.71); h_SL2L265->SetBinContent(28,54431.43); h_SL2L265->SetBinContent(29,58284.29); h_SL2L265->SetBinContent(30,56182.86); h_SL2L265->SetBinContent(31,48575.71); h_SL2L265->SetBinContent(32,43755.71); h_SL2L265->SetBinContent(33,41818.57); h_SL2L265->SetBinContent(34,33780); h_SL2L265->SetBinContent(35,12211.43); h_SL2L265->SetBinContent(36,5277.143); h_SL2L265->SetBinContent(37,3862.857); h_SL2L265->SetBinContent(38,3191.429); h_SL2L265->SetBinContent(39,2752.857); h_SL2L265->SetBinContent(40,2422.857); h_SL2L265->SetBinContent(41,2282.857); h_SL2L265->SetBinContent(42,2130); h_SL2L265->SetBinContent(43,2005.714); h_SL2L265->SetBinContent(44,1815.714); h_SL2L265->SetBinContent(45,1710); h_SL2L265->SetBinContent(46,1502.857); h_SL2L265->SetBinContent(47,1478.571); h_SL2L265->SetBinContent(48,1437.143); h_SL2L265->SetBinContent(49,1308.571); h_SL2L265->SetBinContent(50,1261.429); h_SL2L265->SetBinContent(51,1200); h_SL2L265->SetBinContent(52,1177.143); h_SL2L265->SetBinContent(53,1235.714); h_SL2L265->SetBinContent(54,1128.571); h_SL2L265->SetBinContent(55,1007.143); h_SL2L265->SetBinContent(56,1028.571); h_SL2L265->SetBinContent(57,985.7143); h_SL2L265->SetMaximum(67376.86); 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,957.1429); h_SL2L366->SetBinContent(2,1017.143); h_SL2L366->SetBinContent(3,1188.571); h_SL2L366->SetBinContent(4,1138.571); h_SL2L366->SetBinContent(5,1297.143); h_SL2L366->SetBinContent(6,1372.857); h_SL2L366->SetBinContent(7,1457.143); h_SL2L366->SetBinContent(8,1535.714); h_SL2L366->SetBinContent(9,1544.286); h_SL2L366->SetBinContent(10,1801.429); h_SL2L366->SetBinContent(11,1898.572); h_SL2L366->SetBinContent(12,1990); h_SL2L366->SetBinContent(13,2298.572); h_SL2L366->SetBinContent(14,2534.286); h_SL2L366->SetBinContent(15,2625.714); h_SL2L366->SetBinContent(16,2755.714); h_SL2L366->SetBinContent(17,3087.143); h_SL2L366->SetBinContent(18,3134.286); h_SL2L366->SetBinContent(19,3481.429); h_SL2L366->SetBinContent(20,3678.572); h_SL2L366->SetBinContent(21,3904.286); h_SL2L366->SetBinContent(22,4165.714); h_SL2L366->SetBinContent(23,4464.286); h_SL2L366->SetBinContent(24,4904.286); h_SL2L366->SetBinContent(25,10194.29); h_SL2L366->SetBinContent(26,32788.57); h_SL2L366->SetBinContent(27,49031.43); h_SL2L366->SetBinContent(28,57014.29); h_SL2L366->SetBinContent(29,57992.86); h_SL2L366->SetBinContent(30,52548.57); h_SL2L366->SetBinContent(31,45521.43); h_SL2L366->SetBinContent(32,43128.57); h_SL2L366->SetBinContent(33,39934.29); h_SL2L366->SetBinContent(34,22294.29); h_SL2L366->SetBinContent(35,6874.286); h_SL2L366->SetBinContent(36,4505.714); h_SL2L366->SetBinContent(37,3397.143); h_SL2L366->SetBinContent(38,2911.429); h_SL2L366->SetBinContent(39,2508.572); h_SL2L366->SetBinContent(40,2352.857); h_SL2L366->SetBinContent(41,2174.286); h_SL2L366->SetBinContent(42,1975.714); h_SL2L366->SetBinContent(43,1862.857); h_SL2L366->SetBinContent(44,1671.429); h_SL2L366->SetBinContent(45,1605.714); h_SL2L366->SetBinContent(46,1484.286); h_SL2L366->SetBinContent(47,1412.857); h_SL2L366->SetBinContent(48,1337.143); h_SL2L366->SetBinContent(49,1290); h_SL2L366->SetBinContent(50,1164.286); h_SL2L366->SetBinContent(51,1120); h_SL2L366->SetBinContent(52,1144.286); h_SL2L366->SetBinContent(53,1137.143); h_SL2L366->SetBinContent(54,1074.286); h_SL2L366->SetBinContent(55,982.8572); h_SL2L366->SetBinContent(56,1000); h_SL2L366->SetBinContent(57,938.5715); h_SL2L366->SetMaximum(67376.86); 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,911.4286); h_SL2L467->SetBinContent(3,1118.571); h_SL2L467->SetBinContent(4,1151.429); h_SL2L467->SetBinContent(5,1247.143); h_SL2L467->SetBinContent(6,1300); h_SL2L467->SetBinContent(7,1355.714); h_SL2L467->SetBinContent(8,1474.286); h_SL2L467->SetBinContent(9,1471.429); h_SL2L467->SetBinContent(10,1630); h_SL2L467->SetBinContent(11,1812.857); h_SL2L467->SetBinContent(12,1898.572); h_SL2L467->SetBinContent(13,2165.714); h_SL2L467->SetBinContent(14,2348.572); h_SL2L467->SetBinContent(15,2478.572); h_SL2L467->SetBinContent(16,2527.143); h_SL2L467->SetBinContent(17,2900); h_SL2L467->SetBinContent(18,3098.572); h_SL2L467->SetBinContent(19,3171.429); h_SL2L467->SetBinContent(20,3591.429); h_SL2L467->SetBinContent(21,3688.572); h_SL2L467->SetBinContent(22,3985.714); h_SL2L467->SetBinContent(23,4202.857); h_SL2L467->SetBinContent(24,4574.286); h_SL2L467->SetBinContent(25,5344.286); h_SL2L467->SetBinContent(26,21105.71); h_SL2L467->SetBinContent(27,41827.14); h_SL2L467->SetBinContent(28,54182.86); h_SL2L467->SetBinContent(29,58001.43); h_SL2L467->SetBinContent(30,56372.86); h_SL2L467->SetBinContent(31,48477.14); h_SL2L467->SetBinContent(32,43832.86); h_SL2L467->SetBinContent(33,41968.57); h_SL2L467->SetBinContent(34,33888.57); h_SL2L467->SetBinContent(35,12147.14); h_SL2L467->SetBinContent(36,5090); h_SL2L467->SetBinContent(37,3808.572); h_SL2L467->SetBinContent(38,3008.572); h_SL2L467->SetBinContent(39,2607.143); h_SL2L467->SetBinContent(40,2355.714); h_SL2L467->SetBinContent(41,2188.572); h_SL2L467->SetBinContent(42,2028.572); h_SL2L467->SetBinContent(43,1937.143); h_SL2L467->SetBinContent(44,1692.857); h_SL2L467->SetBinContent(45,1592.857); h_SL2L467->SetBinContent(46,1460); h_SL2L467->SetBinContent(47,1417.143); h_SL2L467->SetBinContent(48,1365.714); h_SL2L467->SetBinContent(49,1267.143); h_SL2L467->SetBinContent(50,1198.571); h_SL2L467->SetBinContent(51,1118.571); h_SL2L467->SetBinContent(52,1138.571); h_SL2L467->SetBinContent(53,1157.143); h_SL2L467->SetBinContent(54,1058.571); h_SL2L467->SetBinContent(55,1011.429); h_SL2L467->SetBinContent(56,991.4286); h_SL2L467->SetBinContent(57,981.4286); h_SL2L467->SetMaximum(67376.86); 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 5647"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }