void RatesPerCell_Removing_noisy_cells_run_7440_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:15:25 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12894.38,67.5,116049.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7440",60,0,60); h_SL2L164->SetBinContent(1,26385.71); h_SL2L164->SetBinContent(2,33092.86); h_SL2L164->SetBinContent(3,39071.43); h_SL2L164->SetBinContent(4,41971.43); h_SL2L164->SetBinContent(5,40864.29); h_SL2L164->SetBinContent(6,38985.71); h_SL2L164->SetBinContent(7,36292.86); h_SL2L164->SetBinContent(8,34942.86); h_SL2L164->SetBinContent(9,38364.29); h_SL2L164->SetBinContent(10,39535.71); h_SL2L164->SetBinContent(11,40700); h_SL2L164->SetBinContent(12,40700); h_SL2L164->SetBinContent(13,40521.43); h_SL2L164->SetBinContent(14,40435.71); h_SL2L164->SetBinContent(15,39421.43); h_SL2L164->SetBinContent(16,39085.71); h_SL2L164->SetBinContent(17,37614.29); h_SL2L164->SetBinContent(18,38242.86); h_SL2L164->SetBinContent(19,36635.71); h_SL2L164->SetBinContent(20,35350); h_SL2L164->SetBinContent(21,34371.43); h_SL2L164->SetBinContent(22,32957.14); h_SL2L164->SetBinContent(23,30421.43); h_SL2L164->SetBinContent(24,29385.71); h_SL2L164->SetBinContent(25,28035.71); h_SL2L164->SetBinContent(26,27650); h_SL2L164->SetBinContent(27,27350); h_SL2L164->SetBinContent(28,26600); h_SL2L164->SetBinContent(29,26471.43); h_SL2L164->SetBinContent(30,25007.14); h_SL2L164->SetBinContent(31,24828.57); h_SL2L164->SetBinContent(32,26057.14); h_SL2L164->SetBinContent(33,27428.57); h_SL2L164->SetBinContent(34,27671.43); h_SL2L164->SetBinContent(36,27271.43); h_SL2L164->SetBinContent(37,29450); h_SL2L164->SetBinContent(38,29407.14); h_SL2L164->SetBinContent(39,28950); h_SL2L164->SetBinContent(40,49092.86); h_SL2L164->SetBinContent(41,78000); h_SL2L164->SetBinContent(42,31792.86); h_SL2L164->SetBinContent(43,31114.29); h_SL2L164->SetBinContent(44,30550); h_SL2L164->SetBinContent(45,26585.71); h_SL2L164->SetBinContent(46,24564.29); h_SL2L164->SetBinContent(47,24928.57); h_SL2L164->SetBinContent(48,24142.86); h_SL2L164->SetBinContent(49,24671.43); h_SL2L164->SetBinContent(50,23985.71); h_SL2L164->SetBinContent(51,25535.71); h_SL2L164->SetBinContent(52,29078.57); h_SL2L164->SetBinContent(53,31142.86); h_SL2L164->SetBinContent(54,32435.71); h_SL2L164->SetBinContent(55,31828.57); h_SL2L164->SetBinContent(56,26642.86); h_SL2L164->SetBinContent(57,20378.57); h_SL2L164->SetMaximum(103155); 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,19578.57); h_SL2L265->SetBinContent(2,31714.29); h_SL2L265->SetBinContent(3,34135.71); h_SL2L265->SetBinContent(4,39478.57); h_SL2L265->SetBinContent(5,39757.14); h_SL2L265->SetBinContent(6,39785.71); h_SL2L265->SetBinContent(7,37600); h_SL2L265->SetBinContent(8,32350); h_SL2L265->SetBinContent(9,36178.57); h_SL2L265->SetBinContent(10,37578.57); h_SL2L265->SetBinContent(11,38364.29); h_SL2L265->SetBinContent(12,38957.14); h_SL2L265->SetBinContent(13,38821.43); h_SL2L265->SetBinContent(14,39214.29); h_SL2L265->SetBinContent(15,39164.29); h_SL2L265->SetBinContent(16,36592.86); h_SL2L265->SetBinContent(17,37757.14); h_SL2L265->SetBinContent(18,38150); h_SL2L265->SetBinContent(19,35814.29); h_SL2L265->SetBinContent(20,35014.29); h_SL2L265->SetBinContent(21,33642.86); h_SL2L265->SetBinContent(22,31707.14); h_SL2L265->SetBinContent(23,30478.57); h_SL2L265->SetBinContent(24,28707.14); h_SL2L265->SetBinContent(25,27928.57); h_SL2L265->SetBinContent(26,27471.43); h_SL2L265->SetBinContent(27,25950); h_SL2L265->SetBinContent(28,27678.57); h_SL2L265->SetBinContent(29,26485.71); h_SL2L265->SetBinContent(30,25785.71); h_SL2L265->SetBinContent(31,23635.71); h_SL2L265->SetBinContent(32,25328.57); h_SL2L265->SetBinContent(33,25371.43); h_SL2L265->SetBinContent(34,26971.43); h_SL2L265->SetBinContent(35,25721.43); h_SL2L265->SetBinContent(36,25585.71); h_SL2L265->SetBinContent(37,26228.57); h_SL2L265->SetBinContent(38,27400); h_SL2L265->SetBinContent(39,27735.71); h_SL2L265->SetBinContent(40,28264.29); h_SL2L265->SetBinContent(41,27964.29); h_SL2L265->SetBinContent(42,27157.14); h_SL2L265->SetBinContent(43,25842.86); h_SL2L265->SetBinContent(44,26635.71); h_SL2L265->SetBinContent(45,25971.43); h_SL2L265->SetBinContent(46,24742.86); h_SL2L265->SetBinContent(47,24064.29); h_SL2L265->SetBinContent(48,23378.57); h_SL2L265->SetBinContent(49,23871.43); h_SL2L265->SetBinContent(50,24142.86); h_SL2L265->SetBinContent(51,22678.57); h_SL2L265->SetBinContent(52,26528.57); h_SL2L265->SetBinContent(53,28578.57); h_SL2L265->SetBinContent(54,30907.14); h_SL2L265->SetBinContent(55,32200); h_SL2L265->SetBinContent(56,27635.71); h_SL2L265->SetBinContent(57,24807.14); h_SL2L265->SetMaximum(89700); 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,23507.14); h_SL2L366->SetBinContent(2,31571.43); h_SL2L366->SetBinContent(3,38228.57); h_SL2L366->SetBinContent(4,38614.29); h_SL2L366->SetBinContent(5,39207.14); h_SL2L366->SetBinContent(6,37714.29); h_SL2L366->SetBinContent(7,34114.29); h_SL2L366->SetBinContent(8,33450); h_SL2L366->SetBinContent(9,36457.14); h_SL2L366->SetBinContent(10,37350); h_SL2L366->SetBinContent(11,37364.29); h_SL2L366->SetBinContent(12,37992.86); h_SL2L366->SetBinContent(13,37550); h_SL2L366->SetBinContent(14,37207.14); h_SL2L366->SetBinContent(15,37935.71); h_SL2L366->SetBinContent(16,37421.43); h_SL2L366->SetBinContent(17,35778.57); h_SL2L366->SetBinContent(18,35735.71); h_SL2L366->SetBinContent(19,35635.71); h_SL2L366->SetBinContent(20,33607.14); h_SL2L366->SetBinContent(21,32714.29); h_SL2L366->SetBinContent(22,30221.43); h_SL2L366->SetBinContent(23,28457.14); h_SL2L366->SetBinContent(24,27371.43); h_SL2L366->SetBinContent(25,26221.43); h_SL2L366->SetBinContent(26,27121.43); h_SL2L366->SetBinContent(27,25600); h_SL2L366->SetBinContent(28,25757.14); h_SL2L366->SetBinContent(29,25014.29); h_SL2L366->SetBinContent(30,23785.71); h_SL2L366->SetBinContent(31,23928.57); h_SL2L366->SetBinContent(32,24435.71); h_SL2L366->SetBinContent(33,26085.71); h_SL2L366->SetBinContent(34,26100); h_SL2L366->SetBinContent(35,24485.71); h_SL2L366->SetBinContent(36,26035.71); h_SL2L366->SetBinContent(37,26771.43); h_SL2L366->SetBinContent(38,26450); h_SL2L366->SetBinContent(39,26228.57); h_SL2L366->SetBinContent(40,26371.43); h_SL2L366->SetBinContent(41,26114.29); h_SL2L366->SetBinContent(42,25807.14); h_SL2L366->SetBinContent(43,25242.86); h_SL2L366->SetBinContent(44,26250); h_SL2L366->SetBinContent(45,24107.14); h_SL2L366->SetBinContent(46,24035.71); h_SL2L366->SetBinContent(47,23371.43); h_SL2L366->SetBinContent(48,22971.43); h_SL2L366->SetBinContent(49,23228.57); h_SL2L366->SetBinContent(50,23000); h_SL2L366->SetBinContent(51,23335.71); h_SL2L366->SetBinContent(52,26492.86); h_SL2L366->SetBinContent(53,29414.29); h_SL2L366->SetBinContent(54,30807.14); h_SL2L366->SetBinContent(55,31307.14); h_SL2L366->SetBinContent(56,24842.86); h_SL2L366->SetBinContent(57,22421.43); h_SL2L366->SetMaximum(89700); 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,28685.71); h_SL2L467->SetBinContent(3,34842.86); h_SL2L467->SetBinContent(4,38064.29); h_SL2L467->SetBinContent(5,38407.14); h_SL2L467->SetBinContent(6,35721.43); h_SL2L467->SetBinContent(7,34914.29); h_SL2L467->SetBinContent(8,30921.43); h_SL2L467->SetBinContent(9,34714.29); h_SL2L467->SetBinContent(10,34878.57); h_SL2L467->SetBinContent(11,37435.71); h_SL2L467->SetBinContent(12,36978.57); h_SL2L467->SetBinContent(13,37021.43); h_SL2L467->SetBinContent(14,36921.43); h_SL2L467->SetBinContent(15,37078.57); h_SL2L467->SetBinContent(16,35650); h_SL2L467->SetBinContent(17,34742.86); h_SL2L467->SetBinContent(18,34907.14); h_SL2L467->SetBinContent(19,33942.86); h_SL2L467->SetBinContent(20,33321.43); h_SL2L467->SetBinContent(21,31271.43); h_SL2L467->SetBinContent(22,30528.57); h_SL2L467->SetBinContent(23,29907.14); h_SL2L467->SetBinContent(24,27007.14); h_SL2L467->SetBinContent(25,25992.86); h_SL2L467->SetBinContent(26,25707.14); h_SL2L467->SetBinContent(27,25478.57); h_SL2L467->SetBinContent(28,25207.14); h_SL2L467->SetBinContent(29,24342.86); h_SL2L467->SetBinContent(30,25428.57); h_SL2L467->SetBinContent(31,23014.29); h_SL2L467->SetBinContent(32,24064.29); h_SL2L467->SetBinContent(33,24657.14); h_SL2L467->SetBinContent(34,24807.14); h_SL2L467->SetBinContent(35,24907.14); h_SL2L467->SetBinContent(36,25278.57); h_SL2L467->SetBinContent(37,24935.71); h_SL2L467->SetBinContent(38,26014.29); h_SL2L467->SetBinContent(39,26914.29); h_SL2L467->SetBinContent(40,25985.71); h_SL2L467->SetBinContent(41,25128.57); h_SL2L467->SetBinContent(42,25678.57); h_SL2L467->SetBinContent(43,24850); h_SL2L467->SetBinContent(44,25257.14); h_SL2L467->SetBinContent(45,24978.57); h_SL2L467->SetBinContent(46,23450); h_SL2L467->SetBinContent(47,23728.57); h_SL2L467->SetBinContent(48,22164.29); h_SL2L467->SetBinContent(49,22485.71); h_SL2L467->SetBinContent(50,22492.86); h_SL2L467->SetBinContent(51,21764.29); h_SL2L467->SetBinContent(52,25385.71); h_SL2L467->SetBinContent(53,26500); h_SL2L467->SetBinContent(54,30071.43); h_SL2L467->SetBinContent(55,29792.86); h_SL2L467->SetBinContent(56,26907.14); h_SL2L467->SetBinContent(57,22807.14); h_SL2L467->SetMaximum(89700); 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 7440"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }