void RatesPerCell_Removing_noisy_cells_run_7286_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:19:34 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-15970.34,67.5,143733); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7286",60,0,60); h_SL2L164->SetBinContent(1,61321.43); h_SL2L164->SetBinContent(2,75678.57); h_SL2L164->SetBinContent(3,91589.29); h_SL2L164->SetBinContent(4,95107.15); h_SL2L164->SetBinContent(5,84839.29); h_SL2L164->SetBinContent(6,77285.72); h_SL2L164->SetBinContent(7,83392.86); h_SL2L164->SetBinContent(8,78267.86); h_SL2L164->SetBinContent(9,85910.72); h_SL2L164->SetBinContent(10,90571.43); h_SL2L164->SetBinContent(11,95839.29); h_SL2L164->SetBinContent(12,95017.86); h_SL2L164->SetBinContent(13,96607.15); h_SL2L164->SetBinContent(14,96053.58); h_SL2L164->SetBinContent(15,94160.72); h_SL2L164->SetBinContent(16,93464.29); h_SL2L164->SetBinContent(17,89303.57); h_SL2L164->SetBinContent(18,83928.57); h_SL2L164->SetBinContent(19,81928.57); h_SL2L164->SetBinContent(20,66946.43); h_SL2L164->SetBinContent(21,53071.43); h_SL2L164->SetBinContent(22,49625); h_SL2L164->SetBinContent(23,47339.29); h_SL2L164->SetBinContent(24,41946.43); h_SL2L164->SetBinContent(25,38428.57); h_SL2L164->SetBinContent(26,35928.57); h_SL2L164->SetBinContent(27,32696.43); h_SL2L164->SetBinContent(28,30517.86); h_SL2L164->SetBinContent(29,31285.71); h_SL2L164->SetBinContent(30,29928.57); h_SL2L164->SetBinContent(31,29750); h_SL2L164->SetBinContent(32,29839.29); h_SL2L164->SetBinContent(33,29750); h_SL2L164->SetBinContent(34,28964.29); h_SL2L164->SetBinContent(36,31714.29); h_SL2L164->SetBinContent(37,40946.43); h_SL2L164->SetBinContent(38,37000); h_SL2L164->SetBinContent(39,38571.43); h_SL2L164->SetBinContent(40,84821.43); h_SL2L164->SetBinContent(41,89785.72); h_SL2L164->SetBinContent(42,41875); h_SL2L164->SetBinContent(43,40589.29); h_SL2L164->SetBinContent(44,40071.43); h_SL2L164->SetBinContent(45,33517.86); h_SL2L164->SetBinContent(46,29410.71); h_SL2L164->SetBinContent(47,31446.43); h_SL2L164->SetBinContent(48,30232.14); h_SL2L164->SetBinContent(49,30053.57); h_SL2L164->SetBinContent(50,30500); h_SL2L164->SetBinContent(51,32500); h_SL2L164->SetBinContent(52,32410.71); h_SL2L164->SetBinContent(53,37857.14); h_SL2L164->SetBinContent(54,42339.29); h_SL2L164->SetBinContent(55,44178.57); h_SL2L164->SetBinContent(56,39464.29); h_SL2L164->SetBinContent(57,31589.29); h_SL2L164->SetMaximum(127762.7); 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,51392.86); h_SL2L265->SetBinContent(2,73500); h_SL2L265->SetBinContent(3,79375); h_SL2L265->SetBinContent(4,90892.86); h_SL2L265->SetBinContent(5,83589.29); h_SL2L265->SetBinContent(6,80303.57); h_SL2L265->SetBinContent(7,85857.15); h_SL2L265->SetBinContent(8,72392.86); h_SL2L265->SetBinContent(9,82160.72); h_SL2L265->SetBinContent(10,86375); h_SL2L265->SetBinContent(11,89125); h_SL2L265->SetBinContent(12,91625); h_SL2L265->SetBinContent(13,91964.29); h_SL2L265->SetBinContent(14,91178.57); h_SL2L265->SetBinContent(15,92767.86); h_SL2L265->SetBinContent(16,90785.72); h_SL2L265->SetBinContent(17,88821.43); h_SL2L265->SetBinContent(18,88767.86); h_SL2L265->SetBinContent(19,79946.43); h_SL2L265->SetBinContent(20,71785.72); h_SL2L265->SetBinContent(21,55660.71); h_SL2L265->SetBinContent(22,48928.57); h_SL2L265->SetBinContent(23,46803.57); h_SL2L265->SetBinContent(24,42464.29); h_SL2L265->SetBinContent(25,40232.14); h_SL2L265->SetBinContent(26,34339.29); h_SL2L265->SetBinContent(27,34035.71); h_SL2L265->SetBinContent(28,32267.86); h_SL2L265->SetBinContent(29,27142.86); h_SL2L265->SetBinContent(30,27232.14); h_SL2L265->SetBinContent(31,29107.14); h_SL2L265->SetBinContent(32,28642.86); h_SL2L265->SetBinContent(33,27839.29); h_SL2L265->SetBinContent(34,28142.86); h_SL2L265->SetBinContent(35,27125); h_SL2L265->SetBinContent(36,29303.57); h_SL2L265->SetBinContent(37,29714.29); h_SL2L265->SetBinContent(38,30482.14); h_SL2L265->SetBinContent(39,32392.86); h_SL2L265->SetBinContent(40,34875); h_SL2L265->SetBinContent(41,33857.14); h_SL2L265->SetBinContent(42,32750); h_SL2L265->SetBinContent(43,31410.71); h_SL2L265->SetBinContent(44,32875); h_SL2L265->SetBinContent(45,30946.43); h_SL2L265->SetBinContent(46,29285.71); h_SL2L265->SetBinContent(47,29839.29); h_SL2L265->SetBinContent(48,29964.29); h_SL2L265->SetBinContent(49,28642.86); h_SL2L265->SetBinContent(50,29875); h_SL2L265->SetBinContent(51,28750); h_SL2L265->SetBinContent(52,32089.29); h_SL2L265->SetBinContent(53,34821.43); h_SL2L265->SetBinContent(54,38964.29); h_SL2L265->SetBinContent(55,44535.71); h_SL2L265->SetBinContent(56,40482.14); h_SL2L265->SetBinContent(57,37178.57); h_SL2L265->SetMaximum(111098.2); 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,59089.29); h_SL2L366->SetBinContent(2,71196.43); h_SL2L366->SetBinContent(3,87964.29); h_SL2L366->SetBinContent(4,89767.86); h_SL2L366->SetBinContent(5,78482.15); h_SL2L366->SetBinContent(6,74946.43); h_SL2L366->SetBinContent(7,76660.72); h_SL2L366->SetBinContent(8,72982.15); h_SL2L366->SetBinContent(9,83178.57); h_SL2L366->SetBinContent(10,87232.15); h_SL2L366->SetBinContent(11,88232.15); h_SL2L366->SetBinContent(12,87250); h_SL2L366->SetBinContent(13,91017.86); h_SL2L366->SetBinContent(14,91339.29); h_SL2L366->SetBinContent(15,87750); h_SL2L366->SetBinContent(16,86482.15); h_SL2L366->SetBinContent(17,82642.86); h_SL2L366->SetBinContent(18,80500); h_SL2L366->SetBinContent(19,74500); h_SL2L366->SetBinContent(20,60000); h_SL2L366->SetBinContent(21,49696.43); h_SL2L366->SetBinContent(22,47946.43); h_SL2L366->SetBinContent(23,42785.71); h_SL2L366->SetBinContent(24,39464.29); h_SL2L366->SetBinContent(25,36446.43); h_SL2L366->SetBinContent(26,33482.14); h_SL2L366->SetBinContent(27,32178.57); h_SL2L366->SetBinContent(28,29267.86); h_SL2L366->SetBinContent(29,28410.71); h_SL2L366->SetBinContent(30,28178.57); h_SL2L366->SetBinContent(31,27750); h_SL2L366->SetBinContent(32,27553.57); h_SL2L366->SetBinContent(33,27267.86); h_SL2L366->SetBinContent(34,28732.14); h_SL2L366->SetBinContent(35,28375); h_SL2L366->SetBinContent(36,29678.57); h_SL2L366->SetBinContent(37,30732.14); h_SL2L366->SetBinContent(38,31607.14); h_SL2L366->SetBinContent(39,30714.29); h_SL2L366->SetBinContent(40,31946.43); h_SL2L366->SetBinContent(41,30410.71); h_SL2L366->SetBinContent(42,29446.43); h_SL2L366->SetBinContent(43,29285.71); h_SL2L366->SetBinContent(44,30321.43); h_SL2L366->SetBinContent(45,30160.71); h_SL2L366->SetBinContent(46,29750); h_SL2L366->SetBinContent(47,29857.14); h_SL2L366->SetBinContent(48,28839.29); h_SL2L366->SetBinContent(49,28303.57); h_SL2L366->SetBinContent(50,28267.86); h_SL2L366->SetBinContent(51,28910.71); h_SL2L366->SetBinContent(52,30428.57); h_SL2L366->SetBinContent(53,34392.86); h_SL2L366->SetBinContent(54,40678.57); h_SL2L366->SetBinContent(55,44089.29); h_SL2L366->SetBinContent(56,36875); h_SL2L366->SetBinContent(57,34000); h_SL2L366->SetMaximum(111098.2); 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,68107.15); h_SL2L467->SetBinContent(3,76410.72); h_SL2L467->SetBinContent(4,83642.86); h_SL2L467->SetBinContent(5,79142.86); h_SL2L467->SetBinContent(6,72910.72); h_SL2L467->SetBinContent(7,76857.15); h_SL2L467->SetBinContent(8,67071.43); h_SL2L467->SetBinContent(9,75339.29); h_SL2L467->SetBinContent(10,80589.29); h_SL2L467->SetBinContent(11,84339.29); h_SL2L467->SetBinContent(12,86017.86); h_SL2L467->SetBinContent(13,88178.57); h_SL2L467->SetBinContent(14,87250); h_SL2L467->SetBinContent(15,87357.15); h_SL2L467->SetBinContent(16,82678.57); h_SL2L467->SetBinContent(17,80964.29); h_SL2L467->SetBinContent(18,80000); h_SL2L467->SetBinContent(19,76035.72); h_SL2L467->SetBinContent(20,67589.29); h_SL2L467->SetBinContent(21,52071.43); h_SL2L467->SetBinContent(22,46767.86); h_SL2L467->SetBinContent(23,46125); h_SL2L467->SetBinContent(24,39607.14); h_SL2L467->SetBinContent(25,38428.57); h_SL2L467->SetBinContent(26,35339.29); h_SL2L467->SetBinContent(27,32196.43); h_SL2L467->SetBinContent(28,29892.86); h_SL2L467->SetBinContent(29,27696.43); h_SL2L467->SetBinContent(30,28571.43); h_SL2L467->SetBinContent(31,27107.14); h_SL2L467->SetBinContent(32,28267.86); h_SL2L467->SetBinContent(33,26732.14); h_SL2L467->SetBinContent(34,27285.71); h_SL2L467->SetBinContent(35,27053.57); h_SL2L467->SetBinContent(36,27178.57); h_SL2L467->SetBinContent(37,28821.43); h_SL2L467->SetBinContent(38,29303.57); h_SL2L467->SetBinContent(39,30732.14); h_SL2L467->SetBinContent(40,30017.86); h_SL2L467->SetBinContent(41,29250); h_SL2L467->SetBinContent(42,29821.43); h_SL2L467->SetBinContent(43,28589.29); h_SL2L467->SetBinContent(44,27446.43); h_SL2L467->SetBinContent(45,30589.29); h_SL2L467->SetBinContent(46,27839.29); h_SL2L467->SetBinContent(47,29535.71); h_SL2L467->SetBinContent(48,28857.14); h_SL2L467->SetBinContent(49,27892.86); h_SL2L467->SetBinContent(50,27714.29); h_SL2L467->SetBinContent(51,28339.29); h_SL2L467->SetBinContent(52,28446.43); h_SL2L467->SetBinContent(53,32482.14); h_SL2L467->SetBinContent(54,37107.14); h_SL2L467->SetBinContent(55,41821.43); h_SL2L467->SetBinContent(56,38053.57); h_SL2L467->SetBinContent(57,34071.43); h_SL2L467->SetMaximum(111098.2); 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 7286"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }