void RatesPerCell_Removing_noisy_cells_run_7432_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:34:23 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11963.88,67.5,107674.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 7432",60,0,60); h_SL2L164->SetBinContent(1,32014.29); h_SL2L164->SetBinContent(2,38864.29); h_SL2L164->SetBinContent(3,48800); h_SL2L164->SetBinContent(4,48550); h_SL2L164->SetBinContent(5,49385.71); h_SL2L164->SetBinContent(6,46414.29); h_SL2L164->SetBinContent(7,43485.71); h_SL2L164->SetBinContent(8,41235.71); h_SL2L164->SetBinContent(9,45600); h_SL2L164->SetBinContent(10,46007.14); h_SL2L164->SetBinContent(11,48728.57); h_SL2L164->SetBinContent(12,47764.29); h_SL2L164->SetBinContent(13,47914.29); h_SL2L164->SetBinContent(14,46985.71); h_SL2L164->SetBinContent(15,46121.43); h_SL2L164->SetBinContent(16,46328.57); h_SL2L164->SetBinContent(17,45892.86); h_SL2L164->SetBinContent(18,44114.29); h_SL2L164->SetBinContent(19,43935.71); h_SL2L164->SetBinContent(20,42292.86); h_SL2L164->SetBinContent(21,41200); h_SL2L164->SetBinContent(22,38028.57); h_SL2L164->SetBinContent(23,35885.71); h_SL2L164->SetBinContent(24,33692.86); h_SL2L164->SetBinContent(25,32864.29); h_SL2L164->SetBinContent(26,29921.43); h_SL2L164->SetBinContent(27,30471.43); h_SL2L164->SetBinContent(28,31185.71); h_SL2L164->SetBinContent(29,30914.29); h_SL2L164->SetBinContent(30,28957.14); h_SL2L164->SetBinContent(31,28721.43); h_SL2L164->SetBinContent(32,30864.29); h_SL2L164->SetBinContent(33,31678.57); h_SL2L164->SetBinContent(34,32042.86); h_SL2L164->SetBinContent(36,32821.43); h_SL2L164->SetBinContent(37,34442.86); h_SL2L164->SetBinContent(38,34085.71); h_SL2L164->SetBinContent(39,33721.43); h_SL2L164->SetBinContent(40,64292.86); h_SL2L164->SetBinContent(41,72371.43); h_SL2L164->SetBinContent(42,34792.86); h_SL2L164->SetBinContent(43,35292.86); h_SL2L164->SetBinContent(44,34664.29); h_SL2L164->SetBinContent(45,30278.57); h_SL2L164->SetBinContent(46,29021.43); h_SL2L164->SetBinContent(47,28528.57); h_SL2L164->SetBinContent(48,27542.86); h_SL2L164->SetBinContent(49,28957.14); h_SL2L164->SetBinContent(50,27457.14); h_SL2L164->SetBinContent(51,30271.43); h_SL2L164->SetBinContent(52,33028.57); h_SL2L164->SetBinContent(53,37164.29); h_SL2L164->SetBinContent(54,39228.57); h_SL2L164->SetBinContent(55,37778.57); h_SL2L164->SetBinContent(56,33164.29); h_SL2L164->SetBinContent(57,25678.57); h_SL2L164->SetMaximum(95711.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,24514.29); h_SL2L265->SetBinContent(2,36392.86); h_SL2L265->SetBinContent(3,40735.71); h_SL2L265->SetBinContent(4,47042.86); h_SL2L265->SetBinContent(5,47171.43); h_SL2L265->SetBinContent(6,46178.57); h_SL2L265->SetBinContent(7,43528.57); h_SL2L265->SetBinContent(8,39964.29); h_SL2L265->SetBinContent(9,42828.57); h_SL2L265->SetBinContent(10,44221.43); h_SL2L265->SetBinContent(11,45921.43); h_SL2L265->SetBinContent(12,46850); h_SL2L265->SetBinContent(13,46292.86); h_SL2L265->SetBinContent(14,46385.71); h_SL2L265->SetBinContent(15,45600); h_SL2L265->SetBinContent(16,43950); h_SL2L265->SetBinContent(17,43464.29); h_SL2L265->SetBinContent(18,43664.29); h_SL2L265->SetBinContent(19,43250); h_SL2L265->SetBinContent(20,40571.43); h_SL2L265->SetBinContent(21,39442.86); h_SL2L265->SetBinContent(22,38435.71); h_SL2L265->SetBinContent(23,35650); h_SL2L265->SetBinContent(24,32457.14); h_SL2L265->SetBinContent(25,32300); h_SL2L265->SetBinContent(26,29992.86); h_SL2L265->SetBinContent(27,29514.29); h_SL2L265->SetBinContent(28,30835.71); h_SL2L265->SetBinContent(29,29435.71); h_SL2L265->SetBinContent(30,30221.43); h_SL2L265->SetBinContent(31,26721.43); h_SL2L265->SetBinContent(32,29485.71); h_SL2L265->SetBinContent(33,29450); h_SL2L265->SetBinContent(34,31285.71); h_SL2L265->SetBinContent(35,29250); h_SL2L265->SetBinContent(36,29428.57); h_SL2L265->SetBinContent(37,32028.57); h_SL2L265->SetBinContent(38,32421.43); h_SL2L265->SetBinContent(39,31250); h_SL2L265->SetBinContent(40,33278.57); h_SL2L265->SetBinContent(41,32335.71); h_SL2L265->SetBinContent(42,30900); h_SL2L265->SetBinContent(43,31221.43); h_SL2L265->SetBinContent(44,30107.14); h_SL2L265->SetBinContent(45,29871.43); h_SL2L265->SetBinContent(46,28564.29); h_SL2L265->SetBinContent(47,27871.43); h_SL2L265->SetBinContent(48,27892.86); h_SL2L265->SetBinContent(49,26850); h_SL2L265->SetBinContent(50,27857.14); h_SL2L265->SetBinContent(51,26835.71); h_SL2L265->SetBinContent(52,31500); h_SL2L265->SetBinContent(53,35178.57); h_SL2L265->SetBinContent(54,38092.86); h_SL2L265->SetBinContent(55,38892.86); h_SL2L265->SetBinContent(56,33442.86); h_SL2L265->SetBinContent(57,30557.14); h_SL2L265->SetMaximum(83227.14); 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,28471.43); h_SL2L366->SetBinContent(2,36857.14); h_SL2L366->SetBinContent(3,45278.57); h_SL2L366->SetBinContent(4,46328.57); h_SL2L366->SetBinContent(5,45442.86); h_SL2L366->SetBinContent(6,42364.29); h_SL2L366->SetBinContent(7,40307.14); h_SL2L366->SetBinContent(8,39507.14); h_SL2L366->SetBinContent(9,43028.57); h_SL2L366->SetBinContent(10,44642.86); h_SL2L366->SetBinContent(11,44385.71); h_SL2L366->SetBinContent(12,44071.43); h_SL2L366->SetBinContent(13,44650); h_SL2L366->SetBinContent(14,45021.43); h_SL2L366->SetBinContent(15,44542.86); h_SL2L366->SetBinContent(16,42957.14); h_SL2L366->SetBinContent(17,42264.29); h_SL2L366->SetBinContent(18,41657.14); h_SL2L366->SetBinContent(19,41342.86); h_SL2L366->SetBinContent(20,38921.43); h_SL2L366->SetBinContent(21,38350); h_SL2L366->SetBinContent(22,36142.86); h_SL2L366->SetBinContent(23,32785.71); h_SL2L366->SetBinContent(24,31392.86); h_SL2L366->SetBinContent(25,30042.86); h_SL2L366->SetBinContent(26,28800); h_SL2L366->SetBinContent(27,29307.14); h_SL2L366->SetBinContent(28,29100); h_SL2L366->SetBinContent(29,29185.71); h_SL2L366->SetBinContent(30,27050); h_SL2L366->SetBinContent(31,27621.43); h_SL2L366->SetBinContent(32,28978.57); h_SL2L366->SetBinContent(33,29000); h_SL2L366->SetBinContent(34,29385.71); h_SL2L366->SetBinContent(35,28707.14); h_SL2L366->SetBinContent(36,29221.43); h_SL2L366->SetBinContent(37,31185.71); h_SL2L366->SetBinContent(38,31000); h_SL2L366->SetBinContent(39,31850); h_SL2L366->SetBinContent(40,31921.43); h_SL2L366->SetBinContent(41,30342.86); h_SL2L366->SetBinContent(42,30928.57); h_SL2L366->SetBinContent(43,30107.14); h_SL2L366->SetBinContent(44,29850); h_SL2L366->SetBinContent(45,28664.29); h_SL2L366->SetBinContent(46,27785.71); h_SL2L366->SetBinContent(47,27121.43); h_SL2L366->SetBinContent(48,25628.57); h_SL2L366->SetBinContent(49,26300); h_SL2L366->SetBinContent(50,25735.71); h_SL2L366->SetBinContent(51,27750); h_SL2L366->SetBinContent(52,31135.71); h_SL2L366->SetBinContent(53,35978.57); h_SL2L366->SetBinContent(54,37950); h_SL2L366->SetBinContent(55,37871.43); h_SL2L366->SetBinContent(56,30142.86); h_SL2L366->SetBinContent(57,28092.86); h_SL2L366->SetMaximum(83227.14); 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,34214.29); h_SL2L467->SetBinContent(3,40785.71); h_SL2L467->SetBinContent(4,44814.29); h_SL2L467->SetBinContent(5,45971.43); h_SL2L467->SetBinContent(6,42778.57); h_SL2L467->SetBinContent(7,41414.29); h_SL2L467->SetBinContent(8,36014.29); h_SL2L467->SetBinContent(9,42314.29); h_SL2L467->SetBinContent(10,42371.43); h_SL2L467->SetBinContent(11,43492.86); h_SL2L467->SetBinContent(12,42978.57); h_SL2L467->SetBinContent(13,43614.29); h_SL2L467->SetBinContent(14,43900); h_SL2L467->SetBinContent(15,42585.71); h_SL2L467->SetBinContent(16,41714.29); h_SL2L467->SetBinContent(17,40885.71); h_SL2L467->SetBinContent(18,41021.43); h_SL2L467->SetBinContent(19,39671.43); h_SL2L467->SetBinContent(20,39728.57); h_SL2L467->SetBinContent(21,36778.57); h_SL2L467->SetBinContent(22,35307.14); h_SL2L467->SetBinContent(23,32828.57); h_SL2L467->SetBinContent(24,31585.71); h_SL2L467->SetBinContent(25,29057.14); h_SL2L467->SetBinContent(26,28292.86); h_SL2L467->SetBinContent(27,27857.14); h_SL2L467->SetBinContent(28,27900); h_SL2L467->SetBinContent(29,28207.14); h_SL2L467->SetBinContent(30,27971.43); h_SL2L467->SetBinContent(31,26250); h_SL2L467->SetBinContent(32,27957.14); h_SL2L467->SetBinContent(33,27857.14); h_SL2L467->SetBinContent(34,28692.86); h_SL2L467->SetBinContent(35,28192.86); h_SL2L467->SetBinContent(36,29135.71); h_SL2L467->SetBinContent(37,29564.29); h_SL2L467->SetBinContent(38,30078.57); h_SL2L467->SetBinContent(39,30157.14); h_SL2L467->SetBinContent(40,30214.29); h_SL2L467->SetBinContent(41,29642.86); h_SL2L467->SetBinContent(42,30428.57); h_SL2L467->SetBinContent(43,29164.29); h_SL2L467->SetBinContent(44,29307.14); h_SL2L467->SetBinContent(45,28221.43); h_SL2L467->SetBinContent(46,27442.86); h_SL2L467->SetBinContent(47,26635.71); h_SL2L467->SetBinContent(48,25285.71); h_SL2L467->SetBinContent(49,26178.57); h_SL2L467->SetBinContent(50,26457.14); h_SL2L467->SetBinContent(51,25464.29); h_SL2L467->SetBinContent(52,29171.43); h_SL2L467->SetBinContent(53,32807.14); h_SL2L467->SetBinContent(54,35185.71); h_SL2L467->SetBinContent(55,37157.14); h_SL2L467->SetBinContent(56,31921.43); h_SL2L467->SetBinContent(57,27550); h_SL2L467->SetMaximum(83227.14); 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 7432"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }