void RatesPerCell_Removing_noisy_cells_run_7385_SL2() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 21:52:35 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-23613.1,67.5,212517.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7385",60,0,60); h_SL2L164->SetBinContent(1,91332.14); h_SL2L164->SetBinContent(2,116046.4); h_SL2L164->SetBinContent(3,138771.4); h_SL2L164->SetBinContent(4,142839.3); h_SL2L164->SetBinContent(5,140285.7); h_SL2L164->SetBinContent(6,131471.4); h_SL2L164->SetBinContent(7,119435.7); h_SL2L164->SetBinContent(8,114389.3); h_SL2L164->SetBinContent(9,124067.9); h_SL2L164->SetBinContent(10,127978.6); h_SL2L164->SetBinContent(11,128789.3); h_SL2L164->SetBinContent(12,124032.1); h_SL2L164->SetBinContent(13,111710.7); h_SL2L164->SetBinContent(14,109410.7); h_SL2L164->SetBinContent(15,106675); h_SL2L164->SetBinContent(16,107878.6); h_SL2L164->SetBinContent(17,98232.14); h_SL2L164->SetBinContent(18,88275); h_SL2L164->SetBinContent(19,87414.28); h_SL2L164->SetBinContent(20,90982.14); h_SL2L164->SetBinContent(21,92328.57); h_SL2L164->SetBinContent(22,89092.86); h_SL2L164->SetBinContent(23,84975); h_SL2L164->SetBinContent(24,79442.86); h_SL2L164->SetBinContent(25,74182.14); h_SL2L164->SetBinContent(26,72575); h_SL2L164->SetBinContent(27,70717.86); h_SL2L164->SetBinContent(28,69007.14); h_SL2L164->SetBinContent(29,69717.86); h_SL2L164->SetBinContent(30,66296.43); h_SL2L164->SetBinContent(31,65525); h_SL2L164->SetBinContent(32,69275); h_SL2L164->SetBinContent(33,72164.28); h_SL2L164->SetBinContent(34,74178.57); h_SL2L164->SetBinContent(35,3.571429); h_SL2L164->SetBinContent(36,76153.57); h_SL2L164->SetBinContent(37,87467.86); h_SL2L164->SetBinContent(38,87721.43); h_SL2L164->SetBinContent(39,89721.43); h_SL2L164->SetBinContent(40,104014.3); h_SL2L164->SetBinContent(41,125646.4); h_SL2L164->SetBinContent(42,92350); h_SL2L164->SetBinContent(43,93585.71); h_SL2L164->SetBinContent(44,88867.86); h_SL2L164->SetBinContent(45,80007.14); h_SL2L164->SetBinContent(46,76596.43); h_SL2L164->SetBinContent(47,75642.86); h_SL2L164->SetBinContent(48,75385.71); h_SL2L164->SetBinContent(49,78432.14); h_SL2L164->SetBinContent(50,74496.43); h_SL2L164->SetBinContent(51,82425); h_SL2L164->SetBinContent(52,95514.28); h_SL2L164->SetBinContent(53,105178.6); h_SL2L164->SetBinContent(54,110271.4); h_SL2L164->SetBinContent(55,110650); h_SL2L164->SetBinContent(56,93321.43); h_SL2L164->SetBinContent(57,78114.28); h_SL2L164->SetMaximum(188904.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,74075); h_SL2L265->SetBinContent(2,111867.9); h_SL2L265->SetBinContent(3,120375); h_SL2L265->SetBinContent(4,138482.1); h_SL2L265->SetBinContent(5,137900); h_SL2L265->SetBinContent(6,130896.4); h_SL2L265->SetBinContent(7,123825); h_SL2L265->SetBinContent(8,106364.3); h_SL2L265->SetBinContent(9,118307.1); h_SL2L265->SetBinContent(10,120850); h_SL2L265->SetBinContent(11,124935.7); h_SL2L265->SetBinContent(12,123021.4); h_SL2L265->SetBinContent(13,111175); h_SL2L265->SetBinContent(14,107653.6); h_SL2L265->SetBinContent(15,102039.3); h_SL2L265->SetBinContent(16,105642.9); h_SL2L265->SetBinContent(17,98125); h_SL2L265->SetBinContent(18,89228.57); h_SL2L265->SetBinContent(19,83671.43); h_SL2L265->SetBinContent(20,86278.57); h_SL2L265->SetBinContent(21,90625); h_SL2L265->SetBinContent(22,87235.71); h_SL2L265->SetBinContent(23,83557.14); h_SL2L265->SetBinContent(24,78728.57); h_SL2L265->SetBinContent(25,75739.28); h_SL2L265->SetBinContent(26,71335.71); h_SL2L265->SetBinContent(27,68785.71); h_SL2L265->SetBinContent(28,68207.14); h_SL2L265->SetBinContent(29,67128.57); h_SL2L265->SetBinContent(30,65971.43); h_SL2L265->SetBinContent(31,62182.14); h_SL2L265->SetBinContent(32,65667.86); h_SL2L265->SetBinContent(33,67589.28); h_SL2L265->SetBinContent(34,70489.28); h_SL2L265->SetBinContent(35,70017.86); h_SL2L265->SetBinContent(36,72507.14); h_SL2L265->SetBinContent(37,77339.28); h_SL2L265->SetBinContent(38,82067.86); h_SL2L265->SetBinContent(39,84221.43); h_SL2L265->SetBinContent(40,84778.57); h_SL2L265->SetBinContent(41,83885.71); h_SL2L265->SetBinContent(42,84389.28); h_SL2L265->SetBinContent(43,83103.57); h_SL2L265->SetBinContent(44,81785.71); h_SL2L265->SetBinContent(45,79335.71); h_SL2L265->SetBinContent(46,74857.14); h_SL2L265->SetBinContent(47,74196.43); h_SL2L265->SetBinContent(48,72242.86); h_SL2L265->SetBinContent(49,73400); h_SL2L265->SetBinContent(50,75392.86); h_SL2L265->SetBinContent(51,71021.43); h_SL2L265->SetBinContent(52,85353.57); h_SL2L265->SetBinContent(53,95067.86); h_SL2L265->SetBinContent(54,104392.9); h_SL2L265->SetBinContent(55,109267.9); h_SL2L265->SetBinContent(56,96860.71); h_SL2L265->SetBinContent(57,90035.71); h_SL2L265->SetMaximum(164265.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,87246.43); h_SL2L366->SetBinContent(2,107528.6); h_SL2L366->SetBinContent(3,130167.9); h_SL2L366->SetBinContent(4,131317.9); h_SL2L366->SetBinContent(5,130300); h_SL2L366->SetBinContent(6,121025); h_SL2L366->SetBinContent(7,110442.9); h_SL2L366->SetBinContent(8,108360.7); h_SL2L366->SetBinContent(9,116142.9); h_SL2L366->SetBinContent(10,119803.6); h_SL2L366->SetBinContent(11,119775); h_SL2L366->SetBinContent(12,115950); h_SL2L366->SetBinContent(13,103410.7); h_SL2L366->SetBinContent(14,102032.1); h_SL2L366->SetBinContent(15,100410.7); h_SL2L366->SetBinContent(16,98657.14); h_SL2L366->SetBinContent(17,89553.57); h_SL2L366->SetBinContent(18,82957.14); h_SL2L366->SetBinContent(19,82517.86); h_SL2L366->SetBinContent(20,84732.14); h_SL2L366->SetBinContent(21,85275); h_SL2L366->SetBinContent(22,82857.14); h_SL2L366->SetBinContent(23,77835.71); h_SL2L366->SetBinContent(24,74189.28); h_SL2L366->SetBinContent(25,70017.86); h_SL2L366->SetBinContent(26,67364.28); h_SL2L366->SetBinContent(27,66882.14); h_SL2L366->SetBinContent(28,64750); h_SL2L366->SetBinContent(29,64517.86); h_SL2L366->SetBinContent(30,61771.43); h_SL2L366->SetBinContent(31,61396.43); h_SL2L366->SetBinContent(32,64282.14); h_SL2L366->SetBinContent(33,66964.28); h_SL2L366->SetBinContent(34,69432.14); h_SL2L366->SetBinContent(35,69564.28); h_SL2L366->SetBinContent(36,72514.28); h_SL2L366->SetBinContent(37,76207.14); h_SL2L366->SetBinContent(38,80035.71); h_SL2L366->SetBinContent(39,80971.43); h_SL2L366->SetBinContent(40,81907.14); h_SL2L366->SetBinContent(41,80175); h_SL2L366->SetBinContent(42,80000); h_SL2L366->SetBinContent(43,79846.43); h_SL2L366->SetBinContent(44,76846.43); h_SL2L366->SetBinContent(45,73689.28); h_SL2L366->SetBinContent(46,71003.57); h_SL2L366->SetBinContent(47,70946.43); h_SL2L366->SetBinContent(48,70128.57); h_SL2L366->SetBinContent(49,72192.86); h_SL2L366->SetBinContent(50,70825); h_SL2L366->SetBinContent(51,74625); h_SL2L366->SetBinContent(52,85907.14); h_SL2L366->SetBinContent(53,95960.71); h_SL2L366->SetBinContent(54,103303.6); h_SL2L366->SetBinContent(55,103632.1); h_SL2L366->SetBinContent(56,86439.28); h_SL2L366->SetBinContent(57,82400); h_SL2L366->SetMaximum(164265.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,103275); h_SL2L467->SetBinContent(3,113603.6); h_SL2L467->SetBinContent(4,127364.3); h_SL2L467->SetBinContent(5,129021.4); h_SL2L467->SetBinContent(6,119871.4); h_SL2L467->SetBinContent(7,115585.7); h_SL2L467->SetBinContent(8,98950); h_SL2L467->SetBinContent(9,110932.1); h_SL2L467->SetBinContent(10,114335.7); h_SL2L467->SetBinContent(11,117078.6); h_SL2L467->SetBinContent(12,115103.6); h_SL2L467->SetBinContent(13,104303.6); h_SL2L467->SetBinContent(14,100367.9); h_SL2L467->SetBinContent(15,96946.43); h_SL2L467->SetBinContent(16,98350); h_SL2L467->SetBinContent(17,92853.57); h_SL2L467->SetBinContent(18,82607.14); h_SL2L467->SetBinContent(19,78239.28); h_SL2L467->SetBinContent(20,81092.86); h_SL2L467->SetBinContent(21,83510.71); h_SL2L467->SetBinContent(22,81857.14); h_SL2L467->SetBinContent(23,77853.57); h_SL2L467->SetBinContent(24,74346.43); h_SL2L467->SetBinContent(25,70167.86); h_SL2L467->SetBinContent(26,66257.14); h_SL2L467->SetBinContent(27,64735.71); h_SL2L467->SetBinContent(28,64085.71); h_SL2L467->SetBinContent(29,62842.86); h_SL2L467->SetBinContent(30,61578.57); h_SL2L467->SetBinContent(31,58332.14); h_SL2L467->SetBinContent(32,62264.29); h_SL2L467->SetBinContent(33,64128.57); h_SL2L467->SetBinContent(34,66242.86); h_SL2L467->SetBinContent(35,65757.14); h_SL2L467->SetBinContent(36,69357.14); h_SL2L467->SetBinContent(37,71789.28); h_SL2L467->SetBinContent(38,76210.71); h_SL2L467->SetBinContent(39,78025); h_SL2L467->SetBinContent(40,77582.14); h_SL2L467->SetBinContent(41,77946.43); h_SL2L467->SetBinContent(42,77514.28); h_SL2L467->SetBinContent(43,77632.14); h_SL2L467->SetBinContent(44,76864.28); h_SL2L467->SetBinContent(45,73971.43); h_SL2L467->SetBinContent(46,71035.71); h_SL2L467->SetBinContent(47,69046.43); h_SL2L467->SetBinContent(48,68517.86); h_SL2L467->SetBinContent(49,68521.43); h_SL2L467->SetBinContent(50,71150); h_SL2L467->SetBinContent(51,67275); h_SL2L467->SetBinContent(52,78835.71); h_SL2L467->SetBinContent(53,87582.14); h_SL2L467->SetBinContent(54,97060.71); h_SL2L467->SetBinContent(55,100642.9); h_SL2L467->SetBinContent(56,92364.28); h_SL2L467->SetBinContent(57,82767.86); h_SL2L467->SetMaximum(164265.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 7385"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }