void RatesPerCell_Removing_noisy_cells_run_7247_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:32:35 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-21858.34,67.5,196725); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7247",60,0,60); h_SL1L160->SetBinContent(1,35228.57); h_SL1L160->SetBinContent(2,31532.14); h_SL1L160->SetBinContent(3,30014.29); h_SL1L160->SetBinContent(4,29864.29); h_SL1L160->SetBinContent(5,26953.57); h_SL1L160->SetBinContent(6,27942.86); h_SL1L160->SetBinContent(7,27428.57); h_SL1L160->SetBinContent(8,28010.71); h_SL1L160->SetBinContent(9,28646.43); h_SL1L160->SetBinContent(10,28078.57); h_SL1L160->SetBinContent(11,28310.71); h_SL1L160->SetBinContent(12,27050); h_SL1L160->SetBinContent(13,27585.71); h_SL1L160->SetBinContent(14,40182.14); h_SL1L160->SetBinContent(15,39396.43); h_SL1L160->SetBinContent(16,22632.14); h_SL1L160->SetBinContent(17,21700); h_SL1L160->SetBinContent(18,21339.29); h_SL1L160->SetBinContent(19,24892.86); h_SL1L160->SetBinContent(20,24382.14); h_SL1L160->SetBinContent(21,26710.71); h_SL1L160->SetBinContent(22,27160.71); h_SL1L160->SetBinContent(23,26596.43); h_SL1L160->SetBinContent(24,25335.71); h_SL1L160->SetBinContent(25,31760.71); h_SL1L160->SetBinContent(26,46564.29); h_SL1L160->SetBinContent(27,58164.29); h_SL1L160->SetBinContent(28,68414.28); h_SL1L160->SetBinContent(29,67121.43); h_SL1L160->SetBinContent(30,55335.71); h_SL1L160->SetBinContent(31,36328.57); h_SL1L160->SetBinContent(32,23753.57); h_SL1L160->SetBinContent(33,42796.43); h_SL1L160->SetBinContent(34,39921.43); h_SL1L160->SetBinContent(35,36442.86); h_SL1L160->SetBinContent(36,34257.14); h_SL1L160->SetBinContent(37,34028.57); h_SL1L160->SetBinContent(38,32846.43); h_SL1L160->SetBinContent(39,30964.29); h_SL1L160->SetBinContent(41,17207.14); h_SL1L160->SetBinContent(42,17457.14); h_SL1L160->SetBinContent(43,17300); h_SL1L160->SetBinContent(44,16285.71); h_SL1L160->SetBinContent(45,14635.71); h_SL1L160->SetBinContent(46,13210.71); h_SL1L160->SetBinContent(47,14110.71); h_SL1L160->SetBinContent(48,13671.43); h_SL1L160->SetBinContent(49,13996.43); h_SL1L160->SetBinContent(50,14778.57); h_SL1L160->SetBinContent(51,13550); h_SL1L160->SetBinContent(52,12900); h_SL1L160->SetBinContent(53,12842.86); h_SL1L160->SetBinContent(54,12550); h_SL1L160->SetBinContent(55,13328.57); h_SL1L160->SetBinContent(56,14592.86); h_SL1L160->SetMaximum(174866.7); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,40867.86); h_SL1L261->SetBinContent(2,36457.14); h_SL1L261->SetBinContent(3,35057.14); h_SL1L261->SetBinContent(4,35589.29); h_SL1L261->SetBinContent(5,35517.86); h_SL1L261->SetBinContent(6,36821.43); h_SL1L261->SetBinContent(7,36650); h_SL1L261->SetBinContent(8,36925); h_SL1L261->SetBinContent(9,38053.57); h_SL1L261->SetBinContent(10,36428.57); h_SL1L261->SetBinContent(11,37039.29); h_SL1L261->SetBinContent(12,37450); h_SL1L261->SetBinContent(13,37825); h_SL1L261->SetBinContent(14,38228.57); h_SL1L261->SetBinContent(15,36692.86); h_SL1L261->SetBinContent(16,35675); h_SL1L261->SetBinContent(17,33632.14); h_SL1L261->SetBinContent(18,29982.14); h_SL1L261->SetBinContent(19,33507.14); h_SL1L261->SetBinContent(20,36592.86); h_SL1L261->SetBinContent(21,39846.43); h_SL1L261->SetBinContent(22,41592.86); h_SL1L261->SetBinContent(23,42603.57); h_SL1L261->SetBinContent(24,44757.14); h_SL1L261->SetBinContent(25,50157.14); h_SL1L261->SetBinContent(26,70403.57); h_SL1L261->SetBinContent(27,89092.86); h_SL1L261->SetBinContent(28,109367.9); h_SL1L261->SetBinContent(29,132225); h_SL1L261->SetBinContent(30,123985.7); h_SL1L261->SetBinContent(31,90325); h_SL1L261->SetBinContent(32,58864.29); h_SL1L261->SetBinContent(33,43778.57); h_SL1L261->SetBinContent(34,39767.86); h_SL1L261->SetBinContent(35,36764.29); h_SL1L261->SetBinContent(36,34300); h_SL1L261->SetBinContent(37,33575); h_SL1L261->SetBinContent(38,32139.29); h_SL1L261->SetBinContent(39,31000); h_SL1L261->SetBinContent(40,29310.71); h_SL1L261->SetBinContent(41,28814.29); h_SL1L261->SetBinContent(42,30064.29); h_SL1L261->SetBinContent(43,30400); h_SL1L261->SetBinContent(44,29871.43); h_SL1L261->SetBinContent(45,27875); h_SL1L261->SetBinContent(46,25196.43); h_SL1L261->SetBinContent(47,24885.71); h_SL1L261->SetBinContent(48,24985.71); h_SL1L261->SetBinContent(49,25178.57); h_SL1L261->SetBinContent(50,25503.57); h_SL1L261->SetBinContent(51,24607.14); h_SL1L261->SetBinContent(52,22614.29); h_SL1L261->SetBinContent(53,21635.71); h_SL1L261->SetBinContent(54,20567.86); h_SL1L261->SetBinContent(55,21607.14); h_SL1L261->SetBinContent(56,22442.86); h_SL1L261->SetMaximum(152058.8); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,36860.71); h_SL1L362->SetBinContent(2,34850); h_SL1L362->SetBinContent(3,34710.71); h_SL1L362->SetBinContent(4,34578.57); h_SL1L362->SetBinContent(5,34092.86); h_SL1L362->SetBinContent(6,36496.43); h_SL1L362->SetBinContent(7,35335.71); h_SL1L362->SetBinContent(8,36178.57); h_SL1L362->SetBinContent(9,36853.57); h_SL1L362->SetBinContent(10,35925); h_SL1L362->SetBinContent(11,35825); h_SL1L362->SetBinContent(12,36900); h_SL1L362->SetBinContent(13,36514.29); h_SL1L362->SetBinContent(14,36764.29); h_SL1L362->SetBinContent(15,35414.29); h_SL1L362->SetBinContent(16,33225); h_SL1L362->SetBinContent(17,30821.43); h_SL1L362->SetBinContent(18,30282.14); h_SL1L362->SetBinContent(19,34903.57); h_SL1L362->SetBinContent(20,36500); h_SL1L362->SetBinContent(21,39946.43); h_SL1L362->SetBinContent(22,41217.86); h_SL1L362->SetBinContent(23,42307.14); h_SL1L362->SetBinContent(24,45314.29); h_SL1L362->SetBinContent(25,58667.86); h_SL1L362->SetBinContent(26,78342.86); h_SL1L362->SetBinContent(27,100382.1); h_SL1L362->SetBinContent(28,124589.3); h_SL1L362->SetBinContent(29,130214.3); h_SL1L362->SetBinContent(30,106121.4); h_SL1L362->SetBinContent(31,73828.57); h_SL1L362->SetBinContent(32,44760.71); h_SL1L362->SetBinContent(33,40314.29); h_SL1L362->SetBinContent(34,37971.43); h_SL1L362->SetBinContent(35,34428.57); h_SL1L362->SetBinContent(36,32675); h_SL1L362->SetBinContent(37,32621.43); h_SL1L362->SetBinContent(38,31182.14); h_SL1L362->SetBinContent(39,28928.57); h_SL1L362->SetBinContent(40,27953.57); h_SL1L362->SetBinContent(41,28303.57); h_SL1L362->SetBinContent(42,29985.71); h_SL1L362->SetBinContent(43,28928.57); h_SL1L362->SetBinContent(44,28864.29); h_SL1L362->SetBinContent(45,25421.43); h_SL1L362->SetBinContent(46,23964.29); h_SL1L362->SetBinContent(47,24289.29); h_SL1L362->SetBinContent(48,23660.71); h_SL1L362->SetBinContent(49,24275); h_SL1L362->SetBinContent(50,24757.14); h_SL1L362->SetBinContent(51,22828.57); h_SL1L362->SetBinContent(52,20900); h_SL1L362->SetBinContent(53,21003.57); h_SL1L362->SetBinContent(54,19528.57); h_SL1L362->SetBinContent(55,20735.71); h_SL1L362->SetBinContent(56,21228.57); h_SL1L362->SetMaximum(152058.8); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,29046.43); h_SL1L463->SetBinContent(3,25378.57); h_SL1L463->SetBinContent(4,24328.57); h_SL1L463->SetBinContent(5,22946.43); h_SL1L463->SetBinContent(6,24760.71); h_SL1L463->SetBinContent(7,23589.29); h_SL1L463->SetBinContent(8,25142.86); h_SL1L463->SetBinContent(9,27682.14); h_SL1L463->SetBinContent(10,28500); h_SL1L463->SetBinContent(11,29307.14); h_SL1L463->SetBinContent(12,29789.29); h_SL1L463->SetBinContent(13,30103.57); h_SL1L463->SetBinContent(14,29710.71); h_SL1L463->SetBinContent(15,50571.43); h_SL1L463->SetBinContent(16,32600); h_SL1L463->SetBinContent(17,23103.57); h_SL1L463->SetBinContent(18,19864.29); h_SL1L463->SetBinContent(19,21882.14); h_SL1L463->SetBinContent(20,23042.86); h_SL1L463->SetBinContent(21,24925); h_SL1L463->SetBinContent(22,24885.71); h_SL1L463->SetBinContent(23,24689.29); h_SL1L463->SetBinContent(24,26760.71); h_SL1L463->SetBinContent(25,27425); h_SL1L463->SetBinContent(26,44457.14); h_SL1L463->SetBinContent(27,55739.29); h_SL1L463->SetBinContent(28,65678.57); h_SL1L463->SetBinContent(29,62492.86); h_SL1L463->SetBinContent(30,61832.14); h_SL1L463->SetBinContent(31,41360.71); h_SL1L463->SetBinContent(32,28353.57); h_SL1L463->SetBinContent(33,22742.86); h_SL1L463->SetBinContent(34,25057.14); h_SL1L463->SetBinContent(35,23296.43); h_SL1L463->SetBinContent(36,20635.71); h_SL1L463->SetBinContent(37,7.142857); h_SL1L463->SetBinContent(40,3.571429); h_SL1L463->SetBinContent(41,16421.43); h_SL1L463->SetBinContent(42,17653.57); h_SL1L463->SetBinContent(43,18175); h_SL1L463->SetBinContent(44,18782.14); h_SL1L463->SetBinContent(45,16585.71); h_SL1L463->SetBinContent(46,15646.43); h_SL1L463->SetBinContent(47,14992.86); h_SL1L463->SetBinContent(48,14782.14); h_SL1L463->SetBinContent(49,15150); h_SL1L463->SetBinContent(50,16214.29); h_SL1L463->SetBinContent(51,14557.14); h_SL1L463->SetBinContent(52,13996.43); h_SL1L463->SetBinContent(53,12592.86); h_SL1L463->SetBinContent(54,12250); h_SL1L463->SetBinContent(56,12367.86); h_SL1L463->SetMaximum(152058.8); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 7247"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }