void RatesPerCell_Removing_noisy_cells_run_6512_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:15:58 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13073.06,67.5,117657.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6512",60,0,60); h_SL2L164->SetBinContent(1,572.8572); h_SL2L164->SetBinContent(2,730); h_SL2L164->SetBinContent(3,860); h_SL2L164->SetBinContent(4,910); h_SL2L164->SetBinContent(5,975.7143); h_SL2L164->SetBinContent(6,982.8572); h_SL2L164->SetBinContent(7,1111.429); h_SL2L164->SetBinContent(8,1178.571); h_SL2L164->SetBinContent(9,1262.857); h_SL2L164->SetBinContent(10,1422.857); h_SL2L164->SetBinContent(11,1531.429); h_SL2L164->SetBinContent(12,1642.857); h_SL2L164->SetBinContent(13,1714.286); h_SL2L164->SetBinContent(14,1802.857); h_SL2L164->SetBinContent(15,1895.714); h_SL2L164->SetBinContent(16,2011.429); h_SL2L164->SetBinContent(17,2077.143); h_SL2L164->SetBinContent(18,2374.286); h_SL2L164->SetBinContent(19,2588.572); h_SL2L164->SetBinContent(20,2638.572); h_SL2L164->SetBinContent(21,2578.572); h_SL2L164->SetBinContent(22,3008.572); h_SL2L164->SetBinContent(23,3261.429); h_SL2L164->SetBinContent(24,3720); h_SL2L164->SetBinContent(25,7957.143); h_SL2L164->SetBinContent(26,25708.57); h_SL2L164->SetBinContent(27,45118.57); h_SL2L164->SetBinContent(28,58594.29); h_SL2L164->SetBinContent(29,62724.29); h_SL2L164->SetBinContent(30,54834.29); h_SL2L164->SetBinContent(31,43168.57); h_SL2L164->SetBinContent(32,39357.14); h_SL2L164->SetBinContent(33,39527.14); h_SL2L164->SetBinContent(34,25378.57); h_SL2L164->SetBinContent(36,3830); h_SL2L164->SetBinContent(37,5992.857); h_SL2L164->SetBinContent(38,3384.286); h_SL2L164->SetBinContent(39,5542.857); h_SL2L164->SetBinContent(40,32500); h_SL2L164->SetBinContent(41,79081.43); h_SL2L164->SetBinContent(42,10235.71); h_SL2L164->SetBinContent(43,10684.29); h_SL2L164->SetBinContent(44,10292.86); h_SL2L164->SetBinContent(45,1264.286); h_SL2L164->SetBinContent(46,1252.857); h_SL2L164->SetBinContent(47,1172.857); h_SL2L164->SetBinContent(48,1117.143); h_SL2L164->SetBinContent(49,965.7143); h_SL2L164->SetBinContent(50,900); h_SL2L164->SetBinContent(51,844.2857); h_SL2L164->SetBinContent(52,747.1429); h_SL2L164->SetBinContent(53,741.4286); h_SL2L164->SetBinContent(54,697.1429); h_SL2L164->SetBinContent(55,591.4286); h_SL2L164->SetBinContent(56,525.7143); h_SL2L164->SetBinContent(57,470); h_SL2L164->SetMaximum(104584.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,548.5714); h_SL2L265->SetBinContent(2,708.5715); h_SL2L265->SetBinContent(3,800); h_SL2L265->SetBinContent(4,868.5715); h_SL2L265->SetBinContent(5,934.2858); h_SL2L265->SetBinContent(6,922.8572); h_SL2L265->SetBinContent(7,1045.714); h_SL2L265->SetBinContent(8,1077.143); h_SL2L265->SetBinContent(9,1271.429); h_SL2L265->SetBinContent(10,1288.571); h_SL2L265->SetBinContent(11,1488.571); h_SL2L265->SetBinContent(12,1547.143); h_SL2L265->SetBinContent(13,1642.857); h_SL2L265->SetBinContent(14,1751.429); h_SL2L265->SetBinContent(15,1850); h_SL2L265->SetBinContent(16,1954.286); h_SL2L265->SetBinContent(17,1971.429); h_SL2L265->SetBinContent(18,2087.143); h_SL2L265->SetBinContent(19,2447.143); h_SL2L265->SetBinContent(20,2652.857); h_SL2L265->SetBinContent(21,2535.714); h_SL2L265->SetBinContent(22,2704.286); h_SL2L265->SetBinContent(23,3027.143); h_SL2L265->SetBinContent(24,3495.714); h_SL2L265->SetBinContent(25,4225.714); h_SL2L265->SetBinContent(26,15935.71); h_SL2L265->SetBinContent(27,35392.86); h_SL2L265->SetBinContent(28,53091.43); h_SL2L265->SetBinContent(29,62382.86); h_SL2L265->SetBinContent(30,60018.57); h_SL2L265->SetBinContent(31,48308.57); h_SL2L265->SetBinContent(32,40270); h_SL2L265->SetBinContent(33,39492.86); h_SL2L265->SetBinContent(34,35342.86); h_SL2L265->SetBinContent(35,14182.86); h_SL2L265->SetBinContent(36,4682.857); h_SL2L265->SetBinContent(37,3360); h_SL2L265->SetBinContent(38,2732.857); h_SL2L265->SetBinContent(39,3157.143); h_SL2L265->SetBinContent(40,5170); h_SL2L265->SetBinContent(41,2868.572); h_SL2L265->SetBinContent(42,2724.286); h_SL2L265->SetBinContent(43,1794.286); h_SL2L265->SetBinContent(44,1940); h_SL2L265->SetBinContent(45,1301.429); h_SL2L265->SetBinContent(46,1248.571); h_SL2L265->SetBinContent(47,1177.143); h_SL2L265->SetBinContent(48,1142.857); h_SL2L265->SetBinContent(49,1018.571); h_SL2L265->SetBinContent(50,922.8572); h_SL2L265->SetBinContent(51,871.4286); h_SL2L265->SetBinContent(52,730); h_SL2L265->SetBinContent(53,788.5715); h_SL2L265->SetBinContent(54,688.5715); h_SL2L265->SetBinContent(55,668.5715); h_SL2L265->SetBinContent(56,571.4286); h_SL2L265->SetBinContent(57,500); h_SL2L265->SetMaximum(90943.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,607.1429); h_SL2L366->SetBinContent(2,738.5715); h_SL2L366->SetBinContent(3,801.4286); h_SL2L366->SetBinContent(4,840); h_SL2L366->SetBinContent(5,965.7143); h_SL2L366->SetBinContent(6,925.7143); h_SL2L366->SetBinContent(7,1058.571); h_SL2L366->SetBinContent(8,1147.143); h_SL2L366->SetBinContent(9,1234.286); h_SL2L366->SetBinContent(10,1331.429); h_SL2L366->SetBinContent(11,1435.714); h_SL2L366->SetBinContent(12,1574.286); h_SL2L366->SetBinContent(13,1721.429); h_SL2L366->SetBinContent(14,1737.143); h_SL2L366->SetBinContent(15,1898.572); h_SL2L366->SetBinContent(16,1911.429); h_SL2L366->SetBinContent(17,2008.572); h_SL2L366->SetBinContent(18,2307.143); h_SL2L366->SetBinContent(19,2470); h_SL2L366->SetBinContent(20,2594.286); h_SL2L366->SetBinContent(21,2511.429); h_SL2L366->SetBinContent(22,2837.143); h_SL2L366->SetBinContent(23,3162.857); h_SL2L366->SetBinContent(24,3584.286); h_SL2L366->SetBinContent(25,7860); h_SL2L366->SetBinContent(26,25840); h_SL2L366->SetBinContent(27,44844.29); h_SL2L366->SetBinContent(28,58664.29); h_SL2L366->SetBinContent(29,62604.29); h_SL2L366->SetBinContent(30,54822.86); h_SL2L366->SetBinContent(31,43221.43); h_SL2L366->SetBinContent(32,39295.71); h_SL2L366->SetBinContent(33,39444.29); h_SL2L366->SetBinContent(34,25255.71); h_SL2L366->SetBinContent(35,7307.143); h_SL2L366->SetBinContent(36,3754.286); h_SL2L366->SetBinContent(37,2914.286); h_SL2L366->SetBinContent(38,2454.286); h_SL2L366->SetBinContent(39,2145.714); h_SL2L366->SetBinContent(40,4038.572); h_SL2L366->SetBinContent(41,2312.857); h_SL2L366->SetBinContent(42,1735.714); h_SL2L366->SetBinContent(43,1474.286); h_SL2L366->SetBinContent(44,1315.714); h_SL2L366->SetBinContent(45,1184.286); h_SL2L366->SetBinContent(46,1235.714); h_SL2L366->SetBinContent(47,1127.143); h_SL2L366->SetBinContent(48,1085.714); h_SL2L366->SetBinContent(49,941.4286); h_SL2L366->SetBinContent(50,867.1429); h_SL2L366->SetBinContent(51,810); h_SL2L366->SetBinContent(52,727.1429); h_SL2L366->SetBinContent(53,751.4286); h_SL2L366->SetBinContent(54,710); h_SL2L366->SetBinContent(55,600); h_SL2L366->SetBinContent(56,531.4286); h_SL2L366->SetBinContent(57,425.7143); h_SL2L366->SetMaximum(90943.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,671.4286); h_SL2L467->SetBinContent(3,745.7143); h_SL2L467->SetBinContent(4,835.7143); h_SL2L467->SetBinContent(5,882.8572); h_SL2L467->SetBinContent(6,924.2858); h_SL2L467->SetBinContent(7,1001.429); h_SL2L467->SetBinContent(8,1051.429); h_SL2L467->SetBinContent(9,1191.429); h_SL2L467->SetBinContent(10,1222.857); h_SL2L467->SetBinContent(11,1407.143); h_SL2L467->SetBinContent(12,1527.143); h_SL2L467->SetBinContent(13,1597.143); h_SL2L467->SetBinContent(14,1671.429); h_SL2L467->SetBinContent(15,1724.286); h_SL2L467->SetBinContent(16,1875.714); h_SL2L467->SetBinContent(17,1881.429); h_SL2L467->SetBinContent(18,2060); h_SL2L467->SetBinContent(19,2340); h_SL2L467->SetBinContent(20,2515.714); h_SL2L467->SetBinContent(21,2470); h_SL2L467->SetBinContent(22,2608.572); h_SL2L467->SetBinContent(23,2968.572); h_SL2L467->SetBinContent(24,3318.572); h_SL2L467->SetBinContent(25,4114.286); h_SL2L467->SetBinContent(26,15818.57); h_SL2L467->SetBinContent(27,35434.29); h_SL2L467->SetBinContent(28,52962.86); h_SL2L467->SetBinContent(29,62311.43); h_SL2L467->SetBinContent(30,60188.57); h_SL2L467->SetBinContent(31,48380); h_SL2L467->SetBinContent(32,40372.86); h_SL2L467->SetBinContent(33,39457.14); h_SL2L467->SetBinContent(34,35481.43); h_SL2L467->SetBinContent(35,14067.14); h_SL2L467->SetBinContent(36,4598.572); h_SL2L467->SetBinContent(37,3260); h_SL2L467->SetBinContent(38,2618.572); h_SL2L467->SetBinContent(39,2200); h_SL2L467->SetBinContent(40,1898.572); h_SL2L467->SetBinContent(41,1834.286); h_SL2L467->SetBinContent(42,2258.572); h_SL2L467->SetBinContent(43,1610); h_SL2L467->SetBinContent(44,1314.286); h_SL2L467->SetBinContent(45,1242.857); h_SL2L467->SetBinContent(46,1205.714); h_SL2L467->SetBinContent(47,1094.286); h_SL2L467->SetBinContent(48,1097.143); h_SL2L467->SetBinContent(49,990); h_SL2L467->SetBinContent(50,887.1429); h_SL2L467->SetBinContent(51,847.1429); h_SL2L467->SetBinContent(52,718.5715); h_SL2L467->SetBinContent(53,755.7143); h_SL2L467->SetBinContent(54,637.1429); h_SL2L467->SetBinContent(55,667.1429); h_SL2L467->SetBinContent(56,571.4286); h_SL2L467->SetBinContent(57,495.7143); h_SL2L467->SetMaximum(90943.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 6512"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }