void RatesPerCell_Removing_noisy_cells_run_7550_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:20:03 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18196.16,67.5,163765.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7550",60,0,60); h_SL2L164->SetBinContent(1,30757.14); h_SL2L164->SetBinContent(2,38064.29); h_SL2L164->SetBinContent(3,46092.86); h_SL2L164->SetBinContent(4,48250); h_SL2L164->SetBinContent(5,48228.57); h_SL2L164->SetBinContent(6,45278.57); h_SL2L164->SetBinContent(7,42485.71); h_SL2L164->SetBinContent(8,40407.14); h_SL2L164->SetBinContent(9,44800); h_SL2L164->SetBinContent(10,46564.29); h_SL2L164->SetBinContent(11,47085.71); h_SL2L164->SetBinContent(12,47457.14); h_SL2L164->SetBinContent(13,45885.71); h_SL2L164->SetBinContent(14,46607.14); h_SL2L164->SetBinContent(15,45385.71); h_SL2L164->SetBinContent(16,46135.71); h_SL2L164->SetBinContent(17,43907.14); h_SL2L164->SetBinContent(18,43000); h_SL2L164->SetBinContent(19,43557.14); h_SL2L164->SetBinContent(20,42178.57); h_SL2L164->SetBinContent(21,40242.86); h_SL2L164->SetBinContent(22,38564.29); h_SL2L164->SetBinContent(23,34914.29); h_SL2L164->SetBinContent(24,33128.57); h_SL2L164->SetBinContent(25,32421.43); h_SL2L164->SetBinContent(26,31242.86); h_SL2L164->SetBinContent(27,29957.14); h_SL2L164->SetBinContent(28,29700); h_SL2L164->SetBinContent(29,30857.14); h_SL2L164->SetBinContent(30,28707.14); h_SL2L164->SetBinContent(31,28492.86); h_SL2L164->SetBinContent(32,30350); h_SL2L164->SetBinContent(33,31114.29); h_SL2L164->SetBinContent(34,31021.43); h_SL2L164->SetBinContent(36,31271.43); h_SL2L164->SetBinContent(37,39150); h_SL2L164->SetBinContent(38,34800); h_SL2L164->SetBinContent(39,36485.71); h_SL2L164->SetBinContent(40,62378.57); h_SL2L164->SetBinContent(41,110071.4); h_SL2L164->SetBinContent(42,40414.29); h_SL2L164->SetBinContent(43,41800); h_SL2L164->SetBinContent(44,39185.71); h_SL2L164->SetBinContent(45,29771.43); h_SL2L164->SetBinContent(46,28728.57); h_SL2L164->SetBinContent(47,28114.29); h_SL2L164->SetBinContent(48,27764.29); h_SL2L164->SetBinContent(49,28335.71); h_SL2L164->SetBinContent(50,27864.29); h_SL2L164->SetBinContent(51,29664.29); h_SL2L164->SetBinContent(52,33571.43); h_SL2L164->SetBinContent(53,37807.14); h_SL2L164->SetBinContent(54,39464.29); h_SL2L164->SetBinContent(55,36900); h_SL2L164->SetBinContent(56,32357.14); h_SL2L164->SetBinContent(57,24878.57); h_SL2L164->SetMaximum(145569.3); 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,23814.29); h_SL2L265->SetBinContent(2,36335.71); h_SL2L265->SetBinContent(3,40450); h_SL2L265->SetBinContent(4,47414.29); h_SL2L265->SetBinContent(5,45957.14); h_SL2L265->SetBinContent(6,45128.57); h_SL2L265->SetBinContent(7,44150); h_SL2L265->SetBinContent(8,38542.86); h_SL2L265->SetBinContent(9,41921.43); h_SL2L265->SetBinContent(10,43950); h_SL2L265->SetBinContent(11,46142.86); h_SL2L265->SetBinContent(12,45071.43); h_SL2L265->SetBinContent(13,45385.71); h_SL2L265->SetBinContent(14,44664.29); h_SL2L265->SetBinContent(15,45564.29); h_SL2L265->SetBinContent(16,43692.86); h_SL2L265->SetBinContent(17,42935.71); h_SL2L265->SetBinContent(18,42864.29); h_SL2L265->SetBinContent(19,41528.57); h_SL2L265->SetBinContent(20,40642.86); h_SL2L265->SetBinContent(21,40221.43); h_SL2L265->SetBinContent(22,36571.43); h_SL2L265->SetBinContent(23,35992.86); h_SL2L265->SetBinContent(24,32628.57); h_SL2L265->SetBinContent(25,30857.14); h_SL2L265->SetBinContent(26,30335.71); h_SL2L265->SetBinContent(27,28964.29); h_SL2L265->SetBinContent(28,30007.14); h_SL2L265->SetBinContent(29,29785.71); h_SL2L265->SetBinContent(30,29342.86); h_SL2L265->SetBinContent(31,27185.71); h_SL2L265->SetBinContent(32,29135.71); h_SL2L265->SetBinContent(33,29192.86); h_SL2L265->SetBinContent(34,30328.57); h_SL2L265->SetBinContent(35,29514.29); h_SL2L265->SetBinContent(36,29214.29); h_SL2L265->SetBinContent(37,31600); h_SL2L265->SetBinContent(38,30914.29); h_SL2L265->SetBinContent(39,33014.29); h_SL2L265->SetBinContent(40,32392.86); h_SL2L265->SetBinContent(41,32285.71); h_SL2L265->SetBinContent(42,30478.57); h_SL2L265->SetBinContent(43,30750); h_SL2L265->SetBinContent(44,30721.43); h_SL2L265->SetBinContent(45,29521.43); h_SL2L265->SetBinContent(46,29007.14); h_SL2L265->SetBinContent(47,27614.29); h_SL2L265->SetBinContent(48,27135.71); h_SL2L265->SetBinContent(49,27142.86); h_SL2L265->SetBinContent(50,27821.43); h_SL2L265->SetBinContent(51,26707.14); h_SL2L265->SetBinContent(52,30871.43); h_SL2L265->SetBinContent(53,34307.14); h_SL2L265->SetBinContent(54,36378.57); h_SL2L265->SetBinContent(55,37892.86); h_SL2L265->SetBinContent(56,32742.86); h_SL2L265->SetBinContent(57,29642.86); h_SL2L265->SetMaximum(126582.1); 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,27642.86); h_SL2L366->SetBinContent(2,34942.86); h_SL2L366->SetBinContent(3,44071.43); h_SL2L366->SetBinContent(4,46435.71); h_SL2L366->SetBinContent(5,44514.29); h_SL2L366->SetBinContent(6,42757.14); h_SL2L366->SetBinContent(7,38878.57); h_SL2L366->SetBinContent(8,38942.86); h_SL2L366->SetBinContent(9,42585.71); h_SL2L366->SetBinContent(10,43128.57); h_SL2L366->SetBinContent(11,44442.86); h_SL2L366->SetBinContent(12,44271.43); h_SL2L366->SetBinContent(13,43592.86); h_SL2L366->SetBinContent(14,43450); h_SL2L366->SetBinContent(15,42535.71); h_SL2L366->SetBinContent(16,42228.57); h_SL2L366->SetBinContent(17,41135.71); h_SL2L366->SetBinContent(18,41042.86); h_SL2L366->SetBinContent(19,39685.71); h_SL2L366->SetBinContent(20,38264.29); h_SL2L366->SetBinContent(21,37714.29); h_SL2L366->SetBinContent(22,35635.71); h_SL2L366->SetBinContent(23,33392.86); h_SL2L366->SetBinContent(24,30821.43); h_SL2L366->SetBinContent(25,30207.14); h_SL2L366->SetBinContent(26,29464.29); h_SL2L366->SetBinContent(27,28935.71); h_SL2L366->SetBinContent(28,28992.86); h_SL2L366->SetBinContent(29,28400); h_SL2L366->SetBinContent(30,27357.14); h_SL2L366->SetBinContent(31,26528.57); h_SL2L366->SetBinContent(32,28592.86); h_SL2L366->SetBinContent(33,29528.57); h_SL2L366->SetBinContent(34,29000); h_SL2L366->SetBinContent(35,29042.86); h_SL2L366->SetBinContent(36,29042.86); h_SL2L366->SetBinContent(37,30557.14); h_SL2L366->SetBinContent(38,31814.29); h_SL2L366->SetBinContent(39,29592.86); h_SL2L366->SetBinContent(40,30814.29); h_SL2L366->SetBinContent(41,29464.29); h_SL2L366->SetBinContent(42,29928.57); h_SL2L366->SetBinContent(43,29350); h_SL2L366->SetBinContent(44,29514.29); h_SL2L366->SetBinContent(45,28557.14); h_SL2L366->SetBinContent(46,26478.57); h_SL2L366->SetBinContent(47,26421.43); h_SL2L366->SetBinContent(48,26607.14); h_SL2L366->SetBinContent(49,27157.14); h_SL2L366->SetBinContent(50,26600); h_SL2L366->SetBinContent(51,27471.43); h_SL2L366->SetBinContent(52,30735.71); h_SL2L366->SetBinContent(53,33700); h_SL2L366->SetBinContent(54,36485.71); h_SL2L366->SetBinContent(55,36085.71); h_SL2L366->SetBinContent(56,28492.86); h_SL2L366->SetBinContent(57,27542.86); h_SL2L366->SetMaximum(126582.1); 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,32985.71); h_SL2L467->SetBinContent(3,38642.86); h_SL2L467->SetBinContent(4,43892.86); h_SL2L467->SetBinContent(5,44521.43); h_SL2L467->SetBinContent(6,42307.14); h_SL2L467->SetBinContent(7,40828.57); h_SL2L467->SetBinContent(8,35921.43); h_SL2L467->SetBinContent(9,41542.86); h_SL2L467->SetBinContent(10,41114.29); h_SL2L467->SetBinContent(11,42907.14); h_SL2L467->SetBinContent(12,43521.43); h_SL2L467->SetBinContent(13,42864.29); h_SL2L467->SetBinContent(14,43371.43); h_SL2L467->SetBinContent(15,41892.86); h_SL2L467->SetBinContent(16,40514.29); h_SL2L467->SetBinContent(17,41171.43); h_SL2L467->SetBinContent(18,39464.29); h_SL2L467->SetBinContent(19,39100); h_SL2L467->SetBinContent(20,37257.14); h_SL2L467->SetBinContent(21,37264.29); h_SL2L467->SetBinContent(22,35585.71); h_SL2L467->SetBinContent(23,33464.29); h_SL2L467->SetBinContent(24,31935.71); h_SL2L467->SetBinContent(25,29185.71); h_SL2L467->SetBinContent(26,29207.14); h_SL2L467->SetBinContent(27,28792.86); h_SL2L467->SetBinContent(28,28021.43); h_SL2L467->SetBinContent(29,28114.29); h_SL2L467->SetBinContent(30,27742.86); h_SL2L467->SetBinContent(31,25964.29); h_SL2L467->SetBinContent(32,26942.86); h_SL2L467->SetBinContent(33,28178.57); h_SL2L467->SetBinContent(34,28071.43); h_SL2L467->SetBinContent(35,28650); h_SL2L467->SetBinContent(36,29157.14); h_SL2L467->SetBinContent(37,28857.14); h_SL2L467->SetBinContent(38,29678.57); h_SL2L467->SetBinContent(39,29064.29); h_SL2L467->SetBinContent(40,29292.86); h_SL2L467->SetBinContent(41,28757.14); h_SL2L467->SetBinContent(42,29685.71); h_SL2L467->SetBinContent(43,29021.43); h_SL2L467->SetBinContent(44,28200); h_SL2L467->SetBinContent(45,27885.71); h_SL2L467->SetBinContent(46,26528.57); h_SL2L467->SetBinContent(47,26278.57); h_SL2L467->SetBinContent(48,25950); h_SL2L467->SetBinContent(49,25835.71); h_SL2L467->SetBinContent(50,25814.29); h_SL2L467->SetBinContent(51,25421.43); h_SL2L467->SetBinContent(52,28835.71); h_SL2L467->SetBinContent(53,32492.86); h_SL2L467->SetBinContent(54,33885.71); h_SL2L467->SetBinContent(55,35414.29); h_SL2L467->SetBinContent(56,31357.14); h_SL2L467->SetBinContent(57,26614.29); h_SL2L467->SetMaximum(126582.1); 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 7550"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }