void RatesPerCell_Removing_noisy_cells_run_7365_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:22:39 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16032.87,67.5,144295.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7365",60,0,60); h_SL2L164->SetBinContent(1,29153.57); h_SL2L164->SetBinContent(2,38628.57); h_SL2L164->SetBinContent(3,45578.57); h_SL2L164->SetBinContent(4,48582.14); h_SL2L164->SetBinContent(5,47771.43); h_SL2L164->SetBinContent(6,44603.57); h_SL2L164->SetBinContent(7,42210.71); h_SL2L164->SetBinContent(8,39325); h_SL2L164->SetBinContent(9,43685.71); h_SL2L164->SetBinContent(10,44678.57); h_SL2L164->SetBinContent(11,44325); h_SL2L164->SetBinContent(12,44882.14); h_SL2L164->SetBinContent(13,41542.86); h_SL2L164->SetBinContent(14,40707.14); h_SL2L164->SetBinContent(15,40910.71); h_SL2L164->SetBinContent(16,40657.14); h_SL2L164->SetBinContent(17,38167.86); h_SL2L164->SetBinContent(18,36092.86); h_SL2L164->SetBinContent(19,36417.86); h_SL2L164->SetBinContent(20,36239.29); h_SL2L164->SetBinContent(21,37217.86); h_SL2L164->SetBinContent(22,36142.86); h_SL2L164->SetBinContent(23,35721.43); h_SL2L164->SetBinContent(24,33842.86); h_SL2L164->SetBinContent(25,33371.43); h_SL2L164->SetBinContent(26,33171.43); h_SL2L164->SetBinContent(27,32478.57); h_SL2L164->SetBinContent(28,32321.43); h_SL2L164->SetBinContent(29,32092.86); h_SL2L164->SetBinContent(30,30875); h_SL2L164->SetBinContent(31,29996.43); h_SL2L164->SetBinContent(32,30989.29); h_SL2L164->SetBinContent(33,33110.71); h_SL2L164->SetBinContent(34,33103.57); h_SL2L164->SetBinContent(36,32203.57); h_SL2L164->SetBinContent(37,38850); h_SL2L164->SetBinContent(38,36178.57); h_SL2L164->SetBinContent(39,37500); h_SL2L164->SetBinContent(40,72128.57); h_SL2L164->SetBinContent(41,96985.71); h_SL2L164->SetBinContent(42,40946.43); h_SL2L164->SetBinContent(43,40921.43); h_SL2L164->SetBinContent(44,39700); h_SL2L164->SetBinContent(45,31650); h_SL2L164->SetBinContent(46,30278.57); h_SL2L164->SetBinContent(47,29985.71); h_SL2L164->SetBinContent(48,29442.86); h_SL2L164->SetBinContent(49,29403.57); h_SL2L164->SetBinContent(50,28464.29); h_SL2L164->SetBinContent(51,30421.43); h_SL2L164->SetBinContent(52,33432.14); h_SL2L164->SetBinContent(53,35042.86); h_SL2L164->SetBinContent(54,36900); h_SL2L164->SetBinContent(55,35603.57); h_SL2L164->SetBinContent(56,29817.86); h_SL2L164->SetBinContent(57,23678.57); h_SL2L164->SetMaximum(128262.9); 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,23628.57); h_SL2L265->SetBinContent(2,34910.71); h_SL2L265->SetBinContent(3,39946.43); h_SL2L265->SetBinContent(4,45596.43); h_SL2L265->SetBinContent(5,46089.29); h_SL2L265->SetBinContent(6,44367.86); h_SL2L265->SetBinContent(7,43185.71); h_SL2L265->SetBinContent(8,37764.29); h_SL2L265->SetBinContent(9,41325); h_SL2L265->SetBinContent(10,42532.14); h_SL2L265->SetBinContent(11,44035.71); h_SL2L265->SetBinContent(12,43935.71); h_SL2L265->SetBinContent(13,41378.57); h_SL2L265->SetBinContent(14,40764.29); h_SL2L265->SetBinContent(15,39339.29); h_SL2L265->SetBinContent(16,40657.14); h_SL2L265->SetBinContent(17,38296.43); h_SL2L265->SetBinContent(18,37017.86); h_SL2L265->SetBinContent(19,34657.14); h_SL2L265->SetBinContent(20,35192.86); h_SL2L265->SetBinContent(21,35807.14); h_SL2L265->SetBinContent(22,35410.71); h_SL2L265->SetBinContent(23,35460.71); h_SL2L265->SetBinContent(24,34410.71); h_SL2L265->SetBinContent(25,33253.57); h_SL2L265->SetBinContent(26,32178.57); h_SL2L265->SetBinContent(27,31800); h_SL2L265->SetBinContent(28,31539.29); h_SL2L265->SetBinContent(29,30739.29); h_SL2L265->SetBinContent(30,30910.71); h_SL2L265->SetBinContent(31,29503.57); h_SL2L265->SetBinContent(32,30578.57); h_SL2L265->SetBinContent(33,30878.57); h_SL2L265->SetBinContent(34,31807.14); h_SL2L265->SetBinContent(35,30625); h_SL2L265->SetBinContent(36,30125); h_SL2L265->SetBinContent(37,32503.57); h_SL2L265->SetBinContent(38,33167.86); h_SL2L265->SetBinContent(39,33657.14); h_SL2L265->SetBinContent(40,35289.29); h_SL2L265->SetBinContent(41,34153.57); h_SL2L265->SetBinContent(42,33296.43); h_SL2L265->SetBinContent(43,32596.43); h_SL2L265->SetBinContent(44,32317.86); h_SL2L265->SetBinContent(45,30435.71); h_SL2L265->SetBinContent(46,29992.86); h_SL2L265->SetBinContent(47,28796.43); h_SL2L265->SetBinContent(48,28528.57); h_SL2L265->SetBinContent(49,28282.14); h_SL2L265->SetBinContent(50,28385.71); h_SL2L265->SetBinContent(51,27571.43); h_SL2L265->SetBinContent(52,31028.57); h_SL2L265->SetBinContent(53,33471.43); h_SL2L265->SetBinContent(54,34928.57); h_SL2L265->SetBinContent(55,35350); h_SL2L265->SetBinContent(56,31214.29); h_SL2L265->SetBinContent(57,28335.71); h_SL2L265->SetMaximum(111533.6); 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,27978.57); h_SL2L366->SetBinContent(2,35139.29); h_SL2L366->SetBinContent(3,43178.57); h_SL2L366->SetBinContent(4,44089.29); h_SL2L366->SetBinContent(5,44314.29); h_SL2L366->SetBinContent(6,42525); h_SL2L366->SetBinContent(7,39275); h_SL2L366->SetBinContent(8,38610.71); h_SL2L366->SetBinContent(9,40960.71); h_SL2L366->SetBinContent(10,42232.14); h_SL2L366->SetBinContent(11,43075); h_SL2L366->SetBinContent(12,42778.57); h_SL2L366->SetBinContent(13,38907.14); h_SL2L366->SetBinContent(14,39239.29); h_SL2L366->SetBinContent(15,38578.57); h_SL2L366->SetBinContent(16,38546.43); h_SL2L366->SetBinContent(17,37250); h_SL2L366->SetBinContent(18,34825); h_SL2L366->SetBinContent(19,34310.71); h_SL2L366->SetBinContent(20,34467.86); h_SL2L366->SetBinContent(21,34592.86); h_SL2L366->SetBinContent(22,34478.57); h_SL2L366->SetBinContent(23,34028.57); h_SL2L366->SetBinContent(24,32657.14); h_SL2L366->SetBinContent(25,31750); h_SL2L366->SetBinContent(26,31439.29); h_SL2L366->SetBinContent(27,31564.29); h_SL2L366->SetBinContent(28,30875); h_SL2L366->SetBinContent(29,30810.71); h_SL2L366->SetBinContent(30,29525); h_SL2L366->SetBinContent(31,29046.43); h_SL2L366->SetBinContent(32,29867.86); h_SL2L366->SetBinContent(33,30292.86); h_SL2L366->SetBinContent(34,31096.43); h_SL2L366->SetBinContent(35,29064.29); h_SL2L366->SetBinContent(36,31357.14); h_SL2L366->SetBinContent(37,32071.43); h_SL2L366->SetBinContent(38,32053.57); h_SL2L366->SetBinContent(39,32675); h_SL2L366->SetBinContent(40,32582.14); h_SL2L366->SetBinContent(41,32628.57); h_SL2L366->SetBinContent(42,31603.57); h_SL2L366->SetBinContent(43,31275); h_SL2L366->SetBinContent(44,29396.43); h_SL2L366->SetBinContent(45,29882.14); h_SL2L366->SetBinContent(46,29121.43); h_SL2L366->SetBinContent(47,28746.43); h_SL2L366->SetBinContent(48,27139.29); h_SL2L366->SetBinContent(49,28317.86); h_SL2L366->SetBinContent(50,27242.86); h_SL2L366->SetBinContent(51,28196.43); h_SL2L366->SetBinContent(52,31150); h_SL2L366->SetBinContent(53,33010.71); h_SL2L366->SetBinContent(54,34517.86); h_SL2L366->SetBinContent(55,33960.71); h_SL2L366->SetBinContent(56,27867.86); h_SL2L366->SetBinContent(57,25682.14); h_SL2L366->SetMaximum(111533.6); 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,33764.29); h_SL2L467->SetBinContent(3,38785.71); h_SL2L467->SetBinContent(4,43303.57); h_SL2L467->SetBinContent(5,43364.29); h_SL2L467->SetBinContent(6,41278.57); h_SL2L467->SetBinContent(7,40821.43); h_SL2L467->SetBinContent(8,36000); h_SL2L467->SetBinContent(9,39782.14); h_SL2L467->SetBinContent(10,40425); h_SL2L467->SetBinContent(11,41960.71); h_SL2L467->SetBinContent(12,42100); h_SL2L467->SetBinContent(13,39685.71); h_SL2L467->SetBinContent(14,38492.86); h_SL2L467->SetBinContent(15,37635.71); h_SL2L467->SetBinContent(16,38521.43); h_SL2L467->SetBinContent(17,36375); h_SL2L467->SetBinContent(18,35092.86); h_SL2L467->SetBinContent(19,33728.57); h_SL2L467->SetBinContent(20,34103.57); h_SL2L467->SetBinContent(21,34071.43); h_SL2L467->SetBinContent(22,33557.14); h_SL2L467->SetBinContent(23,33657.14); h_SL2L467->SetBinContent(24,32110.71); h_SL2L467->SetBinContent(25,31589.29); h_SL2L467->SetBinContent(26,30960.71); h_SL2L467->SetBinContent(27,31000); h_SL2L467->SetBinContent(28,30246.43); h_SL2L467->SetBinContent(29,30246.43); h_SL2L467->SetBinContent(30,30239.29); h_SL2L467->SetBinContent(31,28725); h_SL2L467->SetBinContent(32,28725); h_SL2L467->SetBinContent(33,29660.71); h_SL2L467->SetBinContent(34,30475); h_SL2L467->SetBinContent(35,29428.57); h_SL2L467->SetBinContent(36,29317.86); h_SL2L467->SetBinContent(37,31014.29); h_SL2L467->SetBinContent(38,31192.86); h_SL2L467->SetBinContent(39,31864.29); h_SL2L467->SetBinContent(40,31464.29); h_SL2L467->SetBinContent(41,31192.86); h_SL2L467->SetBinContent(42,31607.14); h_SL2L467->SetBinContent(43,30589.29); h_SL2L467->SetBinContent(44,30289.29); h_SL2L467->SetBinContent(45,29067.86); h_SL2L467->SetBinContent(46,28564.29); h_SL2L467->SetBinContent(47,28017.86); h_SL2L467->SetBinContent(48,27378.57); h_SL2L467->SetBinContent(49,26932.14); h_SL2L467->SetBinContent(50,27539.29); h_SL2L467->SetBinContent(51,26064.29); h_SL2L467->SetBinContent(52,28675); h_SL2L467->SetBinContent(53,30682.14); h_SL2L467->SetBinContent(54,33350); h_SL2L467->SetBinContent(55,32914.29); h_SL2L467->SetBinContent(56,30385.71); h_SL2L467->SetBinContent(57,25789.29); h_SL2L467->SetMaximum(111533.6); 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 7365"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }