void RatesPerCell_Removing_noisy_cells_run_6946_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:14:36 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10081.62,67.5,90734.57); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6946",60,0,60); h_SL2L164->SetBinContent(1,17792.86); h_SL2L164->SetBinContent(2,21728.57); h_SL2L164->SetBinContent(3,25885.71); h_SL2L164->SetBinContent(4,27942.86); h_SL2L164->SetBinContent(5,28250); h_SL2L164->SetBinContent(6,26942.86); h_SL2L164->SetBinContent(7,25621.43); h_SL2L164->SetBinContent(8,24485.71); h_SL2L164->SetBinContent(9,27607.14); h_SL2L164->SetBinContent(10,27607.14); h_SL2L164->SetBinContent(11,28428.57); h_SL2L164->SetBinContent(12,29207.14); h_SL2L164->SetBinContent(13,28407.14); h_SL2L164->SetBinContent(14,27642.86); h_SL2L164->SetBinContent(15,27400); h_SL2L164->SetBinContent(16,26921.43); h_SL2L164->SetBinContent(17,26964.29); h_SL2L164->SetBinContent(18,26578.57); h_SL2L164->SetBinContent(19,27278.57); h_SL2L164->SetBinContent(20,26164.29); h_SL2L164->SetBinContent(21,25942.86); h_SL2L164->SetBinContent(22,24042.86); h_SL2L164->SetBinContent(23,23142.86); h_SL2L164->SetBinContent(24,21264.29); h_SL2L164->SetBinContent(25,20600); h_SL2L164->SetBinContent(26,20392.86); h_SL2L164->SetBinContent(27,20057.14); h_SL2L164->SetBinContent(28,19828.57); h_SL2L164->SetBinContent(29,19592.86); h_SL2L164->SetBinContent(30,18521.43); h_SL2L164->SetBinContent(31,19242.86); h_SL2L164->SetBinContent(32,18328.57); h_SL2L164->SetBinContent(33,18592.86); h_SL2L164->SetBinContent(34,18521.43); h_SL2L164->SetBinContent(36,19900); h_SL2L164->SetBinContent(37,21085.71); h_SL2L164->SetBinContent(38,19507.14); h_SL2L164->SetBinContent(39,22007.14); h_SL2L164->SetBinContent(40,43200); h_SL2L164->SetBinContent(41,60985.71); h_SL2L164->SetBinContent(42,25464.29); h_SL2L164->SetBinContent(43,26392.86); h_SL2L164->SetBinContent(44,25821.43); h_SL2L164->SetBinContent(45,17714.29); h_SL2L164->SetBinContent(46,17092.86); h_SL2L164->SetBinContent(47,17278.57); h_SL2L164->SetBinContent(48,17800); h_SL2L164->SetBinContent(49,17957.14); h_SL2L164->SetBinContent(50,17671.43); h_SL2L164->SetBinContent(51,18257.14); h_SL2L164->SetBinContent(52,19050); h_SL2L164->SetBinContent(53,20164.29); h_SL2L164->SetBinContent(54,19657.14); h_SL2L164->SetBinContent(55,18642.86); h_SL2L164->SetBinContent(56,14621.43); h_SL2L164->SetBinContent(57,11578.57); h_SL2L164->SetMaximum(80652.95); 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,12957.14); h_SL2L265->SetBinContent(2,20235.71); h_SL2L265->SetBinContent(3,22935.71); h_SL2L265->SetBinContent(4,27057.14); h_SL2L265->SetBinContent(5,26671.43); h_SL2L265->SetBinContent(6,27421.43); h_SL2L265->SetBinContent(7,25478.57); h_SL2L265->SetBinContent(8,23835.71); h_SL2L265->SetBinContent(9,25128.57); h_SL2L265->SetBinContent(10,26792.86); h_SL2L265->SetBinContent(11,28000); h_SL2L265->SetBinContent(12,28457.14); h_SL2L265->SetBinContent(13,28428.57); h_SL2L265->SetBinContent(14,27750); h_SL2L265->SetBinContent(15,26521.43); h_SL2L265->SetBinContent(16,26485.71); h_SL2L265->SetBinContent(17,27357.14); h_SL2L265->SetBinContent(18,25857.14); h_SL2L265->SetBinContent(19,26092.86); h_SL2L265->SetBinContent(20,25964.29); h_SL2L265->SetBinContent(21,24935.71); h_SL2L265->SetBinContent(22,24778.57); h_SL2L265->SetBinContent(23,22835.71); h_SL2L265->SetBinContent(24,21435.71); h_SL2L265->SetBinContent(25,20828.57); h_SL2L265->SetBinContent(26,20371.43); h_SL2L265->SetBinContent(27,18492.86); h_SL2L265->SetBinContent(28,19778.57); h_SL2L265->SetBinContent(29,18928.57); h_SL2L265->SetBinContent(30,18371.43); h_SL2L265->SetBinContent(31,17771.43); h_SL2L265->SetBinContent(32,18907.14); h_SL2L265->SetBinContent(33,18578.57); h_SL2L265->SetBinContent(34,19307.14); h_SL2L265->SetBinContent(35,17207.14); h_SL2L265->SetBinContent(36,16757.14); h_SL2L265->SetBinContent(37,18078.57); h_SL2L265->SetBinContent(38,19014.29); h_SL2L265->SetBinContent(39,19192.86); h_SL2L265->SetBinContent(40,20271.43); h_SL2L265->SetBinContent(41,19392.86); h_SL2L265->SetBinContent(42,18071.43); h_SL2L265->SetBinContent(43,18214.29); h_SL2L265->SetBinContent(44,18057.14); h_SL2L265->SetBinContent(45,17950); h_SL2L265->SetBinContent(46,17050); h_SL2L265->SetBinContent(47,16750); h_SL2L265->SetBinContent(48,16685.71); h_SL2L265->SetBinContent(49,17257.14); h_SL2L265->SetBinContent(50,17842.86); h_SL2L265->SetBinContent(51,17564.29); h_SL2L265->SetBinContent(52,37157.14); h_SL2L265->SetBinContent(53,19092.86); h_SL2L265->SetBinContent(54,19935.71); h_SL2L265->SetBinContent(55,19385.71); h_SL2L265->SetBinContent(56,16307.14); h_SL2L265->SetBinContent(57,14335.71); h_SL2L265->SetMaximum(70133.57); 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,15707.14); h_SL2L366->SetBinContent(2,19978.57); h_SL2L366->SetBinContent(3,25971.43); h_SL2L366->SetBinContent(4,26307.14); h_SL2L366->SetBinContent(5,26557.14); h_SL2L366->SetBinContent(6,25857.14); h_SL2L366->SetBinContent(7,24185.71); h_SL2L366->SetBinContent(8,23792.86); h_SL2L366->SetBinContent(9,25671.43); h_SL2L366->SetBinContent(10,26107.14); h_SL2L366->SetBinContent(11,27650); h_SL2L366->SetBinContent(12,26800); h_SL2L366->SetBinContent(13,26421.43); h_SL2L366->SetBinContent(14,26821.43); h_SL2L366->SetBinContent(15,25885.71); h_SL2L366->SetBinContent(16,25800); h_SL2L366->SetBinContent(17,24950); h_SL2L366->SetBinContent(18,25864.29); h_SL2L366->SetBinContent(19,25750); h_SL2L366->SetBinContent(20,24900); h_SL2L366->SetBinContent(21,24357.14); h_SL2L366->SetBinContent(22,23664.29); h_SL2L366->SetBinContent(23,21121.43); h_SL2L366->SetBinContent(24,20378.57); h_SL2L366->SetBinContent(25,19342.86); h_SL2L366->SetBinContent(26,18650); h_SL2L366->SetBinContent(27,19300); h_SL2L366->SetBinContent(28,19314.29); h_SL2L366->SetBinContent(29,18600); h_SL2L366->SetBinContent(30,18257.14); h_SL2L366->SetBinContent(31,17814.29); h_SL2L366->SetBinContent(32,18150); h_SL2L366->SetBinContent(33,17557.14); h_SL2L366->SetBinContent(34,18221.43); h_SL2L366->SetBinContent(35,16635.71); h_SL2L366->SetBinContent(36,17878.57); h_SL2L366->SetBinContent(37,17550); h_SL2L366->SetBinContent(38,17564.29); h_SL2L366->SetBinContent(39,18192.86); h_SL2L366->SetBinContent(40,18335.71); h_SL2L366->SetBinContent(41,17428.57); h_SL2L366->SetBinContent(42,16257.14); h_SL2L366->SetBinContent(43,17435.71); h_SL2L366->SetBinContent(44,17450); h_SL2L366->SetBinContent(45,16871.43); h_SL2L366->SetBinContent(46,16328.57); h_SL2L366->SetBinContent(47,16392.86); h_SL2L366->SetBinContent(48,16757.14); h_SL2L366->SetBinContent(49,17714.29); h_SL2L366->SetBinContent(50,16535.71); h_SL2L366->SetBinContent(51,17907.14); h_SL2L366->SetBinContent(52,17464.29); h_SL2L366->SetBinContent(53,18664.29); h_SL2L366->SetBinContent(54,18935.71); h_SL2L366->SetBinContent(55,18307.14); h_SL2L366->SetBinContent(56,14535.71); h_SL2L366->SetBinContent(57,12728.57); h_SL2L366->SetMaximum(70133.57); 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,18650); h_SL2L467->SetBinContent(3,23235.71); h_SL2L467->SetBinContent(4,26157.14); h_SL2L467->SetBinContent(5,26464.29); h_SL2L467->SetBinContent(6,25157.14); h_SL2L467->SetBinContent(7,25085.71); h_SL2L467->SetBinContent(8,22450); h_SL2L467->SetBinContent(9,25214.29); h_SL2L467->SetBinContent(10,25142.86); h_SL2L467->SetBinContent(11,25957.14); h_SL2L467->SetBinContent(12,27221.43); h_SL2L467->SetBinContent(13,26235.71); h_SL2L467->SetBinContent(14,25771.43); h_SL2L467->SetBinContent(15,25835.71); h_SL2L467->SetBinContent(16,24250); h_SL2L467->SetBinContent(17,24971.43); h_SL2L467->SetBinContent(18,24935.71); h_SL2L467->SetBinContent(19,25221.43); h_SL2L467->SetBinContent(20,24742.86); h_SL2L467->SetBinContent(21,24550); h_SL2L467->SetBinContent(22,23292.86); h_SL2L467->SetBinContent(23,22107.14); h_SL2L467->SetBinContent(24,20400); h_SL2L467->SetBinContent(25,19914.29); h_SL2L467->SetBinContent(26,19857.14); h_SL2L467->SetBinContent(27,18978.57); h_SL2L467->SetBinContent(28,18578.57); h_SL2L467->SetBinContent(29,18571.43); h_SL2L467->SetBinContent(30,18992.86); h_SL2L467->SetBinContent(31,18092.86); h_SL2L467->SetBinContent(32,17585.71); h_SL2L467->SetBinContent(33,17750); h_SL2L467->SetBinContent(34,17900); h_SL2L467->SetBinContent(35,17264.29); h_SL2L467->SetBinContent(36,17714.29); h_SL2L467->SetBinContent(37,16978.57); h_SL2L467->SetBinContent(38,17807.14); h_SL2L467->SetBinContent(39,18578.57); h_SL2L467->SetBinContent(40,16707.14); h_SL2L467->SetBinContent(41,16842.86); h_SL2L467->SetBinContent(42,16507.14); h_SL2L467->SetBinContent(43,16371.43); h_SL2L467->SetBinContent(44,17485.71); h_SL2L467->SetBinContent(45,17021.43); h_SL2L467->SetBinContent(46,16357.14); h_SL2L467->SetBinContent(47,16778.57); h_SL2L467->SetBinContent(48,16471.43); h_SL2L467->SetBinContent(49,16914.29); h_SL2L467->SetBinContent(50,17178.57); h_SL2L467->SetBinContent(51,16878.57); h_SL2L467->SetBinContent(52,17928.57); h_SL2L467->SetBinContent(53,18378.57); h_SL2L467->SetBinContent(54,18692.86); h_SL2L467->SetBinContent(55,18285.71); h_SL2L467->SetBinContent(56,16178.57); h_SL2L467->SetBinContent(57,12878.57); h_SL2L467->SetMaximum(70133.57); 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 6946"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }