void RatesPerCell_Removing_noisy_cells_run_7564_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:12:32 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-14375,67.5,129375); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7564",60,0,60); h_SL2L164->SetBinContent(1,51471.43); h_SL2L164->SetBinContent(2,64942.86); h_SL2L164->SetBinContent(3,79135.71); h_SL2L164->SetBinContent(4,80621.43); h_SL2L164->SetBinContent(5,80207.14); h_SL2L164->SetBinContent(6,75214.28); h_SL2L164->SetBinContent(7,70935.71); h_SL2L164->SetBinContent(8,66278.57); h_SL2L164->SetBinContent(9,71657.14); h_SL2L164->SetBinContent(10,75535.71); h_SL2L164->SetBinContent(11,78550); h_SL2L164->SetBinContent(12,77328.57); h_SL2L164->SetBinContent(13,77678.57); h_SL2L164->SetBinContent(14,77007.14); h_SL2L164->SetBinContent(15,76507.14); h_SL2L164->SetBinContent(16,76107.14); h_SL2L164->SetBinContent(17,73364.28); h_SL2L164->SetBinContent(18,72964.28); h_SL2L164->SetBinContent(19,71042.86); h_SL2L164->SetBinContent(20,69735.71); h_SL2L164->SetBinContent(21,65364.29); h_SL2L164->SetBinContent(22,62757.14); h_SL2L164->SetBinContent(23,59878.57); h_SL2L164->SetBinContent(24,55507.14); h_SL2L164->SetBinContent(25,53521.43); h_SL2L164->SetBinContent(26,52464.29); h_SL2L164->SetBinContent(27,50857.14); h_SL2L164->SetBinContent(28,50292.86); h_SL2L164->SetBinContent(29,51078.57); h_SL2L164->SetBinContent(30,49607.14); h_SL2L164->SetBinContent(31,49014.29); h_SL2L164->SetBinContent(32,51171.43); h_SL2L164->SetBinContent(33,52378.57); h_SL2L164->SetBinContent(34,52307.14); h_SL2L164->SetBinContent(36,51700); h_SL2L164->SetBinContent(37,58478.57); h_SL2L164->SetBinContent(38,56321.43); h_SL2L164->SetBinContent(39,57578.57); h_SL2L164->SetBinContent(40,69464.28); h_SL2L164->SetBinContent(41,86957.14); h_SL2L164->SetBinContent(42,61850); h_SL2L164->SetBinContent(43,61121.43); h_SL2L164->SetBinContent(44,58592.86); h_SL2L164->SetBinContent(45,49800); h_SL2L164->SetBinContent(46,47307.14); h_SL2L164->SetBinContent(47,46150); h_SL2L164->SetBinContent(48,45671.43); h_SL2L164->SetBinContent(49,47100); h_SL2L164->SetBinContent(50,44950); h_SL2L164->SetBinContent(51,48135.71); h_SL2L164->SetBinContent(52,54871.43); h_SL2L164->SetBinContent(53,59921.43); h_SL2L164->SetBinContent(54,62378.57); h_SL2L164->SetBinContent(55,62600); h_SL2L164->SetBinContent(56,51657.14); h_SL2L164->SetBinContent(57,43171.43); h_SL2L164->SetMaximum(115000); 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,41828.57); h_SL2L265->SetBinContent(2,60228.57); h_SL2L265->SetBinContent(3,67757.14); h_SL2L265->SetBinContent(4,78064.28); h_SL2L265->SetBinContent(5,76942.86); h_SL2L265->SetBinContent(6,75435.71); h_SL2L265->SetBinContent(7,71800); h_SL2L265->SetBinContent(8,62328.57); h_SL2L265->SetBinContent(9,68714.28); h_SL2L265->SetBinContent(10,71621.43); h_SL2L265->SetBinContent(11,74107.14); h_SL2L265->SetBinContent(12,75407.14); h_SL2L265->SetBinContent(13,73842.86); h_SL2L265->SetBinContent(14,75285.71); h_SL2L265->SetBinContent(15,74014.28); h_SL2L265->SetBinContent(16,73314.28); h_SL2L265->SetBinContent(17,70400); h_SL2L265->SetBinContent(18,69814.28); h_SL2L265->SetBinContent(19,68100); h_SL2L265->SetBinContent(20,68221.43); h_SL2L265->SetBinContent(21,65707.14); h_SL2L265->SetBinContent(22,62314.29); h_SL2L265->SetBinContent(23,58642.86); h_SL2L265->SetBinContent(24,56100); h_SL2L265->SetBinContent(25,53400); h_SL2L265->SetBinContent(26,50750); h_SL2L265->SetBinContent(27,49685.71); h_SL2L265->SetBinContent(28,49442.86); h_SL2L265->SetBinContent(29,49350); h_SL2L265->SetBinContent(30,49157.14); h_SL2L265->SetBinContent(31,45857.14); h_SL2L265->SetBinContent(32,48792.86); h_SL2L265->SetBinContent(33,50500); h_SL2L265->SetBinContent(34,50714.29); h_SL2L265->SetBinContent(35,48057.14); h_SL2L265->SetBinContent(36,49407.14); h_SL2L265->SetBinContent(37,52257.14); h_SL2L265->SetBinContent(38,52300); h_SL2L265->SetBinContent(39,53385.71); h_SL2L265->SetBinContent(40,52878.57); h_SL2L265->SetBinContent(41,51214.29); h_SL2L265->SetBinContent(42,52514.29); h_SL2L265->SetBinContent(43,51235.71); h_SL2L265->SetBinContent(44,51321.43); h_SL2L265->SetBinContent(45,48478.57); h_SL2L265->SetBinContent(46,46642.86); h_SL2L265->SetBinContent(47,45585.71); h_SL2L265->SetBinContent(48,42750); h_SL2L265->SetBinContent(49,43771.43); h_SL2L265->SetBinContent(50,45021.43); h_SL2L265->SetBinContent(51,43028.57); h_SL2L265->SetBinContent(52,49542.86); h_SL2L265->SetBinContent(53,53107.14); h_SL2L265->SetBinContent(54,59514.29); h_SL2L265->SetBinContent(55,61235.71); h_SL2L265->SetBinContent(56,53792.86); h_SL2L265->SetBinContent(57,49914.29); h_SL2L265->SetMaximum(100000.7); 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,48064.29); h_SL2L366->SetBinContent(2,59714.29); h_SL2L366->SetBinContent(3,73064.28); h_SL2L366->SetBinContent(4,76007.14); h_SL2L366->SetBinContent(5,73600); h_SL2L366->SetBinContent(6,71142.86); h_SL2L366->SetBinContent(7,63900); h_SL2L366->SetBinContent(8,62907.14); h_SL2L366->SetBinContent(9,68000); h_SL2L366->SetBinContent(10,70007.14); h_SL2L366->SetBinContent(11,71378.57); h_SL2L366->SetBinContent(12,73464.28); h_SL2L366->SetBinContent(13,71292.86); h_SL2L366->SetBinContent(14,71978.57); h_SL2L366->SetBinContent(15,71900); h_SL2L366->SetBinContent(16,67564.28); h_SL2L366->SetBinContent(17,66971.43); h_SL2L366->SetBinContent(18,67428.57); h_SL2L366->SetBinContent(19,65642.86); h_SL2L366->SetBinContent(20,64578.57); h_SL2L366->SetBinContent(21,62428.57); h_SL2L366->SetBinContent(22,58021.43); h_SL2L366->SetBinContent(23,55150); h_SL2L366->SetBinContent(24,52221.43); h_SL2L366->SetBinContent(25,49935.71); h_SL2L366->SetBinContent(26,48078.57); h_SL2L366->SetBinContent(27,48707.14); h_SL2L366->SetBinContent(28,47464.29); h_SL2L366->SetBinContent(29,47000); h_SL2L366->SetBinContent(30,45735.71); h_SL2L366->SetBinContent(31,44600); h_SL2L366->SetBinContent(32,48121.43); h_SL2L366->SetBinContent(33,49535.71); h_SL2L366->SetBinContent(34,48907.14); h_SL2L366->SetBinContent(35,47821.43); h_SL2L366->SetBinContent(36,48592.86); h_SL2L366->SetBinContent(37,50742.86); h_SL2L366->SetBinContent(38,50335.71); h_SL2L366->SetBinContent(39,50371.43); h_SL2L366->SetBinContent(40,50385.71); h_SL2L366->SetBinContent(41,49814.29); h_SL2L366->SetBinContent(42,50207.14); h_SL2L366->SetBinContent(43,49050); h_SL2L366->SetBinContent(44,47092.86); h_SL2L366->SetBinContent(45,46621.43); h_SL2L366->SetBinContent(46,45171.43); h_SL2L366->SetBinContent(47,43450); h_SL2L366->SetBinContent(48,41014.29); h_SL2L366->SetBinContent(49,43435.71); h_SL2L366->SetBinContent(50,42971.43); h_SL2L366->SetBinContent(51,43935.71); h_SL2L366->SetBinContent(52,49707.14); h_SL2L366->SetBinContent(53,54935.71); h_SL2L366->SetBinContent(54,60064.29); h_SL2L366->SetBinContent(55,59442.86); h_SL2L366->SetBinContent(56,48521.43); h_SL2L366->SetBinContent(57,46314.29); h_SL2L366->SetMaximum(100000.7); 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,55821.43); h_SL2L467->SetBinContent(3,64928.57); h_SL2L467->SetBinContent(4,71500); h_SL2L467->SetBinContent(5,72500); h_SL2L467->SetBinContent(6,70314.28); h_SL2L467->SetBinContent(7,64521.43); h_SL2L467->SetBinContent(8,59485.71); h_SL2L467->SetBinContent(9,64521.43); h_SL2L467->SetBinContent(10,67050); h_SL2L467->SetBinContent(11,68700); h_SL2L467->SetBinContent(12,68721.43); h_SL2L467->SetBinContent(13,69657.14); h_SL2L467->SetBinContent(14,68057.14); h_SL2L467->SetBinContent(15,69978.57); h_SL2L467->SetBinContent(16,67707.14); h_SL2L467->SetBinContent(17,65278.57); h_SL2L467->SetBinContent(18,66371.43); h_SL2L467->SetBinContent(19,66000); h_SL2L467->SetBinContent(20,63428.57); h_SL2L467->SetBinContent(21,60771.43); h_SL2L467->SetBinContent(22,58142.86); h_SL2L467->SetBinContent(23,55957.14); h_SL2L467->SetBinContent(24,51407.14); h_SL2L467->SetBinContent(25,49771.43); h_SL2L467->SetBinContent(26,48078.57); h_SL2L467->SetBinContent(27,46157.14); h_SL2L467->SetBinContent(28,47271.43); h_SL2L467->SetBinContent(29,46114.29); h_SL2L467->SetBinContent(30,46614.29); h_SL2L467->SetBinContent(31,43250); h_SL2L467->SetBinContent(32,45428.57); h_SL2L467->SetBinContent(33,45978.57); h_SL2L467->SetBinContent(34,47192.86); h_SL2L467->SetBinContent(35,46721.43); h_SL2L467->SetBinContent(36,46900); h_SL2L467->SetBinContent(37,48185.71); h_SL2L467->SetBinContent(38,48907.14); h_SL2L467->SetBinContent(39,48635.71); h_SL2L467->SetBinContent(40,48521.43); h_SL2L467->SetBinContent(41,46528.57); h_SL2L467->SetBinContent(42,48578.57); h_SL2L467->SetBinContent(43,48150); h_SL2L467->SetBinContent(44,46835.71); h_SL2L467->SetBinContent(45,45578.57); h_SL2L467->SetBinContent(46,43278.57); h_SL2L467->SetBinContent(47,42835.71); h_SL2L467->SetBinContent(48,41114.29); h_SL2L467->SetBinContent(49,40914.29); h_SL2L467->SetBinContent(50,41992.86); h_SL2L467->SetBinContent(51,40728.57); h_SL2L467->SetBinContent(52,46335.71); h_SL2L467->SetBinContent(53,50142.86); h_SL2L467->SetBinContent(54,55514.29); h_SL2L467->SetBinContent(55,56585.71); h_SL2L467->SetBinContent(56,51528.57); h_SL2L467->SetBinContent(57,44621.43); h_SL2L467->SetMaximum(100000.7); 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 7564"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }