void RatesPerCell_Removing_noisy_cells_run_7473_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:15:50 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9076.807,67.5,81691.26); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7473",60,0,60); h_SL2L164->SetBinContent(1,4728.571); h_SL2L164->SetBinContent(2,6485.714); h_SL2L164->SetBinContent(3,9700); h_SL2L164->SetBinContent(4,11328.57); h_SL2L164->SetBinContent(5,12557.14); h_SL2L164->SetBinContent(6,14471.43); h_SL2L164->SetBinContent(7,20414.29); h_SL2L164->SetBinContent(8,27357.14); h_SL2L164->SetBinContent(9,37642.86); h_SL2L164->SetBinContent(10,42621.43); h_SL2L164->SetBinContent(11,46250); h_SL2L164->SetBinContent(12,47378.57); h_SL2L164->SetBinContent(13,46757.14); h_SL2L164->SetBinContent(14,46785.71); h_SL2L164->SetBinContent(15,47128.57); h_SL2L164->SetBinContent(16,45121.43); h_SL2L164->SetBinContent(17,45728.57); h_SL2L164->SetBinContent(18,45957.14); h_SL2L164->SetBinContent(19,44507.14); h_SL2L164->SetBinContent(20,43057.14); h_SL2L164->SetBinContent(21,41007.14); h_SL2L164->SetBinContent(22,38785.71); h_SL2L164->SetBinContent(23,36785.71); h_SL2L164->SetBinContent(24,34500); h_SL2L164->SetBinContent(25,33421.43); h_SL2L164->SetBinContent(26,32050); h_SL2L164->SetBinContent(27,32171.43); h_SL2L164->SetBinContent(28,31871.43); h_SL2L164->SetBinContent(29,32400); h_SL2L164->SetBinContent(30,30871.43); h_SL2L164->SetBinContent(31,30278.57); h_SL2L164->SetBinContent(32,31835.71); h_SL2L164->SetBinContent(33,32285.71); h_SL2L164->SetBinContent(34,32757.14); h_SL2L164->SetBinContent(36,31985.71); h_SL2L164->SetBinContent(37,33550); h_SL2L164->SetBinContent(38,34792.86); h_SL2L164->SetBinContent(39,33814.29); h_SL2L164->SetBinContent(40,45864.29); h_SL2L164->SetBinContent(41,54907.14); h_SL2L164->SetBinContent(42,35685.71); h_SL2L164->SetBinContent(43,35357.14); h_SL2L164->SetBinContent(44,35378.57); h_SL2L164->SetBinContent(45,31914.29); h_SL2L164->SetBinContent(46,30257.14); h_SL2L164->SetBinContent(47,29792.86); h_SL2L164->SetBinContent(48,28450); h_SL2L164->SetBinContent(49,29450); h_SL2L164->SetBinContent(50,29014.29); h_SL2L164->SetBinContent(51,30621.43); h_SL2L164->SetBinContent(52,34892.86); h_SL2L164->SetBinContent(53,38392.86); h_SL2L164->SetBinContent(54,40142.86); h_SL2L164->SetBinContent(55,37650); h_SL2L164->SetBinContent(56,32278.57); h_SL2L164->SetBinContent(57,24642.86); h_SL2L164->SetMaximum(72614.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,3921.428); h_SL2L265->SetBinContent(2,5578.571); h_SL2L265->SetBinContent(3,7778.571); h_SL2L265->SetBinContent(4,10735.71); h_SL2L265->SetBinContent(5,11900); h_SL2L265->SetBinContent(6,13735.71); h_SL2L265->SetBinContent(7,16885.71); h_SL2L265->SetBinContent(8,20507.14); h_SL2L265->SetBinContent(9,31385.71); h_SL2L265->SetBinContent(10,38042.86); h_SL2L265->SetBinContent(11,42728.57); h_SL2L265->SetBinContent(12,45242.86); h_SL2L265->SetBinContent(13,45007.14); h_SL2L265->SetBinContent(14,45014.29); h_SL2L265->SetBinContent(15,45492.86); h_SL2L265->SetBinContent(16,45500); h_SL2L265->SetBinContent(17,44428.57); h_SL2L265->SetBinContent(18,44078.57); h_SL2L265->SetBinContent(19,44378.57); h_SL2L265->SetBinContent(20,42342.86); h_SL2L265->SetBinContent(21,42757.14); h_SL2L265->SetBinContent(22,39457.14); h_SL2L265->SetBinContent(23,36342.86); h_SL2L265->SetBinContent(24,34900); h_SL2L265->SetBinContent(25,32771.43); h_SL2L265->SetBinContent(26,31414.29); h_SL2L265->SetBinContent(27,31042.86); h_SL2L265->SetBinContent(28,30107.14); h_SL2L265->SetBinContent(29,31064.29); h_SL2L265->SetBinContent(30,31214.29); h_SL2L265->SetBinContent(31,28535.71); h_SL2L265->SetBinContent(32,30892.86); h_SL2L265->SetBinContent(33,30764.29); h_SL2L265->SetBinContent(34,31771.43); h_SL2L265->SetBinContent(35,30300); h_SL2L265->SetBinContent(36,29692.86); h_SL2L265->SetBinContent(37,31957.14); h_SL2L265->SetBinContent(38,32378.57); h_SL2L265->SetBinContent(39,33328.57); h_SL2L265->SetBinContent(40,32385.71); h_SL2L265->SetBinContent(41,32500); h_SL2L265->SetBinContent(42,32171.43); h_SL2L265->SetBinContent(43,32278.57); h_SL2L265->SetBinContent(44,31778.57); h_SL2L265->SetBinContent(45,30628.57); h_SL2L265->SetBinContent(46,29664.29); h_SL2L265->SetBinContent(47,28792.86); h_SL2L265->SetBinContent(48,28271.43); h_SL2L265->SetBinContent(49,27935.71); h_SL2L265->SetBinContent(50,28507.14); h_SL2L265->SetBinContent(51,27300); h_SL2L265->SetBinContent(52,32864.29); h_SL2L265->SetBinContent(53,34978.57); h_SL2L265->SetBinContent(54,37742.86); h_SL2L265->SetBinContent(55,38300); h_SL2L265->SetBinContent(56,33650); h_SL2L265->SetBinContent(57,30092.86); h_SL2L265->SetMaximum(63143.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,4535.714); h_SL2L366->SetBinContent(2,6228.571); h_SL2L366->SetBinContent(3,9500); h_SL2L366->SetBinContent(4,11285.71); h_SL2L366->SetBinContent(5,12964.29); h_SL2L366->SetBinContent(6,13900); h_SL2L366->SetBinContent(7,20428.57); h_SL2L366->SetBinContent(8,26492.86); h_SL2L366->SetBinContent(9,35285.71); h_SL2L366->SetBinContent(10,39257.14); h_SL2L366->SetBinContent(11,43057.14); h_SL2L366->SetBinContent(12,45528.57); h_SL2L366->SetBinContent(13,44378.57); h_SL2L366->SetBinContent(14,45100); h_SL2L366->SetBinContent(15,43971.43); h_SL2L366->SetBinContent(16,43028.57); h_SL2L366->SetBinContent(17,42785.71); h_SL2L366->SetBinContent(18,44500); h_SL2L366->SetBinContent(19,41928.57); h_SL2L366->SetBinContent(20,40592.86); h_SL2L366->SetBinContent(21,39221.43); h_SL2L366->SetBinContent(22,36800); h_SL2L366->SetBinContent(23,35050); h_SL2L366->SetBinContent(24,32642.86); h_SL2L366->SetBinContent(25,32264.29); h_SL2L366->SetBinContent(26,30264.29); h_SL2L366->SetBinContent(27,31400); h_SL2L366->SetBinContent(28,29514.29); h_SL2L366->SetBinContent(29,30214.29); h_SL2L366->SetBinContent(30,29278.57); h_SL2L366->SetBinContent(31,28607.14); h_SL2L366->SetBinContent(32,30178.57); h_SL2L366->SetBinContent(33,30600); h_SL2L366->SetBinContent(34,31200); h_SL2L366->SetBinContent(35,28671.43); h_SL2L366->SetBinContent(36,30028.57); h_SL2L366->SetBinContent(37,31442.86); h_SL2L366->SetBinContent(38,32250); h_SL2L366->SetBinContent(39,32250); h_SL2L366->SetBinContent(40,31378.57); h_SL2L366->SetBinContent(41,31685.71); h_SL2L366->SetBinContent(42,30914.29); h_SL2L366->SetBinContent(43,31221.43); h_SL2L366->SetBinContent(44,30392.86); h_SL2L366->SetBinContent(45,29257.14); h_SL2L366->SetBinContent(46,28864.29); h_SL2L366->SetBinContent(47,27514.29); h_SL2L366->SetBinContent(48,26642.86); h_SL2L366->SetBinContent(49,27778.57); h_SL2L366->SetBinContent(50,27378.57); h_SL2L366->SetBinContent(51,29357.14); h_SL2L366->SetBinContent(52,32685.71); h_SL2L366->SetBinContent(53,36171.43); h_SL2L366->SetBinContent(54,37521.43); h_SL2L366->SetBinContent(55,36607.14); h_SL2L366->SetBinContent(56,29507.14); h_SL2L366->SetBinContent(57,28228.57); h_SL2L366->SetMaximum(63143.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,5557.143); h_SL2L467->SetBinContent(3,7921.429); h_SL2L467->SetBinContent(4,9914.285); h_SL2L467->SetBinContent(5,10428.57); h_SL2L467->SetBinContent(6,12428.57); h_SL2L467->SetBinContent(7,14792.86); h_SL2L467->SetBinContent(8,20528.57); h_SL2L467->SetBinContent(9,29600); h_SL2L467->SetBinContent(10,35385.71); h_SL2L467->SetBinContent(11,40107.14); h_SL2L467->SetBinContent(12,43171.43); h_SL2L467->SetBinContent(13,44450); h_SL2L467->SetBinContent(14,43135.71); h_SL2L467->SetBinContent(15,44492.86); h_SL2L467->SetBinContent(16,42285.71); h_SL2L467->SetBinContent(17,41721.43); h_SL2L467->SetBinContent(18,42285.71); h_SL2L467->SetBinContent(19,41671.43); h_SL2L467->SetBinContent(20,39542.86); h_SL2L467->SetBinContent(21,38800); h_SL2L467->SetBinContent(22,37471.43); h_SL2L467->SetBinContent(23,34778.57); h_SL2L467->SetBinContent(24,34014.29); h_SL2L467->SetBinContent(25,31735.71); h_SL2L467->SetBinContent(26,30150); h_SL2L467->SetBinContent(27,30028.57); h_SL2L467->SetBinContent(28,29150); h_SL2L467->SetBinContent(29,29071.43); h_SL2L467->SetBinContent(30,29221.43); h_SL2L467->SetBinContent(31,27778.57); h_SL2L467->SetBinContent(32,28457.14); h_SL2L467->SetBinContent(33,29985.71); h_SL2L467->SetBinContent(34,29392.86); h_SL2L467->SetBinContent(35,29428.57); h_SL2L467->SetBinContent(36,29778.57); h_SL2L467->SetBinContent(37,30292.86); h_SL2L467->SetBinContent(38,30214.29); h_SL2L467->SetBinContent(39,31028.57); h_SL2L467->SetBinContent(40,30671.43); h_SL2L467->SetBinContent(41,30371.43); h_SL2L467->SetBinContent(42,30042.86); h_SL2L467->SetBinContent(43,29907.14); h_SL2L467->SetBinContent(44,29750); h_SL2L467->SetBinContent(45,29214.29); h_SL2L467->SetBinContent(46,28614.29); h_SL2L467->SetBinContent(47,28421.43); h_SL2L467->SetBinContent(48,26685.71); h_SL2L467->SetBinContent(49,26642.86); h_SL2L467->SetBinContent(50,27964.29); h_SL2L467->SetBinContent(51,26492.86); h_SL2L467->SetBinContent(52,30414.29); h_SL2L467->SetBinContent(53,32492.86); h_SL2L467->SetBinContent(54,36328.57); h_SL2L467->SetBinContent(55,36235.71); h_SL2L467->SetBinContent(56,33192.86); h_SL2L467->SetBinContent(57,26928.57); h_SL2L467->SetMaximum(63143.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 7473"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }