void RatesPerCell_Removing_noisy_cells_run_6829_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:09:45 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-15388.73,67.5,138498.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 6829",60,0,60); h_SL2L164->SetBinContent(1,49135.71); h_SL2L164->SetBinContent(2,60592.86); h_SL2L164->SetBinContent(3,73057.14); h_SL2L164->SetBinContent(4,74225); h_SL2L164->SetBinContent(5,73982.14); h_SL2L164->SetBinContent(6,66685.71); h_SL2L164->SetBinContent(7,59482.14); h_SL2L164->SetBinContent(8,58417.86); h_SL2L164->SetBinContent(9,67300); h_SL2L164->SetBinContent(10,66817.86); h_SL2L164->SetBinContent(11,68653.57); h_SL2L164->SetBinContent(12,66000); h_SL2L164->SetBinContent(13,67385.71); h_SL2L164->SetBinContent(14,66257.14); h_SL2L164->SetBinContent(15,64653.57); h_SL2L164->SetBinContent(16,63635.71); h_SL2L164->SetBinContent(17,60564.29); h_SL2L164->SetBinContent(18,60153.57); h_SL2L164->SetBinContent(19,57696.43); h_SL2L164->SetBinContent(20,53275); h_SL2L164->SetBinContent(21,49632.14); h_SL2L164->SetBinContent(22,44867.86); h_SL2L164->SetBinContent(23,43507.14); h_SL2L164->SetBinContent(24,40475); h_SL2L164->SetBinContent(25,43271.43); h_SL2L164->SetBinContent(26,57207.14); h_SL2L164->SetBinContent(27,71453.57); h_SL2L164->SetBinContent(28,76200); h_SL2L164->SetBinContent(29,79442.86); h_SL2L164->SetBinContent(30,75489.28); h_SL2L164->SetBinContent(31,72103.57); h_SL2L164->SetBinContent(32,71421.43); h_SL2L164->SetBinContent(33,70078.57); h_SL2L164->SetBinContent(34,50860.71); h_SL2L164->SetBinContent(36,27696.43); h_SL2L164->SetBinContent(37,29057.14); h_SL2L164->SetBinContent(38,28039.29); h_SL2L164->SetBinContent(39,27707.14); h_SL2L164->SetBinContent(40,83789.28); h_SL2L164->SetBinContent(41,93089.28); h_SL2L164->SetBinContent(42,29100); h_SL2L164->SetBinContent(43,28485.71); h_SL2L164->SetBinContent(44,27867.86); h_SL2L164->SetBinContent(45,23007.14); h_SL2L164->SetBinContent(46,22282.14); h_SL2L164->SetBinContent(47,22746.43); h_SL2L164->SetBinContent(48,22921.43); h_SL2L164->SetBinContent(49,23714.29); h_SL2L164->SetBinContent(50,23100); h_SL2L164->SetBinContent(51,24450); h_SL2L164->SetBinContent(52,27475); h_SL2L164->SetBinContent(53,30650); h_SL2L164->SetBinContent(54,32142.86); h_SL2L164->SetBinContent(55,32142.86); h_SL2L164->SetBinContent(56,28603.57); h_SL2L164->SetBinContent(57,43167.86); h_SL2L164->SetMaximum(123109.8); 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,39521.43); h_SL2L265->SetBinContent(2,56582.14); h_SL2L265->SetBinContent(3,62471.43); h_SL2L265->SetBinContent(4,72167.86); h_SL2L265->SetBinContent(5,71946.43); h_SL2L265->SetBinContent(6,67171.43); h_SL2L265->SetBinContent(7,62092.86); h_SL2L265->SetBinContent(8,55021.43); h_SL2L265->SetBinContent(9,61985.71); h_SL2L265->SetBinContent(10,64957.14); h_SL2L265->SetBinContent(11,66525); h_SL2L265->SetBinContent(12,64417.86); h_SL2L265->SetBinContent(13,64046.43); h_SL2L265->SetBinContent(14,64707.14); h_SL2L265->SetBinContent(15,63260.71); h_SL2L265->SetBinContent(16,60117.86); h_SL2L265->SetBinContent(17,59342.86); h_SL2L265->SetBinContent(18,58632.14); h_SL2L265->SetBinContent(19,56225); h_SL2L265->SetBinContent(20,52510.71); h_SL2L265->SetBinContent(21,49875); h_SL2L265->SetBinContent(22,45339.29); h_SL2L265->SetBinContent(23,42128.57); h_SL2L265->SetBinContent(24,41003.57); h_SL2L265->SetBinContent(25,38650); h_SL2L265->SetBinContent(26,48203.57); h_SL2L265->SetBinContent(27,63767.86); h_SL2L265->SetBinContent(28,73057.14); h_SL2L265->SetBinContent(29,76535.71); h_SL2L265->SetBinContent(30,76378.57); h_SL2L265->SetBinContent(31,70603.57); h_SL2L265->SetBinContent(32,70607.14); h_SL2L265->SetBinContent(33,70892.86); h_SL2L265->SetBinContent(34,62485.71); h_SL2L265->SetBinContent(35,36867.86); h_SL2L265->SetBinContent(36,26732.14); h_SL2L265->SetBinContent(37,25314.29); h_SL2L265->SetBinContent(38,26432.14); h_SL2L265->SetBinContent(39,26075); h_SL2L265->SetBinContent(40,27146.43); h_SL2L265->SetBinContent(41,25525); h_SL2L265->SetBinContent(42,23903.57); h_SL2L265->SetBinContent(43,24257.14); h_SL2L265->SetBinContent(44,24421.43); h_SL2L265->SetBinContent(45,21835.71); h_SL2L265->SetBinContent(46,22064.29); h_SL2L265->SetBinContent(47,21278.57); h_SL2L265->SetBinContent(48,21821.43); h_SL2L265->SetBinContent(49,22228.57); h_SL2L265->SetBinContent(50,22796.43); h_SL2L265->SetBinContent(51,21325); h_SL2L265->SetBinContent(52,25235.71); h_SL2L265->SetBinContent(53,27157.14); h_SL2L265->SetBinContent(54,30007.14); h_SL2L265->SetBinContent(55,31621.43); h_SL2L265->SetBinContent(56,28482.14); h_SL2L265->SetBinContent(57,27478.57); h_SL2L265->SetMaximum(107052.7); 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,45960.71); h_SL2L366->SetBinContent(2,56164.29); h_SL2L366->SetBinContent(3,67867.86); h_SL2L366->SetBinContent(4,68517.86); h_SL2L366->SetBinContent(5,66875); h_SL2L366->SetBinContent(6,60828.57); h_SL2L366->SetBinContent(7,53960.71); h_SL2L366->SetBinContent(8,55900); h_SL2L366->SetBinContent(9,61821.43); h_SL2L366->SetBinContent(10,63325); h_SL2L366->SetBinContent(11,63314.29); h_SL2L366->SetBinContent(12,61721.43); h_SL2L366->SetBinContent(13,63200); h_SL2L366->SetBinContent(14,61342.86); h_SL2L366->SetBinContent(15,59367.86); h_SL2L366->SetBinContent(16,58235.71); h_SL2L366->SetBinContent(17,56217.86); h_SL2L366->SetBinContent(18,55642.86); h_SL2L366->SetBinContent(19,52903.57); h_SL2L366->SetBinContent(20,49332.14); h_SL2L366->SetBinContent(21,45853.57); h_SL2L366->SetBinContent(22,41385.71); h_SL2L366->SetBinContent(23,39882.14); h_SL2L366->SetBinContent(24,38082.14); h_SL2L366->SetBinContent(25,39657.14); h_SL2L366->SetBinContent(26,55375); h_SL2L366->SetBinContent(27,68546.43); h_SL2L366->SetBinContent(28,73857.14); h_SL2L366->SetBinContent(29,76385.71); h_SL2L366->SetBinContent(30,72607.14); h_SL2L366->SetBinContent(31,70164.28); h_SL2L366->SetBinContent(32,69953.57); h_SL2L366->SetBinContent(33,67796.43); h_SL2L366->SetBinContent(34,49017.86); h_SL2L366->SetBinContent(35,28853.57); h_SL2L366->SetBinContent(36,25232.14); h_SL2L366->SetBinContent(37,24839.29); h_SL2L366->SetBinContent(38,24800); h_SL2L366->SetBinContent(39,23896.43); h_SL2L366->SetBinContent(40,24442.86); h_SL2L366->SetBinContent(41,23646.43); h_SL2L366->SetBinContent(42,22553.57); h_SL2L366->SetBinContent(43,23067.86); h_SL2L366->SetBinContent(44,21660.71); h_SL2L366->SetBinContent(45,21067.86); h_SL2L366->SetBinContent(46,20475); h_SL2L366->SetBinContent(47,21300); h_SL2L366->SetBinContent(48,20785.71); h_SL2L366->SetBinContent(49,21721.43); h_SL2L366->SetBinContent(50,20992.86); h_SL2L366->SetBinContent(51,21907.14); h_SL2L366->SetBinContent(52,25271.43); h_SL2L366->SetBinContent(53,27332.14); h_SL2L366->SetBinContent(54,29242.86); h_SL2L366->SetBinContent(55,31246.43); h_SL2L366->SetBinContent(56,25682.14); h_SL2L366->SetBinContent(57,26046.43); h_SL2L366->SetMaximum(107052.7); 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,53314.29); h_SL2L467->SetBinContent(3,59753.57); h_SL2L467->SetBinContent(4,66310.71); h_SL2L467->SetBinContent(5,66028.57); h_SL2L467->SetBinContent(6,61135.71); h_SL2L467->SetBinContent(7,56753.57); h_SL2L467->SetBinContent(8,50403.57); h_SL2L467->SetBinContent(9,58750); h_SL2L467->SetBinContent(10,60150); h_SL2L467->SetBinContent(11,61517.86); h_SL2L467->SetBinContent(12,60225); h_SL2L467->SetBinContent(13,59225); h_SL2L467->SetBinContent(14,59400); h_SL2L467->SetBinContent(15,59032.14); h_SL2L467->SetBinContent(16,56635.71); h_SL2L467->SetBinContent(17,54117.86); h_SL2L467->SetBinContent(18,53375); h_SL2L467->SetBinContent(19,52178.57); h_SL2L467->SetBinContent(20,48475); h_SL2L467->SetBinContent(21,45503.57); h_SL2L467->SetBinContent(22,41885.71); h_SL2L467->SetBinContent(23,38982.14); h_SL2L467->SetBinContent(24,37907.14); h_SL2L467->SetBinContent(25,36235.71); h_SL2L467->SetBinContent(26,45682.14); h_SL2L467->SetBinContent(27,61992.86); h_SL2L467->SetBinContent(28,71200); h_SL2L467->SetBinContent(29,75025); h_SL2L467->SetBinContent(30,74853.57); h_SL2L467->SetBinContent(31,69696.43); h_SL2L467->SetBinContent(32,69414.28); h_SL2L467->SetBinContent(33,69107.14); h_SL2L467->SetBinContent(34,59875); h_SL2L467->SetBinContent(35,35539.29); h_SL2L467->SetBinContent(36,25642.86); h_SL2L467->SetBinContent(37,24953.57); h_SL2L467->SetBinContent(38,23964.29); h_SL2L467->SetBinContent(39,23457.14); h_SL2L467->SetBinContent(40,22814.29); h_SL2L467->SetBinContent(41,22500); h_SL2L467->SetBinContent(42,21482.14); h_SL2L467->SetBinContent(43,21771.43); h_SL2L467->SetBinContent(44,21860.71); h_SL2L467->SetBinContent(45,21175); h_SL2L467->SetBinContent(46,20089.29); h_SL2L467->SetBinContent(47,20203.57); h_SL2L467->SetBinContent(48,19732.14); h_SL2L467->SetBinContent(49,20285.71); h_SL2L467->SetBinContent(50,21553.57); h_SL2L467->SetBinContent(51,19953.57); h_SL2L467->SetBinContent(52,23085.71); h_SL2L467->SetBinContent(53,24696.43); h_SL2L467->SetBinContent(54,27107.14); h_SL2L467->SetBinContent(55,29675); h_SL2L467->SetBinContent(56,26457.14); h_SL2L467->SetBinContent(57,25214.29); h_SL2L467->SetMaximum(107052.7); 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 6829"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }