void RatesPerCell_Removing_noisy_cells_run_4976_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:09:26 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9100.094,67.5,81900.84); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4976",60,0,60); h_SL2L164->SetBinContent(1,632.8572); h_SL2L164->SetBinContent(2,797.1429); h_SL2L164->SetBinContent(3,927.8572); h_SL2L164->SetBinContent(4,999.2858); h_SL2L164->SetBinContent(5,1027.143); h_SL2L164->SetBinContent(6,1026.429); h_SL2L164->SetBinContent(7,1103.571); h_SL2L164->SetBinContent(8,1157.857); h_SL2L164->SetBinContent(9,1294.286); h_SL2L164->SetBinContent(10,1479.286); h_SL2L164->SetBinContent(11,1579.286); h_SL2L164->SetBinContent(12,1689.286); h_SL2L164->SetBinContent(13,1818.571); h_SL2L164->SetBinContent(14,2061.429); h_SL2L164->SetBinContent(15,2152.143); h_SL2L164->SetBinContent(16,2279.286); h_SL2L164->SetBinContent(17,2365.714); h_SL2L164->SetBinContent(18,2564.286); h_SL2L164->SetBinContent(19,2896.429); h_SL2L164->SetBinContent(20,3032.857); h_SL2L164->SetBinContent(21,3205.714); h_SL2L164->SetBinContent(22,3611.429); h_SL2L164->SetBinContent(23,3815); h_SL2L164->SetBinContent(24,4153.571); h_SL2L164->SetBinContent(25,9034.286); h_SL2L164->SetBinContent(26,28713.57); h_SL2L164->SetBinContent(27,44332.86); h_SL2L164->SetBinContent(28,51992.86); h_SL2L164->SetBinContent(29,55047.86); h_SL2L164->SetBinContent(30,52700); h_SL2L164->SetBinContent(31,48579.29); h_SL2L164->SetBinContent(32,49501.43); h_SL2L164->SetBinContent(33,47391.43); h_SL2L164->SetBinContent(34,27180.71); h_SL2L164->SetBinContent(35,7.142858); h_SL2L164->SetBinContent(36,4802.143); h_SL2L164->SetBinContent(37,9308.571); h_SL2L164->SetBinContent(38,5682.143); h_SL2L164->SetBinContent(39,7955); h_SL2L164->SetBinContent(40,36684.29); h_SL2L164->SetBinContent(41,9717.144); h_SL2L164->SetBinContent(42,10345); h_SL2L164->SetBinContent(43,10394.29); h_SL2L164->SetBinContent(44,10440.71); h_SL2L164->SetBinContent(45,1441.429); h_SL2L164->SetBinContent(46,1339.286); h_SL2L164->SetBinContent(47,1227.857); h_SL2L164->SetBinContent(48,1122.857); h_SL2L164->SetBinContent(49,982.8572); h_SL2L164->SetBinContent(50,878.5715); h_SL2L164->SetBinContent(51,876.4286); h_SL2L164->SetBinContent(52,803.5715); h_SL2L164->SetBinContent(53,804.2857); h_SL2L164->SetBinContent(54,715); h_SL2L164->SetBinContent(55,684.2857); h_SL2L164->SetBinContent(56,552.1429); h_SL2L164->SetBinContent(57,2755); h_SL2L164->SetMaximum(72800.75); 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,594.2857); h_SL2L265->SetBinContent(2,735); h_SL2L265->SetBinContent(3,818.5715); h_SL2L265->SetBinContent(4,916.4286); h_SL2L265->SetBinContent(5,1000.714); h_SL2L265->SetBinContent(6,997.1429); h_SL2L265->SetBinContent(7,1034.286); h_SL2L265->SetBinContent(8,1132.857); h_SL2L265->SetBinContent(9,1206.429); h_SL2L265->SetBinContent(10,1340.714); h_SL2L265->SetBinContent(11,1566.429); h_SL2L265->SetBinContent(12,1572.857); h_SL2L265->SetBinContent(13,1760.714); h_SL2L265->SetBinContent(14,1933.572); h_SL2L265->SetBinContent(15,2024.286); h_SL2L265->SetBinContent(16,2135.714); h_SL2L265->SetBinContent(17,2232.143); h_SL2L265->SetBinContent(18,2393.572); h_SL2L265->SetBinContent(19,2620.714); h_SL2L265->SetBinContent(20,2963.572); h_SL2L265->SetBinContent(21,3055.714); h_SL2L265->SetBinContent(22,3353.572); h_SL2L265->SetBinContent(23,3637.857); h_SL2L265->SetBinContent(24,3882.857); h_SL2L265->SetBinContent(25,4723.572); h_SL2L265->SetBinContent(26,18128.57); h_SL2L265->SetBinContent(27,37537.14); h_SL2L265->SetBinContent(28,48942.86); h_SL2L265->SetBinContent(29,53635); h_SL2L265->SetBinContent(30,54137.86); h_SL2L265->SetBinContent(31,49689.29); h_SL2L265->SetBinContent(32,48777.86); h_SL2L265->SetBinContent(33,49006.43); h_SL2L265->SetBinContent(34,41047.86); h_SL2L265->SetBinContent(35,14365.71); h_SL2L265->SetBinContent(36,5369.286); h_SL2L265->SetBinContent(37,3704.286); h_SL2L265->SetBinContent(38,2990.714); h_SL2L265->SetBinContent(39,4431.429); h_SL2L265->SetBinContent(40,6000); h_SL2L265->SetBinContent(41,2412.857); h_SL2L265->SetBinContent(42,2692.143); h_SL2L265->SetBinContent(43,2022.857); h_SL2L265->SetBinContent(44,3000); h_SL2L265->SetBinContent(45,1485); h_SL2L265->SetBinContent(46,1363.571); h_SL2L265->SetBinContent(47,1242.857); h_SL2L265->SetBinContent(48,1144.286); h_SL2L265->SetBinContent(49,1032.857); h_SL2L265->SetBinContent(50,922.8572); h_SL2L265->SetBinContent(51,858.5715); h_SL2L265->SetBinContent(52,794.2857); h_SL2L265->SetBinContent(53,817.8572); h_SL2L265->SetBinContent(54,721.4286); h_SL2L265->SetBinContent(55,665); h_SL2L265->SetBinContent(56,596.4286); h_SL2L265->SetBinContent(57,547.8572); h_SL2L265->SetMaximum(63305.04); 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,635.7143); h_SL2L366->SetBinContent(2,788.5715); h_SL2L366->SetBinContent(3,857.1429); h_SL2L366->SetBinContent(4,962.1429); h_SL2L366->SetBinContent(5,963.5715); h_SL2L366->SetBinContent(6,1005); h_SL2L366->SetBinContent(7,1037.857); h_SL2L366->SetBinContent(8,1115); h_SL2L366->SetBinContent(9,1247.143); h_SL2L366->SetBinContent(10,1398.571); h_SL2L366->SetBinContent(11,1497.857); h_SL2L366->SetBinContent(12,1675.714); h_SL2L366->SetBinContent(13,1727.857); h_SL2L366->SetBinContent(14,1986.429); h_SL2L366->SetBinContent(15,2094.286); h_SL2L366->SetBinContent(16,2117.143); h_SL2L366->SetBinContent(17,2229.286); h_SL2L366->SetBinContent(18,2438.572); h_SL2L366->SetBinContent(19,2767.143); h_SL2L366->SetBinContent(20,2893.572); h_SL2L366->SetBinContent(21,3146.429); h_SL2L366->SetBinContent(22,3435.714); h_SL2L366->SetBinContent(23,3629.286); h_SL2L366->SetBinContent(24,4035); h_SL2L366->SetBinContent(25,8830); h_SL2L366->SetBinContent(26,28707.86); h_SL2L366->SetBinContent(27,44157.14); h_SL2L366->SetBinContent(28,51758.57); h_SL2L366->SetBinContent(29,54248.57); h_SL2L366->SetBinContent(30,52348.57); h_SL2L366->SetBinContent(31,48466.43); h_SL2L366->SetBinContent(32,49605); h_SL2L366->SetBinContent(33,47292.86); h_SL2L366->SetBinContent(34,27152.86); h_SL2L366->SetBinContent(35,7601.429); h_SL2L366->SetBinContent(36,4316.429); h_SL2L366->SetBinContent(37,3179.286); h_SL2L366->SetBinContent(38,2692.857); h_SL2L366->SetBinContent(39,2433.572); h_SL2L366->SetBinContent(40,4217.857); h_SL2L366->SetBinContent(41,1905); h_SL2L366->SetBinContent(42,1763.571); h_SL2L366->SetBinContent(43,1582.857); h_SL2L366->SetBinContent(44,1502.857); h_SL2L366->SetBinContent(45,1401.429); h_SL2L366->SetBinContent(46,1250.714); h_SL2L366->SetBinContent(47,1167.143); h_SL2L366->SetBinContent(48,1067.143); h_SL2L366->SetBinContent(49,958.5715); h_SL2L366->SetBinContent(50,848.5715); h_SL2L366->SetBinContent(51,820.7143); h_SL2L366->SetBinContent(52,773.5715); h_SL2L366->SetBinContent(53,718.5715); h_SL2L366->SetBinContent(54,675.7143); h_SL2L366->SetBinContent(55,650); h_SL2L366->SetBinContent(56,552.1429); h_SL2L366->SetBinContent(57,508.5714); h_SL2L366->SetMaximum(63305.04); 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,688.5715); h_SL2L467->SetBinContent(3,801.4286); h_SL2L467->SetBinContent(4,865.7143); h_SL2L467->SetBinContent(5,926.4286); h_SL2L467->SetBinContent(6,947.8572); h_SL2L467->SetBinContent(7,987.8572); h_SL2L467->SetBinContent(8,1037.143); h_SL2L467->SetBinContent(9,1153.571); h_SL2L467->SetBinContent(10,1257.857); h_SL2L467->SetBinContent(11,1427.857); h_SL2L467->SetBinContent(12,1493.571); h_SL2L467->SetBinContent(13,1694.286); h_SL2L467->SetBinContent(14,1828.572); h_SL2L467->SetBinContent(15,1922.143); h_SL2L467->SetBinContent(16,2020.714); h_SL2L467->SetBinContent(17,2133.572); h_SL2L467->SetBinContent(18,2230); h_SL2L467->SetBinContent(19,2535.714); h_SL2L467->SetBinContent(20,2826.429); h_SL2L467->SetBinContent(21,2970); h_SL2L467->SetBinContent(22,3260); h_SL2L467->SetBinContent(23,3533.572); h_SL2L467->SetBinContent(24,3715.714); h_SL2L467->SetBinContent(25,4589.286); h_SL2L467->SetBinContent(26,18145.71); h_SL2L467->SetBinContent(27,37848.57); h_SL2L467->SetBinContent(28,48837.86); h_SL2L467->SetBinContent(29,53572.86); h_SL2L467->SetBinContent(30,54894.29); h_SL2L467->SetBinContent(31,49809.29); h_SL2L467->SetBinContent(32,48949.29); h_SL2L467->SetBinContent(33,49287.86); h_SL2L467->SetBinContent(34,41102.86); h_SL2L467->SetBinContent(35,14347.14); h_SL2L467->SetBinContent(36,5251.429); h_SL2L467->SetBinContent(37,3647.143); h_SL2L467->SetBinContent(38,2807.143); h_SL2L467->SetBinContent(39,2499.286); h_SL2L467->SetBinContent(40,2197.857); h_SL2L467->SetBinContent(41,1957.143); h_SL2L467->SetBinContent(42,1778.571); h_SL2L467->SetBinContent(43,1629.286); h_SL2L467->SetBinContent(44,1517.143); h_SL2L467->SetBinContent(45,1392.857); h_SL2L467->SetBinContent(46,1257.857); h_SL2L467->SetBinContent(47,1221.429); h_SL2L467->SetBinContent(48,1077.143); h_SL2L467->SetBinContent(49,987.8572); h_SL2L467->SetBinContent(50,897.8572); h_SL2L467->SetBinContent(51,815); h_SL2L467->SetBinContent(52,770); h_SL2L467->SetBinContent(53,760.7143); h_SL2L467->SetBinContent(54,656.4286); h_SL2L467->SetBinContent(55,652.8572); h_SL2L467->SetBinContent(56,588.5715); h_SL2L467->SetBinContent(57,512.8572); h_SL2L467->SetMaximum(63305.04); 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 4976"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }