void RatesPerCell_Removing_noisy_cells_run_7620_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:39:56 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-14992.55,67.5,134933); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7620",60,0,60); h_SL2L164->SetBinContent(1,34150); h_SL2L164->SetBinContent(2,42957.14); h_SL2L164->SetBinContent(3,52142.86); h_SL2L164->SetBinContent(4,54928.57); h_SL2L164->SetBinContent(5,54871.43); h_SL2L164->SetBinContent(6,51857.14); h_SL2L164->SetBinContent(7,47135.71); h_SL2L164->SetBinContent(8,45578.57); h_SL2L164->SetBinContent(9,50614.29); h_SL2L164->SetBinContent(10,52350); h_SL2L164->SetBinContent(11,53092.86); h_SL2L164->SetBinContent(12,53542.86); h_SL2L164->SetBinContent(13,53757.14); h_SL2L164->SetBinContent(14,52214.29); h_SL2L164->SetBinContent(15,51964.29); h_SL2L164->SetBinContent(16,51514.29); h_SL2L164->SetBinContent(17,51442.86); h_SL2L164->SetBinContent(18,50621.43); h_SL2L164->SetBinContent(19,49185.71); h_SL2L164->SetBinContent(20,48392.86); h_SL2L164->SetBinContent(21,46042.86); h_SL2L164->SetBinContent(22,43478.57); h_SL2L164->SetBinContent(23,41164.29); h_SL2L164->SetBinContent(24,38614.29); h_SL2L164->SetBinContent(25,36557.14); h_SL2L164->SetBinContent(26,35400); h_SL2L164->SetBinContent(27,35421.43); h_SL2L164->SetBinContent(28,36357.14); h_SL2L164->SetBinContent(29,35564.29); h_SL2L164->SetBinContent(30,34514.29); h_SL2L164->SetBinContent(31,32964.29); h_SL2L164->SetBinContent(32,35235.71); h_SL2L164->SetBinContent(33,37350); h_SL2L164->SetBinContent(34,36950); h_SL2L164->SetBinContent(36,36121.43); h_SL2L164->SetBinContent(37,42364.29); h_SL2L164->SetBinContent(38,40900); h_SL2L164->SetBinContent(39,40264.29); h_SL2L164->SetBinContent(40,59407.14); h_SL2L164->SetBinContent(41,90692.86); h_SL2L164->SetBinContent(42,44028.57); h_SL2L164->SetBinContent(43,44571.43); h_SL2L164->SetBinContent(44,42557.14); h_SL2L164->SetBinContent(45,35264.29); h_SL2L164->SetBinContent(46,33271.43); h_SL2L164->SetBinContent(47,33671.43); h_SL2L164->SetBinContent(48,32692.86); h_SL2L164->SetBinContent(49,32792.86); h_SL2L164->SetBinContent(50,30628.57); h_SL2L164->SetBinContent(51,34192.86); h_SL2L164->SetBinContent(52,37792.86); h_SL2L164->SetBinContent(53,40650); h_SL2L164->SetBinContent(54,42828.57); h_SL2L164->SetBinContent(55,41914.29); h_SL2L164->SetBinContent(56,35307.14); h_SL2L164->SetBinContent(57,27728.57); h_SL2L164->SetMaximum(119940.4); 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,26621.43); h_SL2L265->SetBinContent(2,41471.43); h_SL2L265->SetBinContent(3,45407.14); h_SL2L265->SetBinContent(4,53371.43); h_SL2L265->SetBinContent(5,53392.86); h_SL2L265->SetBinContent(6,50878.57); h_SL2L265->SetBinContent(7,48428.57); h_SL2L265->SetBinContent(8,43492.86); h_SL2L265->SetBinContent(9,47935.71); h_SL2L265->SetBinContent(10,49128.57); h_SL2L265->SetBinContent(11,50664.29); h_SL2L265->SetBinContent(12,51778.57); h_SL2L265->SetBinContent(13,51407.14); h_SL2L265->SetBinContent(14,50785.71); h_SL2L265->SetBinContent(15,50257.14); h_SL2L265->SetBinContent(16,49578.57); h_SL2L265->SetBinContent(17,49442.86); h_SL2L265->SetBinContent(18,48700); h_SL2L265->SetBinContent(19,48300); h_SL2L265->SetBinContent(20,47664.29); h_SL2L265->SetBinContent(21,45242.86); h_SL2L265->SetBinContent(22,42528.57); h_SL2L265->SetBinContent(23,40750); h_SL2L265->SetBinContent(24,38014.29); h_SL2L265->SetBinContent(25,36385.71); h_SL2L265->SetBinContent(26,34785.71); h_SL2L265->SetBinContent(27,34985.71); h_SL2L265->SetBinContent(28,34600); h_SL2L265->SetBinContent(29,34335.71); h_SL2L265->SetBinContent(30,34878.57); h_SL2L265->SetBinContent(31,32385.71); h_SL2L265->SetBinContent(32,34107.14); h_SL2L265->SetBinContent(33,34892.86); h_SL2L265->SetBinContent(34,36350); h_SL2L265->SetBinContent(35,35171.43); h_SL2L265->SetBinContent(36,34578.57); h_SL2L265->SetBinContent(37,36671.43); h_SL2L265->SetBinContent(38,38714.29); h_SL2L265->SetBinContent(39,37792.86); h_SL2L265->SetBinContent(40,37307.14); h_SL2L265->SetBinContent(41,36342.86); h_SL2L265->SetBinContent(42,36321.43); h_SL2L265->SetBinContent(43,36400); h_SL2L265->SetBinContent(44,36042.86); h_SL2L265->SetBinContent(45,35042.86); h_SL2L265->SetBinContent(46,32650); h_SL2L265->SetBinContent(47,31450); h_SL2L265->SetBinContent(48,31942.86); h_SL2L265->SetBinContent(49,31135.71); h_SL2L265->SetBinContent(50,30550); h_SL2L265->SetBinContent(51,30442.86); h_SL2L265->SetBinContent(52,35635.71); h_SL2L265->SetBinContent(53,38628.57); h_SL2L265->SetBinContent(54,41300); h_SL2L265->SetBinContent(55,42171.43); h_SL2L265->SetBinContent(56,37107.14); h_SL2L265->SetBinContent(57,32600); h_SL2L265->SetMaximum(104296.8); 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,31485.71); h_SL2L366->SetBinContent(2,39607.14); h_SL2L366->SetBinContent(3,50771.43); h_SL2L366->SetBinContent(4,51500); h_SL2L366->SetBinContent(5,51464.29); h_SL2L366->SetBinContent(6,48914.29); h_SL2L366->SetBinContent(7,43914.29); h_SL2L366->SetBinContent(8,42500); h_SL2L366->SetBinContent(9,47414.29); h_SL2L366->SetBinContent(10,47478.57); h_SL2L366->SetBinContent(11,48650); h_SL2L366->SetBinContent(12,50078.57); h_SL2L366->SetBinContent(13,49957.14); h_SL2L366->SetBinContent(14,48450); h_SL2L366->SetBinContent(15,48828.57); h_SL2L366->SetBinContent(16,48500); h_SL2L366->SetBinContent(17,47664.29); h_SL2L366->SetBinContent(18,47021.43); h_SL2L366->SetBinContent(19,46478.57); h_SL2L366->SetBinContent(20,45271.43); h_SL2L366->SetBinContent(21,42957.14); h_SL2L366->SetBinContent(22,40150); h_SL2L366->SetBinContent(23,37064.29); h_SL2L366->SetBinContent(24,35878.57); h_SL2L366->SetBinContent(25,35157.14); h_SL2L366->SetBinContent(26,33942.86); h_SL2L366->SetBinContent(27,33221.43); h_SL2L366->SetBinContent(28,33878.57); h_SL2L366->SetBinContent(29,33735.71); h_SL2L366->SetBinContent(30,31764.29); h_SL2L366->SetBinContent(31,31342.86); h_SL2L366->SetBinContent(32,34135.71); h_SL2L366->SetBinContent(33,33542.86); h_SL2L366->SetBinContent(34,34078.57); h_SL2L366->SetBinContent(35,33157.14); h_SL2L366->SetBinContent(36,33992.86); h_SL2L366->SetBinContent(37,35807.14); h_SL2L366->SetBinContent(38,36064.29); h_SL2L366->SetBinContent(39,34650); h_SL2L366->SetBinContent(40,35214.29); h_SL2L366->SetBinContent(41,34657.14); h_SL2L366->SetBinContent(42,34350); h_SL2L366->SetBinContent(43,35071.43); h_SL2L366->SetBinContent(44,33871.43); h_SL2L366->SetBinContent(45,33164.29); h_SL2L366->SetBinContent(46,31357.14); h_SL2L366->SetBinContent(47,30650); h_SL2L366->SetBinContent(48,29692.86); h_SL2L366->SetBinContent(49,31071.43); h_SL2L366->SetBinContent(50,30342.86); h_SL2L366->SetBinContent(51,31378.57); h_SL2L366->SetBinContent(52,34492.86); h_SL2L366->SetBinContent(53,38757.14); h_SL2L366->SetBinContent(54,41007.14); h_SL2L366->SetBinContent(55,39192.86); h_SL2L366->SetBinContent(56,31842.86); h_SL2L366->SetBinContent(57,31157.14); h_SL2L366->SetMaximum(104296.8); 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,37421.43); h_SL2L467->SetBinContent(3,43471.43); h_SL2L467->SetBinContent(4,49292.86); h_SL2L467->SetBinContent(5,50635.71); h_SL2L467->SetBinContent(6,46607.14); h_SL2L467->SetBinContent(7,45542.86); h_SL2L467->SetBinContent(8,40092.86); h_SL2L467->SetBinContent(9,44671.43); h_SL2L467->SetBinContent(10,45650); h_SL2L467->SetBinContent(11,48285.71); h_SL2L467->SetBinContent(12,47542.86); h_SL2L467->SetBinContent(13,47807.14); h_SL2L467->SetBinContent(14,48385.71); h_SL2L467->SetBinContent(15,46942.86); h_SL2L467->SetBinContent(16,47021.43); h_SL2L467->SetBinContent(17,44985.71); h_SL2L467->SetBinContent(18,45528.57); h_SL2L467->SetBinContent(19,46307.14); h_SL2L467->SetBinContent(20,43771.43); h_SL2L467->SetBinContent(21,42542.86); h_SL2L467->SetBinContent(22,40950); h_SL2L467->SetBinContent(23,37878.57); h_SL2L467->SetBinContent(24,35592.86); h_SL2L467->SetBinContent(25,34128.57); h_SL2L467->SetBinContent(26,33121.43); h_SL2L467->SetBinContent(27,32285.71); h_SL2L467->SetBinContent(28,31928.57); h_SL2L467->SetBinContent(29,32728.57); h_SL2L467->SetBinContent(30,33121.43); h_SL2L467->SetBinContent(31,29942.86); h_SL2L467->SetBinContent(32,31342.86); h_SL2L467->SetBinContent(33,32228.57); h_SL2L467->SetBinContent(34,32950); h_SL2L467->SetBinContent(35,32621.43); h_SL2L467->SetBinContent(36,32907.14); h_SL2L467->SetBinContent(37,34550); h_SL2L467->SetBinContent(38,34735.71); h_SL2L467->SetBinContent(39,33528.57); h_SL2L467->SetBinContent(40,32935.71); h_SL2L467->SetBinContent(41,33578.57); h_SL2L467->SetBinContent(42,33914.29); h_SL2L467->SetBinContent(43,34378.57); h_SL2L467->SetBinContent(44,34942.86); h_SL2L467->SetBinContent(45,32321.43); h_SL2L467->SetBinContent(46,30685.71); h_SL2L467->SetBinContent(47,31735.71); h_SL2L467->SetBinContent(48,30178.57); h_SL2L467->SetBinContent(49,29628.57); h_SL2L467->SetBinContent(50,30071.43); h_SL2L467->SetBinContent(51,29778.57); h_SL2L467->SetBinContent(52,32821.43); h_SL2L467->SetBinContent(53,35400); h_SL2L467->SetBinContent(54,38328.57); h_SL2L467->SetBinContent(55,39885.71); h_SL2L467->SetBinContent(56,36014.29); h_SL2L467->SetBinContent(57,29878.57); h_SL2L467->SetMaximum(104296.8); 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 7620"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }