void RatesPerCell_Removing_noisy_cells_run_7831_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 20:21:54 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13925.21,67.5,125326.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7831",60,0,60); h_SL2L164->SetBinContent(1,10042.86); h_SL2L164->SetBinContent(2,12871.43); h_SL2L164->SetBinContent(3,15042.86); h_SL2L164->SetBinContent(4,17214.29); h_SL2L164->SetBinContent(5,17285.71); h_SL2L164->SetBinContent(6,17135.71); h_SL2L164->SetBinContent(7,15864.29); h_SL2L164->SetBinContent(8,15771.43); h_SL2L164->SetBinContent(9,17171.43); h_SL2L164->SetBinContent(10,17178.57); h_SL2L164->SetBinContent(11,17621.43); h_SL2L164->SetBinContent(12,17542.86); h_SL2L164->SetBinContent(13,17271.43); h_SL2L164->SetBinContent(14,17050); h_SL2L164->SetBinContent(15,17100); h_SL2L164->SetBinContent(16,16992.86); h_SL2L164->SetBinContent(17,15935.71); h_SL2L164->SetBinContent(18,16464.29); h_SL2L164->SetBinContent(19,17392.86); h_SL2L164->SetBinContent(20,15921.43); h_SL2L164->SetBinContent(21,16907.14); h_SL2L164->SetBinContent(22,15435.71); h_SL2L164->SetBinContent(23,14700); h_SL2L164->SetBinContent(24,14592.86); h_SL2L164->SetBinContent(25,14400); h_SL2L164->SetBinContent(26,14578.57); h_SL2L164->SetBinContent(27,13550); h_SL2L164->SetBinContent(28,14214.29); h_SL2L164->SetBinContent(29,14042.86); h_SL2L164->SetBinContent(30,13757.14); h_SL2L164->SetBinContent(31,13728.57); h_SL2L164->SetBinContent(32,14307.14); h_SL2L164->SetBinContent(33,13921.43); h_SL2L164->SetBinContent(34,13978.57); h_SL2L164->SetBinContent(36,13528.57); h_SL2L164->SetBinContent(37,18671.43); h_SL2L164->SetBinContent(38,15078.57); h_SL2L164->SetBinContent(39,17021.43); h_SL2L164->SetBinContent(40,47600); h_SL2L164->SetBinContent(41,84235.71); h_SL2L164->SetBinContent(42,20428.57); h_SL2L164->SetBinContent(43,20785.71); h_SL2L164->SetBinContent(44,19392.86); h_SL2L164->SetBinContent(45,14092.86); h_SL2L164->SetBinContent(46,13714.29); h_SL2L164->SetBinContent(47,13242.86); h_SL2L164->SetBinContent(48,13757.14); h_SL2L164->SetBinContent(49,13157.14); h_SL2L164->SetBinContent(50,13514.29); h_SL2L164->SetBinContent(51,13478.57); h_SL2L164->SetBinContent(52,14278.57); h_SL2L164->SetBinContent(53,14121.43); h_SL2L164->SetBinContent(54,14185.71); h_SL2L164->SetBinContent(55,12892.86); h_SL2L164->SetBinContent(56,10914.29); h_SL2L164->SetBinContent(57,7042.857); h_SL2L164->SetMaximum(111401.6); 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,7578.571); h_SL2L265->SetBinContent(2,11607.14); h_SL2L265->SetBinContent(3,13650); h_SL2L265->SetBinContent(4,16542.86); h_SL2L265->SetBinContent(5,17085.71); h_SL2L265->SetBinContent(6,17421.43); h_SL2L265->SetBinContent(7,15921.43); h_SL2L265->SetBinContent(8,15721.43); h_SL2L265->SetBinContent(9,16178.57); h_SL2L265->SetBinContent(10,16707.14); h_SL2L265->SetBinContent(11,16807.14); h_SL2L265->SetBinContent(12,17542.86); h_SL2L265->SetBinContent(13,17378.57); h_SL2L265->SetBinContent(14,17485.71); h_SL2L265->SetBinContent(15,17607.14); h_SL2L265->SetBinContent(16,16835.71); h_SL2L265->SetBinContent(17,16214.29); h_SL2L265->SetBinContent(18,16471.43); h_SL2L265->SetBinContent(19,16771.43); h_SL2L265->SetBinContent(20,15507.14); h_SL2L265->SetBinContent(21,15714.29); h_SL2L265->SetBinContent(22,15814.29); h_SL2L265->SetBinContent(23,14200); h_SL2L265->SetBinContent(24,14342.86); h_SL2L265->SetBinContent(25,13135.71); h_SL2L265->SetBinContent(26,13764.29); h_SL2L265->SetBinContent(27,13850); h_SL2L265->SetBinContent(28,13821.43); h_SL2L265->SetBinContent(29,14035.71); h_SL2L265->SetBinContent(30,13407.14); h_SL2L265->SetBinContent(31,13200); h_SL2L265->SetBinContent(32,13507.14); h_SL2L265->SetBinContent(33,13578.57); h_SL2L265->SetBinContent(34,14078.57); h_SL2L265->SetBinContent(35,13050); h_SL2L265->SetBinContent(36,12314.29); h_SL2L265->SetBinContent(37,14185.71); h_SL2L265->SetBinContent(38,14042.86); h_SL2L265->SetBinContent(39,14800); h_SL2L265->SetBinContent(40,15764.29); h_SL2L265->SetBinContent(41,13271.43); h_SL2L265->SetBinContent(42,13171.43); h_SL2L265->SetBinContent(43,14100); h_SL2L265->SetBinContent(44,14485.71); h_SL2L265->SetBinContent(45,13871.43); h_SL2L265->SetBinContent(46,13485.71); h_SL2L265->SetBinContent(47,12928.57); h_SL2L265->SetBinContent(48,13378.57); h_SL2L265->SetBinContent(49,12928.57); h_SL2L265->SetBinContent(50,13407.14); h_SL2L265->SetBinContent(51,13050); h_SL2L265->SetBinContent(52,13478.57); h_SL2L265->SetBinContent(53,14464.29); h_SL2L265->SetBinContent(54,14514.29); h_SL2L265->SetBinContent(55,13985.71); h_SL2L265->SetBinContent(56,11650); h_SL2L265->SetBinContent(57,9521.429); h_SL2L265->SetMaximum(96871.07); 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,8514.285); h_SL2L366->SetBinContent(2,12257.14); h_SL2L366->SetBinContent(3,15421.43); h_SL2L366->SetBinContent(4,16507.14); h_SL2L366->SetBinContent(5,16392.86); h_SL2L366->SetBinContent(6,15971.43); h_SL2L366->SetBinContent(7,15250); h_SL2L366->SetBinContent(8,15228.57); h_SL2L366->SetBinContent(9,16735.71); h_SL2L366->SetBinContent(10,16821.43); h_SL2L366->SetBinContent(11,17357.14); h_SL2L366->SetBinContent(12,16478.57); h_SL2L366->SetBinContent(13,16214.29); h_SL2L366->SetBinContent(14,16700); h_SL2L366->SetBinContent(15,16564.29); h_SL2L366->SetBinContent(16,16250); h_SL2L366->SetBinContent(17,15807.14); h_SL2L366->SetBinContent(18,16185.71); h_SL2L366->SetBinContent(19,15592.86); h_SL2L366->SetBinContent(20,15357.14); h_SL2L366->SetBinContent(21,15221.43); h_SL2L366->SetBinContent(22,14842.86); h_SL2L366->SetBinContent(23,13992.86); h_SL2L366->SetBinContent(24,13885.71); h_SL2L366->SetBinContent(25,14235.71); h_SL2L366->SetBinContent(26,13292.86); h_SL2L366->SetBinContent(27,13607.14); h_SL2L366->SetBinContent(28,13650); h_SL2L366->SetBinContent(29,13221.43); h_SL2L366->SetBinContent(30,13321.43); h_SL2L366->SetBinContent(31,12964.29); h_SL2L366->SetBinContent(32,13385.71); h_SL2L366->SetBinContent(33,12878.57); h_SL2L366->SetBinContent(34,12878.57); h_SL2L366->SetBinContent(35,12628.57); h_SL2L366->SetBinContent(36,12585.71); h_SL2L366->SetBinContent(37,13335.71); h_SL2L366->SetBinContent(38,13464.29); h_SL2L366->SetBinContent(39,13271.43); h_SL2L366->SetBinContent(40,14964.29); h_SL2L366->SetBinContent(41,12414.29); h_SL2L366->SetBinContent(42,13464.29); h_SL2L366->SetBinContent(43,13935.71); h_SL2L366->SetBinContent(44,13257.14); h_SL2L366->SetBinContent(45,13450); h_SL2L366->SetBinContent(46,13207.14); h_SL2L366->SetBinContent(47,13242.86); h_SL2L366->SetBinContent(48,12842.86); h_SL2L366->SetBinContent(49,13007.14); h_SL2L366->SetBinContent(50,12692.86); h_SL2L366->SetBinContent(51,12871.43); h_SL2L366->SetBinContent(52,13721.43); h_SL2L366->SetBinContent(53,13964.29); h_SL2L366->SetBinContent(54,14450); h_SL2L366->SetBinContent(55,13514.29); h_SL2L366->SetBinContent(56,10378.57); h_SL2L366->SetBinContent(57,8607.143); h_SL2L366->SetMaximum(96871.07); 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,9978.571); h_SL2L467->SetBinContent(3,14064.29); h_SL2L467->SetBinContent(4,16657.14); h_SL2L467->SetBinContent(5,16464.29); h_SL2L467->SetBinContent(6,16292.86); h_SL2L467->SetBinContent(7,16085.71); h_SL2L467->SetBinContent(8,14685.71); h_SL2L467->SetBinContent(9,15707.14); h_SL2L467->SetBinContent(10,16214.29); h_SL2L467->SetBinContent(11,16850); h_SL2L467->SetBinContent(12,16600); h_SL2L467->SetBinContent(13,16650); h_SL2L467->SetBinContent(14,16464.29); h_SL2L467->SetBinContent(15,16178.57); h_SL2L467->SetBinContent(16,16192.86); h_SL2L467->SetBinContent(17,16257.14); h_SL2L467->SetBinContent(18,16057.14); h_SL2L467->SetBinContent(19,16271.43); h_SL2L467->SetBinContent(20,15357.14); h_SL2L467->SetBinContent(21,14928.57); h_SL2L467->SetBinContent(22,14635.71); h_SL2L467->SetBinContent(23,14864.29); h_SL2L467->SetBinContent(24,13978.57); h_SL2L467->SetBinContent(25,13678.57); h_SL2L467->SetBinContent(26,13528.57); h_SL2L467->SetBinContent(27,12964.29); h_SL2L467->SetBinContent(28,13100); h_SL2L467->SetBinContent(29,13300); h_SL2L467->SetBinContent(30,13485.71); h_SL2L467->SetBinContent(31,12850); h_SL2L467->SetBinContent(32,12878.57); h_SL2L467->SetBinContent(33,13207.14); h_SL2L467->SetBinContent(34,12935.71); h_SL2L467->SetBinContent(35,13064.29); h_SL2L467->SetBinContent(36,13021.43); h_SL2L467->SetBinContent(37,12771.43); h_SL2L467->SetBinContent(38,13742.86); h_SL2L467->SetBinContent(39,12914.29); h_SL2L467->SetBinContent(40,12585.71); h_SL2L467->SetBinContent(41,12078.57); h_SL2L467->SetBinContent(42,12714.29); h_SL2L467->SetBinContent(43,13578.57); h_SL2L467->SetBinContent(44,13750); h_SL2L467->SetBinContent(45,13250); h_SL2L467->SetBinContent(46,13242.86); h_SL2L467->SetBinContent(47,13128.57); h_SL2L467->SetBinContent(48,12542.86); h_SL2L467->SetBinContent(49,13057.14); h_SL2L467->SetBinContent(50,12850); h_SL2L467->SetBinContent(51,12471.43); h_SL2L467->SetBinContent(52,13907.14); h_SL2L467->SetBinContent(53,13771.43); h_SL2L467->SetBinContent(54,14650); h_SL2L467->SetBinContent(55,14178.57); h_SL2L467->SetBinContent(56,11907.14); h_SL2L467->SetBinContent(57,8471.429); h_SL2L467->SetMaximum(96871.07); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 7831"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }