void RatesPerCell_Removing_noisy_cells_run_7545_SL2() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 18:37:46 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11064.01,67.5,99576.06); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7545",60,0,60); h_SL2L164->SetBinContent(1,25507.14); h_SL2L164->SetBinContent(2,31678.57); h_SL2L164->SetBinContent(3,38257.14); h_SL2L164->SetBinContent(4,40385.71); h_SL2L164->SetBinContent(5,40400); h_SL2L164->SetBinContent(6,37392.86); h_SL2L164->SetBinContent(7,35157.14); h_SL2L164->SetBinContent(8,33250); h_SL2L164->SetBinContent(9,37500); h_SL2L164->SetBinContent(10,38278.57); h_SL2L164->SetBinContent(11,39221.43); h_SL2L164->SetBinContent(12,38878.57); h_SL2L164->SetBinContent(13,39607.14); h_SL2L164->SetBinContent(14,39571.43); h_SL2L164->SetBinContent(15,38842.86); h_SL2L164->SetBinContent(16,38200); h_SL2L164->SetBinContent(17,37514.29); h_SL2L164->SetBinContent(18,36528.57); h_SL2L164->SetBinContent(19,36600); h_SL2L164->SetBinContent(20,35871.43); h_SL2L164->SetBinContent(21,33342.86); h_SL2L164->SetBinContent(22,32078.57); h_SL2L164->SetBinContent(23,30200); h_SL2L164->SetBinContent(24,27421.43); h_SL2L164->SetBinContent(25,27350); h_SL2L164->SetBinContent(26,26600); h_SL2L164->SetBinContent(27,26164.29); h_SL2L164->SetBinContent(28,25885.71); h_SL2L164->SetBinContent(29,25550); h_SL2L164->SetBinContent(30,24792.86); h_SL2L164->SetBinContent(31,24500); h_SL2L164->SetBinContent(32,25242.86); h_SL2L164->SetBinContent(33,26500); h_SL2L164->SetBinContent(34,26942.86); h_SL2L164->SetBinContent(36,27035.71); h_SL2L164->SetBinContent(37,31085.71); h_SL2L164->SetBinContent(38,29221.43); h_SL2L164->SetBinContent(39,29542.86); h_SL2L164->SetBinContent(40,62207.14); h_SL2L164->SetBinContent(41,66928.57); h_SL2L164->SetBinContent(42,34571.43); h_SL2L164->SetBinContent(43,34000); h_SL2L164->SetBinContent(44,33185.71); h_SL2L164->SetBinContent(45,25385.71); h_SL2L164->SetBinContent(46,24750); h_SL2L164->SetBinContent(47,24200); h_SL2L164->SetBinContent(48,23164.29); h_SL2L164->SetBinContent(49,24764.29); h_SL2L164->SetBinContent(50,23971.43); h_SL2L164->SetBinContent(51,25471.43); h_SL2L164->SetBinContent(52,27992.86); h_SL2L164->SetBinContent(53,32057.14); h_SL2L164->SetBinContent(54,32200); h_SL2L164->SetBinContent(55,30800); h_SL2L164->SetBinContent(56,25450); h_SL2L164->SetBinContent(57,19907.14); h_SL2L164->SetMaximum(88512.05); 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,19814.29); h_SL2L265->SetBinContent(2,30314.29); h_SL2L265->SetBinContent(3,32907.14); h_SL2L265->SetBinContent(4,39021.43); h_SL2L265->SetBinContent(5,38942.86); h_SL2L265->SetBinContent(6,37457.14); h_SL2L265->SetBinContent(7,36114.29); h_SL2L265->SetBinContent(8,31264.29); h_SL2L265->SetBinContent(9,34878.57); h_SL2L265->SetBinContent(10,37342.86); h_SL2L265->SetBinContent(11,38064.29); h_SL2L265->SetBinContent(12,38342.86); h_SL2L265->SetBinContent(13,36828.57); h_SL2L265->SetBinContent(14,37428.57); h_SL2L265->SetBinContent(15,37064.29); h_SL2L265->SetBinContent(16,36728.57); h_SL2L265->SetBinContent(17,35778.57); h_SL2L265->SetBinContent(18,36392.86); h_SL2L265->SetBinContent(19,36178.57); h_SL2L265->SetBinContent(20,33957.14); h_SL2L265->SetBinContent(21,32385.71); h_SL2L265->SetBinContent(22,31585.71); h_SL2L265->SetBinContent(23,30714.29); h_SL2L265->SetBinContent(24,28200); h_SL2L265->SetBinContent(25,26642.86); h_SL2L265->SetBinContent(26,26364.29); h_SL2L265->SetBinContent(27,24964.29); h_SL2L265->SetBinContent(28,25478.57); h_SL2L265->SetBinContent(29,24478.57); h_SL2L265->SetBinContent(30,24828.57); h_SL2L265->SetBinContent(31,23385.71); h_SL2L265->SetBinContent(32,24771.43); h_SL2L265->SetBinContent(33,25800); h_SL2L265->SetBinContent(34,26700); h_SL2L265->SetBinContent(35,24185.71); h_SL2L265->SetBinContent(36,24271.43); h_SL2L265->SetBinContent(37,27564.29); h_SL2L265->SetBinContent(38,26414.29); h_SL2L265->SetBinContent(39,27742.86); h_SL2L265->SetBinContent(40,27971.43); h_SL2L265->SetBinContent(41,27557.14); h_SL2L265->SetBinContent(42,27057.14); h_SL2L265->SetBinContent(43,26407.14); h_SL2L265->SetBinContent(44,26978.57); h_SL2L265->SetBinContent(45,25142.86); h_SL2L265->SetBinContent(46,24285.71); h_SL2L265->SetBinContent(47,23807.14); h_SL2L265->SetBinContent(48,22264.29); h_SL2L265->SetBinContent(49,23135.71); h_SL2L265->SetBinContent(50,24457.14); h_SL2L265->SetBinContent(51,24342.86); h_SL2L265->SetBinContent(52,26214.29); h_SL2L265->SetBinContent(53,29107.14); h_SL2L265->SetBinContent(54,31414.29); h_SL2L265->SetBinContent(55,32135.71); h_SL2L265->SetBinContent(56,27428.57); h_SL2L265->SetBinContent(57,24107.14); h_SL2L265->SetMaximum(76967.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,22685.71); h_SL2L366->SetBinContent(2,29571.43); h_SL2L366->SetBinContent(3,36878.57); h_SL2L366->SetBinContent(4,38878.57); h_SL2L366->SetBinContent(5,37385.71); h_SL2L366->SetBinContent(6,35271.43); h_SL2L366->SetBinContent(7,32842.86); h_SL2L366->SetBinContent(8,32528.57); h_SL2L366->SetBinContent(9,34164.29); h_SL2L366->SetBinContent(10,36850); h_SL2L366->SetBinContent(11,36807.14); h_SL2L366->SetBinContent(12,36228.57); h_SL2L366->SetBinContent(13,37264.29); h_SL2L366->SetBinContent(14,36707.14); h_SL2L366->SetBinContent(15,35964.29); h_SL2L366->SetBinContent(16,35350); h_SL2L366->SetBinContent(17,34657.14); h_SL2L366->SetBinContent(18,35500); h_SL2L366->SetBinContent(19,34600); h_SL2L366->SetBinContent(20,32028.57); h_SL2L366->SetBinContent(21,31507.14); h_SL2L366->SetBinContent(22,30407.14); h_SL2L366->SetBinContent(23,28807.14); h_SL2L366->SetBinContent(24,25921.43); h_SL2L366->SetBinContent(25,26528.57); h_SL2L366->SetBinContent(26,25264.29); h_SL2L366->SetBinContent(27,25557.14); h_SL2L366->SetBinContent(28,24200); h_SL2L366->SetBinContent(29,24178.57); h_SL2L366->SetBinContent(30,23800); h_SL2L366->SetBinContent(31,23685.71); h_SL2L366->SetBinContent(32,24135.71); h_SL2L366->SetBinContent(33,24892.86); h_SL2L366->SetBinContent(34,24021.43); h_SL2L366->SetBinContent(35,24050); h_SL2L366->SetBinContent(36,24592.86); h_SL2L366->SetBinContent(37,25950); h_SL2L366->SetBinContent(38,25764.29); h_SL2L366->SetBinContent(39,25264.29); h_SL2L366->SetBinContent(40,26821.43); h_SL2L366->SetBinContent(41,25878.57); h_SL2L366->SetBinContent(42,25535.71); h_SL2L366->SetBinContent(43,25164.29); h_SL2L366->SetBinContent(44,24078.57); h_SL2L366->SetBinContent(45,24450); h_SL2L366->SetBinContent(46,23664.29); h_SL2L366->SetBinContent(47,22507.14); h_SL2L366->SetBinContent(48,22542.86); h_SL2L366->SetBinContent(49,23307.14); h_SL2L366->SetBinContent(50,22335.71); h_SL2L366->SetBinContent(51,23942.86); h_SL2L366->SetBinContent(52,26142.86); h_SL2L366->SetBinContent(53,28885.71); h_SL2L366->SetBinContent(54,30921.43); h_SL2L366->SetBinContent(55,30257.14); h_SL2L366->SetBinContent(56,23742.86); h_SL2L366->SetBinContent(57,21842.86); h_SL2L366->SetMaximum(76967.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,26900); h_SL2L467->SetBinContent(3,32271.43); h_SL2L467->SetBinContent(4,37228.57); h_SL2L467->SetBinContent(5,36742.86); h_SL2L467->SetBinContent(6,34457.14); h_SL2L467->SetBinContent(7,33378.57); h_SL2L467->SetBinContent(8,30700); h_SL2L467->SetBinContent(9,33114.29); h_SL2L467->SetBinContent(10,34021.43); h_SL2L467->SetBinContent(11,34528.57); h_SL2L467->SetBinContent(12,35685.71); h_SL2L467->SetBinContent(13,35371.43); h_SL2L467->SetBinContent(14,34807.14); h_SL2L467->SetBinContent(15,36000); h_SL2L467->SetBinContent(16,34314.29); h_SL2L467->SetBinContent(17,34185.71); h_SL2L467->SetBinContent(18,34800); h_SL2L467->SetBinContent(19,34300); h_SL2L467->SetBinContent(20,32700); h_SL2L467->SetBinContent(21,31335.71); h_SL2L467->SetBinContent(22,29592.86); h_SL2L467->SetBinContent(23,28178.57); h_SL2L467->SetBinContent(24,26271.43); h_SL2L467->SetBinContent(25,25185.71); h_SL2L467->SetBinContent(26,24921.43); h_SL2L467->SetBinContent(27,23771.43); h_SL2L467->SetBinContent(28,24600); h_SL2L467->SetBinContent(29,23971.43); h_SL2L467->SetBinContent(30,23742.86); h_SL2L467->SetBinContent(31,22557.14); h_SL2L467->SetBinContent(32,23378.57); h_SL2L467->SetBinContent(33,24057.14); h_SL2L467->SetBinContent(34,24614.29); h_SL2L467->SetBinContent(35,23971.43); h_SL2L467->SetBinContent(36,24264.29); h_SL2L467->SetBinContent(37,24278.57); h_SL2L467->SetBinContent(38,25657.14); h_SL2L467->SetBinContent(39,25750); h_SL2L467->SetBinContent(40,24621.43); h_SL2L467->SetBinContent(41,24421.43); h_SL2L467->SetBinContent(42,24921.43); h_SL2L467->SetBinContent(43,25164.29); h_SL2L467->SetBinContent(44,24464.29); h_SL2L467->SetBinContent(45,24114.29); h_SL2L467->SetBinContent(46,23842.86); h_SL2L467->SetBinContent(47,22742.86); h_SL2L467->SetBinContent(48,21907.14); h_SL2L467->SetBinContent(49,22014.29); h_SL2L467->SetBinContent(50,22714.29); h_SL2L467->SetBinContent(51,22421.43); h_SL2L467->SetBinContent(52,25214.29); h_SL2L467->SetBinContent(53,27764.29); h_SL2L467->SetBinContent(54,29678.57); h_SL2L467->SetBinContent(55,30464.29); h_SL2L467->SetBinContent(56,27157.14); h_SL2L467->SetBinContent(57,22028.57); h_SL2L467->SetMaximum(76967.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 7545"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }