void RatesPerCell_Removing_noisy_cells_run_7082_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:07:43 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8276.263,67.5,74486.36); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7082",60,0,60); h_SL2L164->SetBinContent(1,205.8164); h_SL2L164->SetBinContent(3,154.3623); h_SL2L164->SetBinContent(4,257.2705); h_SL2L164->SetBinContent(5,51.45409); h_SL2L164->SetBinContent(6,360.1786); h_SL2L164->SetBinContent(7,257.2705); h_SL2L164->SetBinContent(8,51.45409); h_SL2L164->SetBinContent(9,257.2705); h_SL2L164->SetBinContent(10,51.45409); h_SL2L164->SetBinContent(11,205.8164); h_SL2L164->SetBinContent(12,565.9951); h_SL2L164->SetBinContent(13,360.1786); h_SL2L164->SetBinContent(14,565.9951); h_SL2L164->SetBinContent(15,720.3573); h_SL2L164->SetBinContent(16,720.3573); h_SL2L164->SetBinContent(17,668.9032); h_SL2L164->SetBinContent(18,1183.444); h_SL2L164->SetBinContent(19,1131.99); h_SL2L164->SetBinContent(20,1080.536); h_SL2L164->SetBinContent(21,1749.439); h_SL2L164->SetBinContent(22,2727.067); h_SL2L164->SetBinContent(23,2829.975); h_SL2L164->SetBinContent(24,2727.067); h_SL2L164->SetBinContent(25,5608.496); h_SL2L164->SetBinContent(26,15744.95); h_SL2L164->SetBinContent(27,29123.02); h_SL2L164->SetBinContent(28,39568.2); h_SL2L164->SetBinContent(29,50064.83); h_SL2L164->SetBinContent(30,44096.16); h_SL2L164->SetBinContent(31,32261.72); h_SL2L164->SetBinContent(32,29380.29); h_SL2L164->SetBinContent(33,30152.1); h_SL2L164->SetBinContent(34,19809.83); h_SL2L164->SetBinContent(36,4888.139); h_SL2L164->SetBinContent(37,3138.7); h_SL2L164->SetBinContent(38,3035.792); h_SL2L164->SetBinContent(39,2469.796); h_SL2L164->SetBinContent(40,2315.434); h_SL2L164->SetBinContent(41,2212.526); h_SL2L164->SetBinContent(42,2469.796); h_SL2L164->SetBinContent(43,2006.71); h_SL2L164->SetBinContent(44,2006.71); h_SL2L164->SetBinContent(45,2263.98); h_SL2L164->SetBinContent(46,2006.71); h_SL2L164->SetBinContent(47,1749.439); h_SL2L164->SetBinContent(48,1389.26); h_SL2L164->SetBinContent(49,1183.444); h_SL2L164->SetBinContent(50,771.8114); h_SL2L164->SetBinContent(51,926.1737); h_SL2L164->SetBinContent(52,1080.536); h_SL2L164->SetBinContent(53,823.2655); h_SL2L164->SetBinContent(54,977.6278); h_SL2L164->SetBinContent(55,1131.99); h_SL2L164->SetBinContent(56,823.2655); h_SL2L164->SetBinContent(57,720.3573); h_SL2L164->SetMaximum(66210.1); 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,102.9082); h_SL2L265->SetBinContent(2,257.2705); h_SL2L265->SetBinContent(3,154.3623); h_SL2L265->SetBinContent(4,154.3623); h_SL2L265->SetBinContent(5,51.45409); h_SL2L265->SetBinContent(6,51.45409); h_SL2L265->SetBinContent(7,154.3623); h_SL2L265->SetBinContent(8,205.8164); h_SL2L265->SetBinContent(9,205.8164); h_SL2L265->SetBinContent(10,205.8164); h_SL2L265->SetBinContent(11,514.541); h_SL2L265->SetBinContent(12,411.6328); h_SL2L265->SetBinContent(13,308.7245); h_SL2L265->SetBinContent(14,308.7245); h_SL2L265->SetBinContent(15,720.3573); h_SL2L265->SetBinContent(16,874.7196); h_SL2L265->SetBinContent(17,1029.082); h_SL2L265->SetBinContent(18,1183.444); h_SL2L265->SetBinContent(19,1131.99); h_SL2L265->SetBinContent(20,1286.352); h_SL2L265->SetBinContent(21,1440.715); h_SL2L265->SetBinContent(22,1492.169); h_SL2L265->SetBinContent(23,3035.792); h_SL2L265->SetBinContent(24,2932.883); h_SL2L265->SetBinContent(25,3138.7); h_SL2L265->SetBinContent(26,10033.55); h_SL2L265->SetBinContent(27,20890.36); h_SL2L265->SetBinContent(28,38076.03); h_SL2L265->SetBinContent(29,42809.8); h_SL2L265->SetBinContent(30,47029.04); h_SL2L265->SetBinContent(31,37149.86); h_SL2L265->SetBinContent(32,28865.75); h_SL2L265->SetBinContent(33,29689.01); h_SL2L265->SetBinContent(34,29431.74); h_SL2L265->SetBinContent(35,11114.08); h_SL2L265->SetBinContent(36,5351.226); h_SL2L265->SetBinContent(37,4476.506); h_SL2L265->SetBinContent(38,3395.97); h_SL2L265->SetBinContent(39,3756.149); h_SL2L265->SetBinContent(40,2212.526); h_SL2L265->SetBinContent(41,2418.343); h_SL2L265->SetBinContent(42,2572.705); h_SL2L265->SetBinContent(43,2109.618); h_SL2L265->SetBinContent(44,1955.256); h_SL2L265->SetBinContent(45,1852.347); h_SL2L265->SetBinContent(46,1852.347); h_SL2L265->SetBinContent(47,1852.347); h_SL2L265->SetBinContent(48,926.1737); h_SL2L265->SetBinContent(49,1440.715); h_SL2L265->SetBinContent(50,1080.536); h_SL2L265->SetBinContent(51,977.6278); h_SL2L265->SetBinContent(52,720.3573); h_SL2L265->SetBinContent(53,874.7196); h_SL2L265->SetBinContent(54,926.1737); h_SL2L265->SetBinContent(55,1080.536); h_SL2L265->SetBinContent(56,1080.536); h_SL2L265->SetBinContent(57,771.8114); h_SL2L265->SetMaximum(57574.56); 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,51.45409); h_SL2L366->SetBinContent(2,102.9082); h_SL2L366->SetBinContent(3,102.9082); h_SL2L366->SetBinContent(4,102.9082); h_SL2L366->SetBinContent(5,102.9082); h_SL2L366->SetBinContent(6,154.3623); h_SL2L366->SetBinContent(7,463.0869); h_SL2L366->SetBinContent(8,308.7245); h_SL2L366->SetBinContent(9,308.7245); h_SL2L366->SetBinContent(10,205.8164); h_SL2L366->SetBinContent(11,360.1786); h_SL2L366->SetBinContent(12,308.7245); h_SL2L366->SetBinContent(13,308.7245); h_SL2L366->SetBinContent(14,720.3573); h_SL2L366->SetBinContent(15,720.3573); h_SL2L366->SetBinContent(16,1080.536); h_SL2L366->SetBinContent(17,874.7196); h_SL2L366->SetBinContent(18,823.2655); h_SL2L366->SetBinContent(19,1492.169); h_SL2L366->SetBinContent(20,874.7196); h_SL2L366->SetBinContent(21,1955.256); h_SL2L366->SetBinContent(22,3395.97); h_SL2L366->SetBinContent(23,3395.97); h_SL2L366->SetBinContent(24,3087.246); h_SL2L366->SetBinContent(25,6586.124); h_SL2L366->SetBinContent(26,15539.14); h_SL2L366->SetBinContent(27,27939.57); h_SL2L366->SetBinContent(28,40906); h_SL2L366->SetBinContent(29,48366.85); h_SL2L366->SetBinContent(30,41986.54); h_SL2L366->SetBinContent(31,32776.26); h_SL2L366->SetBinContent(32,29689.01); h_SL2L366->SetBinContent(33,30460.82); h_SL2L366->SetBinContent(34,18935.11); h_SL2L366->SetBinContent(35,6740.486); h_SL2L366->SetBinContent(36,5042.501); h_SL2L366->SetBinContent(37,3704.695); h_SL2L366->SetBinContent(38,3087.246); h_SL2L366->SetBinContent(39,2727.067); h_SL2L366->SetBinContent(40,2521.25); h_SL2L366->SetBinContent(41,2315.434); h_SL2L366->SetBinContent(42,2263.98); h_SL2L366->SetBinContent(43,1852.347); h_SL2L366->SetBinContent(44,2109.618); h_SL2L366->SetBinContent(45,1749.439); h_SL2L366->SetBinContent(46,1903.802); h_SL2L366->SetBinContent(47,1646.531); h_SL2L366->SetBinContent(48,1131.99); h_SL2L366->SetBinContent(49,1080.536); h_SL2L366->SetBinContent(50,926.1737); h_SL2L366->SetBinContent(51,926.1737); h_SL2L366->SetBinContent(52,977.6278); h_SL2L366->SetBinContent(53,771.8114); h_SL2L366->SetBinContent(54,668.9032); h_SL2L366->SetBinContent(55,1029.082); h_SL2L366->SetBinContent(56,1286.352); h_SL2L366->SetBinContent(57,874.7196); h_SL2L366->SetMaximum(57574.56); 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,102.9082); h_SL2L467->SetBinContent(3,102.9082); h_SL2L467->SetBinContent(4,51.45409); h_SL2L467->SetBinContent(5,154.3623); h_SL2L467->SetBinContent(6,102.9082); h_SL2L467->SetBinContent(7,205.8164); h_SL2L467->SetBinContent(8,205.8164); h_SL2L467->SetBinContent(9,360.1786); h_SL2L467->SetBinContent(10,154.3623); h_SL2L467->SetBinContent(11,463.0869); h_SL2L467->SetBinContent(12,463.0869); h_SL2L467->SetBinContent(13,463.0869); h_SL2L467->SetBinContent(14,463.0869); h_SL2L467->SetBinContent(15,668.9032); h_SL2L467->SetBinContent(16,617.4491); h_SL2L467->SetBinContent(17,1131.99); h_SL2L467->SetBinContent(18,565.9951); h_SL2L467->SetBinContent(19,1492.169); h_SL2L467->SetBinContent(20,1286.352); h_SL2L467->SetBinContent(21,1234.898); h_SL2L467->SetBinContent(22,2263.98); h_SL2L467->SetBinContent(23,3601.787); h_SL2L467->SetBinContent(24,2675.613); h_SL2L467->SetBinContent(25,3653.241); h_SL2L467->SetBinContent(26,10805.36); h_SL2L467->SetBinContent(27,22742.71); h_SL2L467->SetBinContent(28,35554.78); h_SL2L467->SetBinContent(29,42346.72); h_SL2L467->SetBinContent(30,48006.67); h_SL2L467->SetBinContent(31,35040.24); h_SL2L467->SetBinContent(32,31284.09); h_SL2L467->SetBinContent(33,29123.02); h_SL2L467->SetBinContent(34,28093.94); h_SL2L467->SetBinContent(35,10496.63); h_SL2L467->SetBinContent(36,4991.047); h_SL2L467->SetBinContent(37,4425.052); h_SL2L467->SetBinContent(38,3241.608); h_SL2L467->SetBinContent(39,3498.878); h_SL2L467->SetBinContent(40,1955.256); h_SL2L467->SetBinContent(41,2109.618); h_SL2L467->SetBinContent(42,2161.072); h_SL2L467->SetBinContent(43,1852.347); h_SL2L467->SetBinContent(44,2109.618); h_SL2L467->SetBinContent(45,1646.531); h_SL2L467->SetBinContent(46,1440.715); h_SL2L467->SetBinContent(47,1852.347); h_SL2L467->SetBinContent(48,874.7196); h_SL2L467->SetBinContent(49,1492.169); h_SL2L467->SetBinContent(50,1029.082); h_SL2L467->SetBinContent(51,926.1737); h_SL2L467->SetBinContent(52,977.6278); h_SL2L467->SetBinContent(53,874.7196); h_SL2L467->SetBinContent(54,874.7196); h_SL2L467->SetBinContent(55,1080.536); h_SL2L467->SetBinContent(56,1234.898); h_SL2L467->SetBinContent(57,668.9032); h_SL2L467->SetMaximum(57574.56); 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 7082"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }