void RatesPerCell_Removing_noisy_cells_run_6570_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:04:25 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-15661.56,67.5,140954.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6570",60,0,60); h_SL2L164->SetBinContent(1,782.8572); h_SL2L164->SetBinContent(2,937.1429); h_SL2L164->SetBinContent(3,1028.571); h_SL2L164->SetBinContent(4,1111.429); h_SL2L164->SetBinContent(5,1127.143); h_SL2L164->SetBinContent(6,1140); h_SL2L164->SetBinContent(7,1238.571); h_SL2L164->SetBinContent(8,1404.286); h_SL2L164->SetBinContent(9,1404.286); h_SL2L164->SetBinContent(10,1481.429); h_SL2L164->SetBinContent(11,1572.857); h_SL2L164->SetBinContent(12,1687.143); h_SL2L164->SetBinContent(13,1828.572); h_SL2L164->SetBinContent(14,1872.857); h_SL2L164->SetBinContent(15,1938.572); h_SL2L164->SetBinContent(16,2040); h_SL2L164->SetBinContent(17,2181.429); h_SL2L164->SetBinContent(18,2390); h_SL2L164->SetBinContent(19,2452.857); h_SL2L164->SetBinContent(20,2625.714); h_SL2L164->SetBinContent(21,2722.857); h_SL2L164->SetBinContent(22,2804.286); h_SL2L164->SetBinContent(23,3162.857); h_SL2L164->SetBinContent(24,3745.714); h_SL2L164->SetBinContent(25,8815.715); h_SL2L164->SetBinContent(26,27065.71); h_SL2L164->SetBinContent(27,41748.57); h_SL2L164->SetBinContent(28,49551.43); h_SL2L164->SetBinContent(29,53227.14); h_SL2L164->SetBinContent(30,51717.14); h_SL2L164->SetBinContent(31,50087.14); h_SL2L164->SetBinContent(32,50297.14); h_SL2L164->SetBinContent(33,49018.57); h_SL2L164->SetBinContent(34,27561.43); h_SL2L164->SetBinContent(36,3814.286); h_SL2L164->SetBinContent(37,9082.857); h_SL2L164->SetBinContent(38,5354.286); h_SL2L164->SetBinContent(39,6761.429); h_SL2L164->SetBinContent(40,47525.71); h_SL2L164->SetBinContent(41,94740); h_SL2L164->SetBinContent(42,13272.86); h_SL2L164->SetBinContent(43,13374.29); h_SL2L164->SetBinContent(44,13907.14); h_SL2L164->SetBinContent(45,1454.286); h_SL2L164->SetBinContent(46,1374.286); h_SL2L164->SetBinContent(47,1147.143); h_SL2L164->SetBinContent(48,1158.571); h_SL2L164->SetBinContent(49,1117.143); h_SL2L164->SetBinContent(50,967.1429); h_SL2L164->SetBinContent(51,972.8572); h_SL2L164->SetBinContent(52,804.2857); h_SL2L164->SetBinContent(53,788.5715); h_SL2L164->SetBinContent(54,788.5715); h_SL2L164->SetBinContent(55,774.2857); h_SL2L164->SetBinContent(56,628.5715); h_SL2L164->SetBinContent(57,6047.143); h_SL2L164->SetMaximum(125292.5); 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,724.2857); h_SL2L265->SetBinContent(2,878.5715); h_SL2L265->SetBinContent(3,970); h_SL2L265->SetBinContent(4,1064.286); h_SL2L265->SetBinContent(5,1084.286); h_SL2L265->SetBinContent(6,1127.143); h_SL2L265->SetBinContent(7,1161.429); h_SL2L265->SetBinContent(8,1285.714); h_SL2L265->SetBinContent(9,1375.714); h_SL2L265->SetBinContent(10,1327.143); h_SL2L265->SetBinContent(11,1562.857); h_SL2L265->SetBinContent(12,1597.143); h_SL2L265->SetBinContent(13,1638.571); h_SL2L265->SetBinContent(14,1927.143); h_SL2L265->SetBinContent(15,1864.286); h_SL2L265->SetBinContent(16,1988.572); h_SL2L265->SetBinContent(17,2165.714); h_SL2L265->SetBinContent(18,2290); h_SL2L265->SetBinContent(19,2340); h_SL2L265->SetBinContent(20,2577.143); h_SL2L265->SetBinContent(21,2651.429); h_SL2L265->SetBinContent(22,2657.143); h_SL2L265->SetBinContent(23,2825.714); h_SL2L265->SetBinContent(24,3354.286); h_SL2L265->SetBinContent(25,4424.286); h_SL2L265->SetBinContent(26,17568.57); h_SL2L265->SetBinContent(27,35128.57); h_SL2L265->SetBinContent(28,46675.71); h_SL2L265->SetBinContent(29,51571.43); h_SL2L265->SetBinContent(30,52517.14); h_SL2L265->SetBinContent(31,49794.29); h_SL2L265->SetBinContent(32,49855.71); h_SL2L265->SetBinContent(33,50692.86); h_SL2L265->SetBinContent(34,41598.57); h_SL2L265->SetBinContent(35,14772.86); h_SL2L265->SetBinContent(36,4790); h_SL2L265->SetBinContent(37,3345.714); h_SL2L265->SetBinContent(38,2922.857); h_SL2L265->SetBinContent(39,3754.286); h_SL2L265->SetBinContent(40,5234.286); h_SL2L265->SetBinContent(41,4135.714); h_SL2L265->SetBinContent(42,3707.143); h_SL2L265->SetBinContent(43,2495.714); h_SL2L265->SetBinContent(44,3667.143); h_SL2L265->SetBinContent(45,1481.429); h_SL2L265->SetBinContent(46,1335.714); h_SL2L265->SetBinContent(47,1240); h_SL2L265->SetBinContent(48,1120); h_SL2L265->SetBinContent(49,1158.571); h_SL2L265->SetBinContent(50,998.5715); h_SL2L265->SetBinContent(51,937.1429); h_SL2L265->SetBinContent(52,861.4286); h_SL2L265->SetBinContent(53,817.1429); h_SL2L265->SetBinContent(54,754.2857); h_SL2L265->SetBinContent(55,790); h_SL2L265->SetBinContent(56,722.8572); h_SL2L265->SetBinContent(57,641.4286); h_SL2L265->SetMaximum(108951); 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,748.5715); h_SL2L366->SetBinContent(2,971.4286); h_SL2L366->SetBinContent(3,1017.143); h_SL2L366->SetBinContent(4,1068.571); h_SL2L366->SetBinContent(5,1105.714); h_SL2L366->SetBinContent(6,1122.857); h_SL2L366->SetBinContent(7,1194.286); h_SL2L366->SetBinContent(8,1351.429); h_SL2L366->SetBinContent(9,1344.286); h_SL2L366->SetBinContent(10,1410); h_SL2L366->SetBinContent(11,1527.143); h_SL2L366->SetBinContent(12,1594.286); h_SL2L366->SetBinContent(13,1772.857); h_SL2L366->SetBinContent(14,1854.286); h_SL2L366->SetBinContent(15,1940); h_SL2L366->SetBinContent(16,1971.429); h_SL2L366->SetBinContent(17,2205.714); h_SL2L366->SetBinContent(18,2312.857); h_SL2L366->SetBinContent(19,2418.572); h_SL2L366->SetBinContent(20,2522.857); h_SL2L366->SetBinContent(21,2558.572); h_SL2L366->SetBinContent(22,2685.714); h_SL2L366->SetBinContent(23,3027.143); h_SL2L366->SetBinContent(24,3600); h_SL2L366->SetBinContent(25,8681.429); h_SL2L366->SetBinContent(26,27230); h_SL2L366->SetBinContent(27,41761.43); h_SL2L366->SetBinContent(28,49277.14); h_SL2L366->SetBinContent(29,52632.86); h_SL2L366->SetBinContent(30,51251.43); h_SL2L366->SetBinContent(31,49984.29); h_SL2L366->SetBinContent(32,50288.57); h_SL2L366->SetBinContent(33,48881.43); h_SL2L366->SetBinContent(34,27774.29); h_SL2L366->SetBinContent(35,7398.572); h_SL2L366->SetBinContent(36,3840); h_SL2L366->SetBinContent(37,3032.857); h_SL2L366->SetBinContent(38,2474.286); h_SL2L366->SetBinContent(39,2120); h_SL2L366->SetBinContent(40,3955.714); h_SL2L366->SetBinContent(41,2367.143); h_SL2L366->SetBinContent(42,1818.571); h_SL2L366->SetBinContent(43,1684.286); h_SL2L366->SetBinContent(44,1554.286); h_SL2L366->SetBinContent(45,1424.286); h_SL2L366->SetBinContent(46,1308.571); h_SL2L366->SetBinContent(47,1115.714); h_SL2L366->SetBinContent(48,1101.429); h_SL2L366->SetBinContent(49,1062.857); h_SL2L366->SetBinContent(50,928.5715); h_SL2L366->SetBinContent(51,931.4286); h_SL2L366->SetBinContent(52,767.1429); h_SL2L366->SetBinContent(53,781.4286); h_SL2L366->SetBinContent(54,791.4286); h_SL2L366->SetBinContent(55,777.1429); h_SL2L366->SetBinContent(56,658.5715); h_SL2L366->SetBinContent(57,680); h_SL2L366->SetMaximum(108951); 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,837.1429); h_SL2L467->SetBinContent(3,930); h_SL2L467->SetBinContent(4,994.2858); h_SL2L467->SetBinContent(5,1108.571); h_SL2L467->SetBinContent(6,1065.714); h_SL2L467->SetBinContent(7,1167.143); h_SL2L467->SetBinContent(8,1281.429); h_SL2L467->SetBinContent(9,1357.143); h_SL2L467->SetBinContent(10,1310); h_SL2L467->SetBinContent(11,1454.286); h_SL2L467->SetBinContent(12,1542.857); h_SL2L467->SetBinContent(13,1542.857); h_SL2L467->SetBinContent(14,1818.571); h_SL2L467->SetBinContent(15,1822.857); h_SL2L467->SetBinContent(16,1912.857); h_SL2L467->SetBinContent(17,2074.286); h_SL2L467->SetBinContent(18,2152.857); h_SL2L467->SetBinContent(19,2312.857); h_SL2L467->SetBinContent(20,2428.572); h_SL2L467->SetBinContent(21,2574.286); h_SL2L467->SetBinContent(22,2574.286); h_SL2L467->SetBinContent(23,2812.857); h_SL2L467->SetBinContent(24,3232.857); h_SL2L467->SetBinContent(25,4240); h_SL2L467->SetBinContent(26,17471.43); h_SL2L467->SetBinContent(27,35151.43); h_SL2L467->SetBinContent(28,46394.29); h_SL2L467->SetBinContent(29,51488.57); h_SL2L467->SetBinContent(30,53180); h_SL2L467->SetBinContent(31,49864.29); h_SL2L467->SetBinContent(32,50094.29); h_SL2L467->SetBinContent(33,50775.71); h_SL2L467->SetBinContent(34,41661.43); h_SL2L467->SetBinContent(35,14840); h_SL2L467->SetBinContent(36,4720); h_SL2L467->SetBinContent(37,3318.572); h_SL2L467->SetBinContent(38,2731.429); h_SL2L467->SetBinContent(39,2230); h_SL2L467->SetBinContent(40,2028.572); h_SL2L467->SetBinContent(41,1771.429); h_SL2L467->SetBinContent(42,2248.572); h_SL2L467->SetBinContent(43,1590); h_SL2L467->SetBinContent(44,1511.429); h_SL2L467->SetBinContent(45,1441.429); h_SL2L467->SetBinContent(46,1318.571); h_SL2L467->SetBinContent(47,1252.857); h_SL2L467->SetBinContent(48,1144.286); h_SL2L467->SetBinContent(49,1084.286); h_SL2L467->SetBinContent(50,960); h_SL2L467->SetBinContent(51,917.1429); h_SL2L467->SetBinContent(52,852.8572); h_SL2L467->SetBinContent(53,751.4286); h_SL2L467->SetBinContent(54,738.5715); h_SL2L467->SetBinContent(55,767.1429); h_SL2L467->SetBinContent(56,698.5715); h_SL2L467->SetBinContent(57,622.8572); h_SL2L467->SetMaximum(108951); 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 6570"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }