void RatesPerCell_Removing_noisy_cells_run_7625_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:18:18 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12836.44,67.5,115528); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7625",60,0,60); h_SL2L164->SetBinContent(1,35592.86); h_SL2L164->SetBinContent(2,42085.71); h_SL2L164->SetBinContent(3,52678.57); h_SL2L164->SetBinContent(4,54764.29); h_SL2L164->SetBinContent(5,53971.43); h_SL2L164->SetBinContent(6,51871.43); h_SL2L164->SetBinContent(7,47235.71); h_SL2L164->SetBinContent(8,45892.86); h_SL2L164->SetBinContent(9,50128.57); h_SL2L164->SetBinContent(10,51607.14); h_SL2L164->SetBinContent(11,53014.29); h_SL2L164->SetBinContent(12,52771.43); h_SL2L164->SetBinContent(13,53635.71); h_SL2L164->SetBinContent(14,53028.57); h_SL2L164->SetBinContent(15,51500); h_SL2L164->SetBinContent(16,51164.29); h_SL2L164->SetBinContent(17,50635.71); h_SL2L164->SetBinContent(18,49550); h_SL2L164->SetBinContent(19,49378.57); h_SL2L164->SetBinContent(20,46578.57); h_SL2L164->SetBinContent(21,45971.43); h_SL2L164->SetBinContent(22,43707.14); h_SL2L164->SetBinContent(23,40885.71); h_SL2L164->SetBinContent(24,38057.14); h_SL2L164->SetBinContent(25,37678.57); h_SL2L164->SetBinContent(26,35871.43); h_SL2L164->SetBinContent(27,37107.14); h_SL2L164->SetBinContent(28,35150); h_SL2L164->SetBinContent(29,35614.29); h_SL2L164->SetBinContent(30,34885.71); h_SL2L164->SetBinContent(31,34114.29); h_SL2L164->SetBinContent(32,35457.14); h_SL2L164->SetBinContent(33,36178.57); h_SL2L164->SetBinContent(34,37307.14); h_SL2L164->SetBinContent(36,37142.86); h_SL2L164->SetBinContent(37,43542.86); h_SL2L164->SetBinContent(38,39628.57); h_SL2L164->SetBinContent(39,41342.86); h_SL2L164->SetBinContent(40,63507.14); h_SL2L164->SetBinContent(41,77650); h_SL2L164->SetBinContent(42,43992.86); h_SL2L164->SetBinContent(43,44507.14); h_SL2L164->SetBinContent(44,42542.86); h_SL2L164->SetBinContent(45,35492.86); h_SL2L164->SetBinContent(46,33814.29); h_SL2L164->SetBinContent(47,33571.43); h_SL2L164->SetBinContent(48,31764.29); h_SL2L164->SetBinContent(49,32985.71); h_SL2L164->SetBinContent(50,31464.29); h_SL2L164->SetBinContent(51,34835.71); h_SL2L164->SetBinContent(52,37728.57); h_SL2L164->SetBinContent(53,41600); h_SL2L164->SetBinContent(54,44035.71); h_SL2L164->SetBinContent(55,41757.14); h_SL2L164->SetBinContent(56,35292.86); h_SL2L164->SetBinContent(57,27757.14); h_SL2L164->SetMaximum(102691.5); 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,27471.43); h_SL2L265->SetBinContent(2,41035.71); h_SL2L265->SetBinContent(3,44878.57); h_SL2L265->SetBinContent(4,52392.86); h_SL2L265->SetBinContent(5,52935.71); h_SL2L265->SetBinContent(6,51071.43); h_SL2L265->SetBinContent(7,49407.14); h_SL2L265->SetBinContent(8,43564.29); h_SL2L265->SetBinContent(9,47800); h_SL2L265->SetBinContent(10,48357.14); h_SL2L265->SetBinContent(11,50350); h_SL2L265->SetBinContent(12,51157.14); h_SL2L265->SetBinContent(13,51121.43); h_SL2L265->SetBinContent(14,51028.57); h_SL2L265->SetBinContent(15,50450); h_SL2L265->SetBinContent(16,48571.43); h_SL2L265->SetBinContent(17,48692.86); h_SL2L265->SetBinContent(18,48257.14); h_SL2L265->SetBinContent(19,48421.43); h_SL2L265->SetBinContent(20,45514.29); h_SL2L265->SetBinContent(21,46035.71); h_SL2L265->SetBinContent(22,42400); h_SL2L265->SetBinContent(23,40071.43); h_SL2L265->SetBinContent(24,38300); h_SL2L265->SetBinContent(25,37307.14); h_SL2L265->SetBinContent(26,35435.71); h_SL2L265->SetBinContent(27,34278.57); h_SL2L265->SetBinContent(28,34485.71); h_SL2L265->SetBinContent(29,34700); h_SL2L265->SetBinContent(30,33764.29); h_SL2L265->SetBinContent(31,32335.71); h_SL2L265->SetBinContent(32,33857.14); h_SL2L265->SetBinContent(33,34557.14); h_SL2L265->SetBinContent(34,35785.71); h_SL2L265->SetBinContent(35,35028.57); h_SL2L265->SetBinContent(36,34350); h_SL2L265->SetBinContent(37,34971.43); h_SL2L265->SetBinContent(38,37150); h_SL2L265->SetBinContent(39,37321.43); h_SL2L265->SetBinContent(40,37821.43); h_SL2L265->SetBinContent(41,35521.43); h_SL2L265->SetBinContent(42,37007.14); h_SL2L265->SetBinContent(43,36100); h_SL2L265->SetBinContent(44,35564.29); h_SL2L265->SetBinContent(45,34592.86); h_SL2L265->SetBinContent(46,33214.29); h_SL2L265->SetBinContent(47,31757.14); h_SL2L265->SetBinContent(48,31728.57); h_SL2L265->SetBinContent(49,31928.57); h_SL2L265->SetBinContent(50,30964.29); h_SL2L265->SetBinContent(51,30428.57); h_SL2L265->SetBinContent(52,34750); h_SL2L265->SetBinContent(53,38514.29); h_SL2L265->SetBinContent(54,41207.14); h_SL2L265->SetBinContent(55,42821.43); h_SL2L265->SetBinContent(56,36692.86); h_SL2L265->SetBinContent(57,32257.14); h_SL2L265->SetMaximum(89297.5); 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,31742.86); h_SL2L366->SetBinContent(2,40792.86); h_SL2L366->SetBinContent(3,48842.86); h_SL2L366->SetBinContent(4,51407.14); h_SL2L366->SetBinContent(5,50692.86); h_SL2L366->SetBinContent(6,49021.43); h_SL2L366->SetBinContent(7,44257.14); h_SL2L366->SetBinContent(8,43700); h_SL2L366->SetBinContent(9,45907.14); h_SL2L366->SetBinContent(10,48078.57); h_SL2L366->SetBinContent(11,49057.14); h_SL2L366->SetBinContent(12,48792.86); h_SL2L366->SetBinContent(13,49192.86); h_SL2L366->SetBinContent(14,48200); h_SL2L366->SetBinContent(15,48328.57); h_SL2L366->SetBinContent(16,47800); h_SL2L366->SetBinContent(17,46492.86); h_SL2L366->SetBinContent(18,45307.14); h_SL2L366->SetBinContent(19,45692.86); h_SL2L366->SetBinContent(20,44471.43); h_SL2L366->SetBinContent(21,42764.29); h_SL2L366->SetBinContent(22,40821.43); h_SL2L366->SetBinContent(23,38492.86); h_SL2L366->SetBinContent(24,36050); h_SL2L366->SetBinContent(25,34614.29); h_SL2L366->SetBinContent(26,33921.43); h_SL2L366->SetBinContent(27,33985.71); h_SL2L366->SetBinContent(28,32607.14); h_SL2L366->SetBinContent(29,33600); h_SL2L366->SetBinContent(30,31885.71); h_SL2L366->SetBinContent(31,32664.29); h_SL2L366->SetBinContent(32,33542.86); h_SL2L366->SetBinContent(33,34435.71); h_SL2L366->SetBinContent(34,34328.57); h_SL2L366->SetBinContent(35,33742.86); h_SL2L366->SetBinContent(36,34314.29); h_SL2L366->SetBinContent(37,34264.29); h_SL2L366->SetBinContent(38,34978.57); h_SL2L366->SetBinContent(39,35235.71); h_SL2L366->SetBinContent(40,35778.57); h_SL2L366->SetBinContent(41,34157.14); h_SL2L366->SetBinContent(42,34528.57); h_SL2L366->SetBinContent(43,34400); h_SL2L366->SetBinContent(44,33528.57); h_SL2L366->SetBinContent(45,32850); h_SL2L366->SetBinContent(46,32292.86); h_SL2L366->SetBinContent(47,31507.14); h_SL2L366->SetBinContent(48,29964.29); h_SL2L366->SetBinContent(49,29928.57); h_SL2L366->SetBinContent(50,30157.14); h_SL2L366->SetBinContent(51,31178.57); h_SL2L366->SetBinContent(52,35564.29); h_SL2L366->SetBinContent(53,37542.86); h_SL2L366->SetBinContent(54,41092.86); h_SL2L366->SetBinContent(55,40385.71); h_SL2L366->SetBinContent(56,32128.57); h_SL2L366->SetBinContent(57,30221.43); h_SL2L366->SetMaximum(89297.5); 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,37078.57); h_SL2L467->SetBinContent(3,43928.57); h_SL2L467->SetBinContent(4,49114.29); h_SL2L467->SetBinContent(5,49078.57); h_SL2L467->SetBinContent(6,48585.71); h_SL2L467->SetBinContent(7,46450); h_SL2L467->SetBinContent(8,40378.57); h_SL2L467->SetBinContent(9,44671.43); h_SL2L467->SetBinContent(10,46357.14); h_SL2L467->SetBinContent(11,47914.29); h_SL2L467->SetBinContent(12,47721.43); h_SL2L467->SetBinContent(13,49435.71); h_SL2L467->SetBinContent(14,47471.43); h_SL2L467->SetBinContent(15,48500); h_SL2L467->SetBinContent(16,46664.29); h_SL2L467->SetBinContent(17,45292.86); h_SL2L467->SetBinContent(18,45814.29); h_SL2L467->SetBinContent(19,44557.14); h_SL2L467->SetBinContent(20,43128.57); h_SL2L467->SetBinContent(21,42014.29); h_SL2L467->SetBinContent(22,40042.86); h_SL2L467->SetBinContent(23,38971.43); h_SL2L467->SetBinContent(24,35492.86); h_SL2L467->SetBinContent(25,34171.43); h_SL2L467->SetBinContent(26,33271.43); h_SL2L467->SetBinContent(27,32728.57); h_SL2L467->SetBinContent(28,32942.86); h_SL2L467->SetBinContent(29,33635.71); h_SL2L467->SetBinContent(30,32878.57); h_SL2L467->SetBinContent(31,30457.14); h_SL2L467->SetBinContent(32,31785.71); h_SL2L467->SetBinContent(33,32928.57); h_SL2L467->SetBinContent(34,32800); h_SL2L467->SetBinContent(35,32557.14); h_SL2L467->SetBinContent(36,33164.29); h_SL2L467->SetBinContent(37,33321.43); h_SL2L467->SetBinContent(38,33992.86); h_SL2L467->SetBinContent(39,34550); h_SL2L467->SetBinContent(40,33985.71); h_SL2L467->SetBinContent(41,33871.43); h_SL2L467->SetBinContent(42,33835.71); h_SL2L467->SetBinContent(43,33550); h_SL2L467->SetBinContent(44,32835.71); h_SL2L467->SetBinContent(45,32350); h_SL2L467->SetBinContent(46,31364.29); h_SL2L467->SetBinContent(47,31228.57); h_SL2L467->SetBinContent(48,29992.86); h_SL2L467->SetBinContent(49,29164.29); h_SL2L467->SetBinContent(50,29735.71); h_SL2L467->SetBinContent(51,28921.43); h_SL2L467->SetBinContent(52,33121.43); h_SL2L467->SetBinContent(53,34600); h_SL2L467->SetBinContent(54,38457.14); h_SL2L467->SetBinContent(55,39314.29); h_SL2L467->SetBinContent(56,36221.43); h_SL2L467->SetBinContent(57,30528.57); h_SL2L467->SetMaximum(89297.5); 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 7625"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }