void RatesPerCell_Removing_noisy_cells_run_6507_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:20:25 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10333.18,67.5,92998.63); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6507",60,0,60); h_SL2L164->SetBinContent(1,640); h_SL2L164->SetBinContent(2,720); h_SL2L164->SetBinContent(3,892.8572); h_SL2L164->SetBinContent(4,951.4286); h_SL2L164->SetBinContent(5,902.8572); h_SL2L164->SetBinContent(6,1092.857); h_SL2L164->SetBinContent(7,1068.571); h_SL2L164->SetBinContent(8,1191.429); h_SL2L164->SetBinContent(9,1285.714); h_SL2L164->SetBinContent(10,1352.857); h_SL2L164->SetBinContent(11,1464.286); h_SL2L164->SetBinContent(12,1581.429); h_SL2L164->SetBinContent(13,1677.143); h_SL2L164->SetBinContent(14,1805.714); h_SL2L164->SetBinContent(15,1970); h_SL2L164->SetBinContent(16,1982.857); h_SL2L164->SetBinContent(17,2111.429); h_SL2L164->SetBinContent(18,2368.572); h_SL2L164->SetBinContent(19,2464.286); h_SL2L164->SetBinContent(20,2682.857); h_SL2L164->SetBinContent(21,2664.286); h_SL2L164->SetBinContent(22,2948.572); h_SL2L164->SetBinContent(23,3297.143); h_SL2L164->SetBinContent(24,3544.286); h_SL2L164->SetBinContent(25,7982.857); h_SL2L164->SetBinContent(26,25228.57); h_SL2L164->SetBinContent(27,44970); h_SL2L164->SetBinContent(28,58884.29); h_SL2L164->SetBinContent(29,62507.14); h_SL2L164->SetBinContent(30,54731.43); h_SL2L164->SetBinContent(31,43474.29); h_SL2L164->SetBinContent(32,39221.43); h_SL2L164->SetBinContent(33,39478.57); h_SL2L164->SetBinContent(34,25385.71); h_SL2L164->SetBinContent(36,3857.143); h_SL2L164->SetBinContent(37,6827.143); h_SL2L164->SetBinContent(38,3751.429); h_SL2L164->SetBinContent(39,5577.143); h_SL2L164->SetBinContent(40,26898.57); h_SL2L164->SetBinContent(41,61535.71); h_SL2L164->SetBinContent(42,11611.43); h_SL2L164->SetBinContent(43,12208.57); h_SL2L164->SetBinContent(44,11775.71); h_SL2L164->SetBinContent(45,1457.143); h_SL2L164->SetBinContent(46,1188.571); h_SL2L164->SetBinContent(47,1132.857); h_SL2L164->SetBinContent(48,975.7143); h_SL2L164->SetBinContent(49,990); h_SL2L164->SetBinContent(50,870); h_SL2L164->SetBinContent(51,765.7143); h_SL2L164->SetBinContent(52,725.7143); h_SL2L164->SetBinContent(53,677.1429); h_SL2L164->SetBinContent(54,682.8572); h_SL2L164->SetBinContent(55,571.4286); h_SL2L164->SetBinContent(56,470); h_SL2L164->SetBinContent(57,492.8571); h_SL2L164->SetMaximum(82665.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,570); h_SL2L265->SetBinContent(2,660); h_SL2L265->SetBinContent(3,702.8572); h_SL2L265->SetBinContent(4,955.7143); h_SL2L265->SetBinContent(5,915.7143); h_SL2L265->SetBinContent(6,988.5715); h_SL2L265->SetBinContent(7,1117.143); h_SL2L265->SetBinContent(8,1074.286); h_SL2L265->SetBinContent(9,1205.714); h_SL2L265->SetBinContent(10,1240); h_SL2L265->SetBinContent(11,1385.714); h_SL2L265->SetBinContent(12,1451.429); h_SL2L265->SetBinContent(13,1615.714); h_SL2L265->SetBinContent(14,1724.286); h_SL2L265->SetBinContent(15,1841.429); h_SL2L265->SetBinContent(16,1904.286); h_SL2L265->SetBinContent(17,2017.143); h_SL2L265->SetBinContent(18,2222.857); h_SL2L265->SetBinContent(19,2272.857); h_SL2L265->SetBinContent(20,2525.714); h_SL2L265->SetBinContent(21,2645.714); h_SL2L265->SetBinContent(22,2712.857); h_SL2L265->SetBinContent(23,2980); h_SL2L265->SetBinContent(24,3355.714); h_SL2L265->SetBinContent(25,4330); h_SL2L265->SetBinContent(26,15774.29); h_SL2L265->SetBinContent(27,35092.86); h_SL2L265->SetBinContent(28,52958.57); h_SL2L265->SetBinContent(29,61674.29); h_SL2L265->SetBinContent(30,59870); h_SL2L265->SetBinContent(31,48447.14); h_SL2L265->SetBinContent(32,40124.29); h_SL2L265->SetBinContent(33,39734.29); h_SL2L265->SetBinContent(34,35640); h_SL2L265->SetBinContent(35,14020); h_SL2L265->SetBinContent(36,4908.572); h_SL2L265->SetBinContent(37,3411.429); h_SL2L265->SetBinContent(38,2717.143); h_SL2L265->SetBinContent(39,3270); h_SL2L265->SetBinContent(40,4900); h_SL2L265->SetBinContent(41,2948.572); h_SL2L265->SetBinContent(42,2582.857); h_SL2L265->SetBinContent(43,1647.143); h_SL2L265->SetBinContent(44,2047.143); h_SL2L265->SetBinContent(45,1380); h_SL2L265->SetBinContent(46,1288.571); h_SL2L265->SetBinContent(47,1204.286); h_SL2L265->SetBinContent(48,1070); h_SL2L265->SetBinContent(49,962.8572); h_SL2L265->SetBinContent(50,921.4286); h_SL2L265->SetBinContent(51,767.1429); h_SL2L265->SetBinContent(52,765.7143); h_SL2L265->SetBinContent(53,722.8572); h_SL2L265->SetBinContent(54,704.2857); h_SL2L265->SetBinContent(55,645.7143); h_SL2L265->SetBinContent(56,531.4286); h_SL2L265->SetBinContent(57,511.4286); h_SL2L265->SetMaximum(71883.22); 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,645.7143); h_SL2L366->SetBinContent(2,698.5715); h_SL2L366->SetBinContent(3,832.8572); h_SL2L366->SetBinContent(4,932.8572); h_SL2L366->SetBinContent(5,850); h_SL2L366->SetBinContent(6,1041.429); h_SL2L366->SetBinContent(7,1047.143); h_SL2L366->SetBinContent(8,1188.571); h_SL2L366->SetBinContent(9,1195.714); h_SL2L366->SetBinContent(10,1251.429); h_SL2L366->SetBinContent(11,1451.429); h_SL2L366->SetBinContent(12,1521.429); h_SL2L366->SetBinContent(13,1658.571); h_SL2L366->SetBinContent(14,1754.286); h_SL2L366->SetBinContent(15,1860); h_SL2L366->SetBinContent(16,1938.572); h_SL2L366->SetBinContent(17,2011.429); h_SL2L366->SetBinContent(18,2164.286); h_SL2L366->SetBinContent(19,2397.143); h_SL2L366->SetBinContent(20,2541.429); h_SL2L366->SetBinContent(21,2555.714); h_SL2L366->SetBinContent(22,2797.143); h_SL2L366->SetBinContent(23,3174.286); h_SL2L366->SetBinContent(24,3488.572); h_SL2L366->SetBinContent(25,7868.572); h_SL2L366->SetBinContent(26,25104.29); h_SL2L366->SetBinContent(27,44910); h_SL2L366->SetBinContent(28,58794.29); h_SL2L366->SetBinContent(29,62177.14); h_SL2L366->SetBinContent(30,54781.43); h_SL2L366->SetBinContent(31,43425.71); h_SL2L366->SetBinContent(32,39370); h_SL2L366->SetBinContent(33,39464.29); h_SL2L366->SetBinContent(34,25544.29); h_SL2L366->SetBinContent(35,7251.429); h_SL2L366->SetBinContent(36,3927.143); h_SL2L366->SetBinContent(37,3012.857); h_SL2L366->SetBinContent(38,2381.429); h_SL2L366->SetBinContent(39,2092.857); h_SL2L366->SetBinContent(40,3870); h_SL2L366->SetBinContent(41,2284.286); h_SL2L366->SetBinContent(42,1590); h_SL2L366->SetBinContent(43,1510); h_SL2L366->SetBinContent(44,1265.714); h_SL2L366->SetBinContent(45,1355.714); h_SL2L366->SetBinContent(46,1187.143); h_SL2L366->SetBinContent(47,1115.714); h_SL2L366->SetBinContent(48,972.8572); h_SL2L366->SetBinContent(49,964.2858); h_SL2L366->SetBinContent(50,827.1429); h_SL2L366->SetBinContent(51,715.7143); h_SL2L366->SetBinContent(52,755.7143); h_SL2L366->SetBinContent(53,687.1429); h_SL2L366->SetBinContent(54,677.1429); h_SL2L366->SetBinContent(55,552.8572); h_SL2L366->SetBinContent(56,442.8571); h_SL2L366->SetBinContent(57,458.5714); h_SL2L366->SetMaximum(71883.22); 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,710); h_SL2L467->SetBinContent(3,694.2857); h_SL2L467->SetBinContent(4,894.2857); h_SL2L467->SetBinContent(5,864.2857); h_SL2L467->SetBinContent(6,918.5715); h_SL2L467->SetBinContent(7,1072.857); h_SL2L467->SetBinContent(8,1060); h_SL2L467->SetBinContent(9,1181.429); h_SL2L467->SetBinContent(10,1182.857); h_SL2L467->SetBinContent(11,1332.857); h_SL2L467->SetBinContent(12,1467.143); h_SL2L467->SetBinContent(13,1534.286); h_SL2L467->SetBinContent(14,1647.143); h_SL2L467->SetBinContent(15,1775.714); h_SL2L467->SetBinContent(16,1810); h_SL2L467->SetBinContent(17,1875.714); h_SL2L467->SetBinContent(18,2105.714); h_SL2L467->SetBinContent(19,2207.143); h_SL2L467->SetBinContent(20,2484.286); h_SL2L467->SetBinContent(21,2505.714); h_SL2L467->SetBinContent(22,2671.429); h_SL2L467->SetBinContent(23,2825.714); h_SL2L467->SetBinContent(24,3211.429); h_SL2L467->SetBinContent(25,4231.429); h_SL2L467->SetBinContent(26,15720); h_SL2L467->SetBinContent(27,35061.43); h_SL2L467->SetBinContent(28,52805.71); h_SL2L467->SetBinContent(29,61778.57); h_SL2L467->SetBinContent(30,60307.14); h_SL2L467->SetBinContent(31,48312.86); h_SL2L467->SetBinContent(32,40248.57); h_SL2L467->SetBinContent(33,39705.71); h_SL2L467->SetBinContent(34,35705.71); h_SL2L467->SetBinContent(35,13952.86); h_SL2L467->SetBinContent(36,4684.286); h_SL2L467->SetBinContent(37,3378.572); h_SL2L467->SetBinContent(38,2571.429); h_SL2L467->SetBinContent(39,2135.714); h_SL2L467->SetBinContent(40,1948.572); h_SL2L467->SetBinContent(41,1738.571); h_SL2L467->SetBinContent(42,2210); h_SL2L467->SetBinContent(43,1550); h_SL2L467->SetBinContent(44,1337.143); h_SL2L467->SetBinContent(45,1312.857); h_SL2L467->SetBinContent(46,1208.571); h_SL2L467->SetBinContent(47,1120); h_SL2L467->SetBinContent(48,1051.429); h_SL2L467->SetBinContent(49,920); h_SL2L467->SetBinContent(50,891.4286); h_SL2L467->SetBinContent(51,765.7143); h_SL2L467->SetBinContent(52,690); h_SL2L467->SetBinContent(53,668.5715); h_SL2L467->SetBinContent(54,701.4286); h_SL2L467->SetBinContent(55,607.1429); h_SL2L467->SetBinContent(56,528.5714); h_SL2L467->SetBinContent(57,501.4286); h_SL2L467->SetMaximum(71883.22); 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 6507"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }