void RatesPerCell_Removing_noisy_cells_run_7437_SL2() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 18:35:50 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9870.307,67.5,88832.76); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7437",60,0,60); h_SL2L164->SetBinContent(1,10907.14); h_SL2L164->SetBinContent(2,13507.14); h_SL2L164->SetBinContent(3,16207.14); h_SL2L164->SetBinContent(4,17500); h_SL2L164->SetBinContent(5,18007.14); h_SL2L164->SetBinContent(6,18357.14); h_SL2L164->SetBinContent(7,17800); h_SL2L164->SetBinContent(8,17242.86); h_SL2L164->SetBinContent(9,18021.43); h_SL2L164->SetBinContent(10,18207.14); h_SL2L164->SetBinContent(11,19164.29); h_SL2L164->SetBinContent(12,19935.71); h_SL2L164->SetBinContent(13,17878.57); h_SL2L164->SetBinContent(14,18800); h_SL2L164->SetBinContent(15,18607.14); h_SL2L164->SetBinContent(16,18007.14); h_SL2L164->SetBinContent(17,18564.29); h_SL2L164->SetBinContent(18,17985.71); h_SL2L164->SetBinContent(19,17850); h_SL2L164->SetBinContent(20,17435.71); h_SL2L164->SetBinContent(21,17764.29); h_SL2L164->SetBinContent(22,16878.57); h_SL2L164->SetBinContent(23,16528.57); h_SL2L164->SetBinContent(24,15314.29); h_SL2L164->SetBinContent(25,15021.43); h_SL2L164->SetBinContent(26,15485.71); h_SL2L164->SetBinContent(27,14985.71); h_SL2L164->SetBinContent(28,14257.14); h_SL2L164->SetBinContent(29,14057.14); h_SL2L164->SetBinContent(30,15285.71); h_SL2L164->SetBinContent(31,14450); h_SL2L164->SetBinContent(32,14385.71); h_SL2L164->SetBinContent(33,14585.71); h_SL2L164->SetBinContent(34,14478.57); h_SL2L164->SetBinContent(36,14578.57); h_SL2L164->SetBinContent(37,16128.57); h_SL2L164->SetBinContent(38,15864.29); h_SL2L164->SetBinContent(39,15957.14); h_SL2L164->SetBinContent(40,37607.14); h_SL2L164->SetBinContent(41,59707.14); h_SL2L164->SetBinContent(42,18142.86); h_SL2L164->SetBinContent(43,18892.86); h_SL2L164->SetBinContent(44,18771.43); h_SL2L164->SetBinContent(45,14135.71); h_SL2L164->SetBinContent(46,14371.43); h_SL2L164->SetBinContent(47,14021.43); h_SL2L164->SetBinContent(48,13778.57); h_SL2L164->SetBinContent(49,14021.43); h_SL2L164->SetBinContent(50,13807.14); h_SL2L164->SetBinContent(51,14535.71); h_SL2L164->SetBinContent(52,15664.29); h_SL2L164->SetBinContent(53,15271.43); h_SL2L164->SetBinContent(54,15550); h_SL2L164->SetBinContent(55,13921.43); h_SL2L164->SetBinContent(56,11378.57); h_SL2L164->SetBinContent(57,7264.286); h_SL2L164->SetMaximum(78962.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,7992.857); h_SL2L265->SetBinContent(2,13078.57); h_SL2L265->SetBinContent(3,14821.43); h_SL2L265->SetBinContent(4,17507.14); h_SL2L265->SetBinContent(5,17514.29); h_SL2L265->SetBinContent(6,17650); h_SL2L265->SetBinContent(7,17842.86); h_SL2L265->SetBinContent(8,16350); h_SL2L265->SetBinContent(9,17314.29); h_SL2L265->SetBinContent(10,17735.71); h_SL2L265->SetBinContent(11,17985.71); h_SL2L265->SetBinContent(12,18178.57); h_SL2L265->SetBinContent(13,18371.43); h_SL2L265->SetBinContent(14,17764.29); h_SL2L265->SetBinContent(15,18478.57); h_SL2L265->SetBinContent(16,18000); h_SL2L265->SetBinContent(17,17671.43); h_SL2L265->SetBinContent(18,17471.43); h_SL2L265->SetBinContent(19,17800); h_SL2L265->SetBinContent(20,17642.86); h_SL2L265->SetBinContent(21,17021.43); h_SL2L265->SetBinContent(22,16485.71); h_SL2L265->SetBinContent(23,16085.71); h_SL2L265->SetBinContent(24,15442.86); h_SL2L265->SetBinContent(25,14885.71); h_SL2L265->SetBinContent(26,15050); h_SL2L265->SetBinContent(27,14721.43); h_SL2L265->SetBinContent(28,14414.29); h_SL2L265->SetBinContent(29,14435.71); h_SL2L265->SetBinContent(30,14192.86); h_SL2L265->SetBinContent(31,14321.43); h_SL2L265->SetBinContent(32,14442.86); h_SL2L265->SetBinContent(33,13800); h_SL2L265->SetBinContent(34,14442.86); h_SL2L265->SetBinContent(35,12950); h_SL2L265->SetBinContent(36,12764.29); h_SL2L265->SetBinContent(37,14500); h_SL2L265->SetBinContent(38,15285.71); h_SL2L265->SetBinContent(39,15371.43); h_SL2L265->SetBinContent(40,15000); h_SL2L265->SetBinContent(41,16700); h_SL2L265->SetBinContent(42,15150); h_SL2L265->SetBinContent(43,14778.57); h_SL2L265->SetBinContent(44,14635.71); h_SL2L265->SetBinContent(45,14507.14); h_SL2L265->SetBinContent(46,14264.29); h_SL2L265->SetBinContent(47,13907.14); h_SL2L265->SetBinContent(48,13414.29); h_SL2L265->SetBinContent(49,13914.29); h_SL2L265->SetBinContent(50,13771.43); h_SL2L265->SetBinContent(51,13764.29); h_SL2L265->SetBinContent(52,15014.29); h_SL2L265->SetBinContent(53,15371.43); h_SL2L265->SetBinContent(54,15078.57); h_SL2L265->SetBinContent(55,14521.43); h_SL2L265->SetBinContent(56,12678.57); h_SL2L265->SetBinContent(57,10278.57); h_SL2L265->SetMaximum(68663.21); 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,9778.571); h_SL2L366->SetBinContent(2,12700); h_SL2L366->SetBinContent(3,16392.86); h_SL2L366->SetBinContent(4,17671.43); h_SL2L366->SetBinContent(5,17257.14); h_SL2L366->SetBinContent(6,16971.43); h_SL2L366->SetBinContent(7,16485.71); h_SL2L366->SetBinContent(8,16521.43); h_SL2L366->SetBinContent(9,17314.29); h_SL2L366->SetBinContent(10,17492.86); h_SL2L366->SetBinContent(11,18492.86); h_SL2L366->SetBinContent(12,18092.86); h_SL2L366->SetBinContent(13,18135.71); h_SL2L366->SetBinContent(14,17635.71); h_SL2L366->SetBinContent(15,18057.14); h_SL2L366->SetBinContent(16,17492.86); h_SL2L366->SetBinContent(17,16707.14); h_SL2L366->SetBinContent(18,17628.57); h_SL2L366->SetBinContent(19,17500); h_SL2L366->SetBinContent(20,16135.71); h_SL2L366->SetBinContent(21,16757.14); h_SL2L366->SetBinContent(22,15950); h_SL2L366->SetBinContent(23,15685.71); h_SL2L366->SetBinContent(24,14871.43); h_SL2L366->SetBinContent(25,14642.86); h_SL2L366->SetBinContent(26,14871.43); h_SL2L366->SetBinContent(27,14242.86); h_SL2L366->SetBinContent(28,14664.29); h_SL2L366->SetBinContent(29,13928.57); h_SL2L366->SetBinContent(30,14107.14); h_SL2L366->SetBinContent(31,13992.86); h_SL2L366->SetBinContent(32,14178.57); h_SL2L366->SetBinContent(33,13850); h_SL2L366->SetBinContent(34,13428.57); h_SL2L366->SetBinContent(35,12792.86); h_SL2L366->SetBinContent(36,13014.29); h_SL2L366->SetBinContent(37,15035.71); h_SL2L366->SetBinContent(38,14757.14); h_SL2L366->SetBinContent(39,13985.71); h_SL2L366->SetBinContent(40,14364.29); h_SL2L366->SetBinContent(41,14507.14); h_SL2L366->SetBinContent(42,13928.57); h_SL2L366->SetBinContent(43,14550); h_SL2L366->SetBinContent(44,14085.71); h_SL2L366->SetBinContent(45,14021.43); h_SL2L366->SetBinContent(46,13742.86); h_SL2L366->SetBinContent(47,13542.86); h_SL2L366->SetBinContent(48,13500); h_SL2L366->SetBinContent(49,13650); h_SL2L366->SetBinContent(50,13142.86); h_SL2L366->SetBinContent(51,14414.29); h_SL2L366->SetBinContent(52,14950); h_SL2L366->SetBinContent(53,15342.86); h_SL2L366->SetBinContent(54,14907.14); h_SL2L366->SetBinContent(55,14485.71); h_SL2L366->SetBinContent(56,10028.57); h_SL2L366->SetBinContent(57,9421.429); h_SL2L366->SetMaximum(68663.21); 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,11442.86); h_SL2L467->SetBinContent(3,14585.71); h_SL2L467->SetBinContent(4,17742.86); h_SL2L467->SetBinContent(5,17642.86); h_SL2L467->SetBinContent(6,16500); h_SL2L467->SetBinContent(7,17285.71); h_SL2L467->SetBinContent(8,15500); h_SL2L467->SetBinContent(9,16778.57); h_SL2L467->SetBinContent(10,17164.29); h_SL2L467->SetBinContent(11,17357.14); h_SL2L467->SetBinContent(12,17785.71); h_SL2L467->SetBinContent(13,17278.57); h_SL2L467->SetBinContent(14,17721.43); h_SL2L467->SetBinContent(15,17114.29); h_SL2L467->SetBinContent(16,17907.14); h_SL2L467->SetBinContent(17,16942.86); h_SL2L467->SetBinContent(18,17300); h_SL2L467->SetBinContent(19,17128.57); h_SL2L467->SetBinContent(20,17271.43); h_SL2L467->SetBinContent(21,16664.29); h_SL2L467->SetBinContent(22,16621.43); h_SL2L467->SetBinContent(23,15292.86); h_SL2L467->SetBinContent(24,14992.86); h_SL2L467->SetBinContent(25,14657.14); h_SL2L467->SetBinContent(26,14757.14); h_SL2L467->SetBinContent(27,14514.29); h_SL2L467->SetBinContent(28,14485.71); h_SL2L467->SetBinContent(29,14178.57); h_SL2L467->SetBinContent(30,13735.71); h_SL2L467->SetBinContent(31,14007.14); h_SL2L467->SetBinContent(32,14421.43); h_SL2L467->SetBinContent(33,13778.57); h_SL2L467->SetBinContent(34,13485.71); h_SL2L467->SetBinContent(35,13078.57); h_SL2L467->SetBinContent(36,13107.14); h_SL2L467->SetBinContent(37,13671.43); h_SL2L467->SetBinContent(38,14650); h_SL2L467->SetBinContent(39,14700); h_SL2L467->SetBinContent(40,14557.14); h_SL2L467->SetBinContent(41,13850); h_SL2L467->SetBinContent(42,14307.14); h_SL2L467->SetBinContent(43,13935.71); h_SL2L467->SetBinContent(44,13707.14); h_SL2L467->SetBinContent(45,14150); h_SL2L467->SetBinContent(46,14121.43); h_SL2L467->SetBinContent(47,13857.14); h_SL2L467->SetBinContent(48,13650); h_SL2L467->SetBinContent(49,13592.86); h_SL2L467->SetBinContent(50,13992.86); h_SL2L467->SetBinContent(51,13950); h_SL2L467->SetBinContent(52,14314.29); h_SL2L467->SetBinContent(53,15142.86); h_SL2L467->SetBinContent(54,15064.29); h_SL2L467->SetBinContent(55,15100); h_SL2L467->SetBinContent(56,12550); h_SL2L467->SetBinContent(57,8835.714); h_SL2L467->SetMaximum(68663.21); 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 7437"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }