void RatesPerCell_Removing_noisy_cells_run_7440_SL1() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 18:35:06 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-6499.082,67.5,58491.73); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7440",60,0,60); h_SL1L160->SetBinContent(1,23714.29); h_SL1L160->SetBinContent(2,23892.86); h_SL1L160->SetBinContent(3,23292.86); h_SL1L160->SetBinContent(4,21300); h_SL1L160->SetBinContent(5,19850); h_SL1L160->SetBinContent(6,20442.86); h_SL1L160->SetBinContent(7,19500); h_SL1L160->SetBinContent(8,20785.71); h_SL1L160->SetBinContent(9,20107.14); h_SL1L160->SetBinContent(10,20928.57); h_SL1L160->SetBinContent(11,20664.29); h_SL1L160->SetBinContent(12,19571.43); h_SL1L160->SetBinContent(13,20221.43); h_SL1L160->SetBinContent(14,30635.71); h_SL1L160->SetBinContent(15,28700); h_SL1L160->SetBinContent(16,17664.29); h_SL1L160->SetBinContent(17,17842.86); h_SL1L160->SetBinContent(18,18707.14); h_SL1L160->SetBinContent(19,18328.57); h_SL1L160->SetBinContent(20,17657.14); h_SL1L160->SetBinContent(21,17578.57); h_SL1L160->SetBinContent(22,17692.86); h_SL1L160->SetBinContent(23,16892.86); h_SL1L160->SetBinContent(24,14592.86); h_SL1L160->SetBinContent(25,14207.14); h_SL1L160->SetBinContent(26,15814.29); h_SL1L160->SetBinContent(27,14578.57); h_SL1L160->SetBinContent(28,14950); h_SL1L160->SetBinContent(29,15592.86); h_SL1L160->SetBinContent(30,14935.71); h_SL1L160->SetBinContent(31,14021.43); h_SL1L160->SetBinContent(32,14407.14); h_SL1L160->SetBinContent(33,34792.86); h_SL1L160->SetBinContent(34,36078.57); h_SL1L160->SetBinContent(35,35485.71); h_SL1L160->SetBinContent(36,35500); h_SL1L160->SetBinContent(37,36900); h_SL1L160->SetBinContent(38,37492.86); h_SL1L160->SetBinContent(39,35492.86); h_SL1L160->SetBinContent(41,13921.43); h_SL1L160->SetBinContent(42,13685.71); h_SL1L160->SetBinContent(43,13850); h_SL1L160->SetBinContent(44,13214.29); h_SL1L160->SetBinContent(45,13121.43); h_SL1L160->SetBinContent(46,12350); h_SL1L160->SetBinContent(47,12892.86); h_SL1L160->SetBinContent(48,11921.43); h_SL1L160->SetBinContent(49,13392.86); h_SL1L160->SetBinContent(50,14050); h_SL1L160->SetBinContent(51,13464.29); h_SL1L160->SetBinContent(52,14107.14); h_SL1L160->SetBinContent(53,13978.57); h_SL1L160->SetBinContent(54,13771.43); h_SL1L160->SetBinContent(55,13278.57); h_SL1L160->SetBinContent(56,16064.29); h_SL1L160->SetMaximum(51992.65); 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,29585.71); h_SL1L261->SetBinContent(2,30242.86); h_SL1L261->SetBinContent(3,30878.57); h_SL1L261->SetBinContent(4,33592.86); h_SL1L261->SetBinContent(5,32271.43); h_SL1L261->SetBinContent(6,33864.29); h_SL1L261->SetBinContent(7,34307.14); h_SL1L261->SetBinContent(8,34814.29); h_SL1L261->SetBinContent(9,34935.71); h_SL1L261->SetBinContent(10,34564.29); h_SL1L261->SetBinContent(11,35535.71); h_SL1L261->SetBinContent(12,35935.71); h_SL1L261->SetBinContent(13,35314.29); h_SL1L261->SetBinContent(14,35657.14); h_SL1L261->SetBinContent(15,35885.71); h_SL1L261->SetBinContent(16,35042.86); h_SL1L261->SetBinContent(17,35578.57); h_SL1L261->SetBinContent(18,38007.14); h_SL1L261->SetBinContent(19,38064.29); h_SL1L261->SetBinContent(20,38014.29); h_SL1L261->SetBinContent(21,38721.43); h_SL1L261->SetBinContent(22,38021.43); h_SL1L261->SetBinContent(23,35792.86); h_SL1L261->SetBinContent(24,35750); h_SL1L261->SetBinContent(25,36750); h_SL1L261->SetBinContent(26,34157.14); h_SL1L261->SetBinContent(27,34314.29); h_SL1L261->SetBinContent(28,34685.71); h_SL1L261->SetBinContent(29,37150); h_SL1L261->SetBinContent(30,37778.57); h_SL1L261->SetBinContent(31,37157.14); h_SL1L261->SetBinContent(32,36885.71); h_SL1L261->SetBinContent(33,36385.71); h_SL1L261->SetBinContent(34,35428.57); h_SL1L261->SetBinContent(35,34814.29); h_SL1L261->SetBinContent(36,34921.43); h_SL1L261->SetBinContent(37,36542.86); h_SL1L261->SetBinContent(38,37407.14); h_SL1L261->SetBinContent(39,36542.86); h_SL1L261->SetBinContent(40,36507.14); h_SL1L261->SetBinContent(41,36828.57); h_SL1L261->SetBinContent(42,37000); h_SL1L261->SetBinContent(43,36985.71); h_SL1L261->SetBinContent(44,34021.43); h_SL1L261->SetBinContent(45,35635.71); h_SL1L261->SetBinContent(46,36614.29); h_SL1L261->SetBinContent(47,36835.71); h_SL1L261->SetBinContent(48,34971.43); h_SL1L261->SetBinContent(49,36435.71); h_SL1L261->SetBinContent(50,36814.29); h_SL1L261->SetBinContent(51,36864.29); h_SL1L261->SetBinContent(52,35650); h_SL1L261->SetBinContent(53,36621.43); h_SL1L261->SetBinContent(54,37121.43); h_SL1L261->SetBinContent(55,35271.43); h_SL1L261->SetBinContent(56,35464.29); h_SL1L261->SetMaximum(45211.43); 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,28557.14); h_SL1L362->SetBinContent(2,29935.71); h_SL1L362->SetBinContent(3,30878.57); h_SL1L362->SetBinContent(4,31457.14); h_SL1L362->SetBinContent(5,32235.71); h_SL1L362->SetBinContent(6,33207.14); h_SL1L362->SetBinContent(7,33571.43); h_SL1L362->SetBinContent(8,36228.57); h_SL1L362->SetBinContent(9,33692.86); h_SL1L362->SetBinContent(10,34642.86); h_SL1L362->SetBinContent(11,35107.14); h_SL1L362->SetBinContent(12,36485.71); h_SL1L362->SetBinContent(13,34778.57); h_SL1L362->SetBinContent(14,34750); h_SL1L362->SetBinContent(15,34100); h_SL1L362->SetBinContent(16,34835.71); h_SL1L362->SetBinContent(17,35414.29); h_SL1L362->SetBinContent(18,37985.71); h_SL1L362->SetBinContent(19,37607.14); h_SL1L362->SetBinContent(20,38950); h_SL1L362->SetBinContent(21,38092.86); h_SL1L362->SetBinContent(22,36064.29); h_SL1L362->SetBinContent(23,34707.14); h_SL1L362->SetBinContent(24,34721.43); h_SL1L362->SetBinContent(25,34314.29); h_SL1L362->SetBinContent(26,33378.57); h_SL1L362->SetBinContent(27,34250); h_SL1L362->SetBinContent(28,36414.29); h_SL1L362->SetBinContent(29,36578.57); h_SL1L362->SetBinContent(30,36978.57); h_SL1L362->SetBinContent(31,36385.71); h_SL1L362->SetBinContent(32,35135.71); h_SL1L362->SetBinContent(33,35157.14); h_SL1L362->SetBinContent(34,35014.29); h_SL1L362->SetBinContent(35,34307.14); h_SL1L362->SetBinContent(36,34078.57); h_SL1L362->SetBinContent(37,36700); h_SL1L362->SetBinContent(38,35900); h_SL1L362->SetBinContent(39,36328.57); h_SL1L362->SetBinContent(40,36178.57); h_SL1L362->SetBinContent(41,37285.71); h_SL1L362->SetBinContent(42,35442.86); h_SL1L362->SetBinContent(43,35485.71); h_SL1L362->SetBinContent(44,33707.14); h_SL1L362->SetBinContent(45,35707.14); h_SL1L362->SetBinContent(46,35478.57); h_SL1L362->SetBinContent(47,34757.14); h_SL1L362->SetBinContent(48,35150); h_SL1L362->SetBinContent(49,35021.43); h_SL1L362->SetBinContent(50,35378.57); h_SL1L362->SetBinContent(51,34521.43); h_SL1L362->SetBinContent(52,35678.57); h_SL1L362->SetBinContent(53,35600); h_SL1L362->SetBinContent(54,34485.71); h_SL1L362->SetBinContent(55,35064.29); h_SL1L362->SetBinContent(56,34700); h_SL1L362->SetMaximum(45211.43); 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,19935.71); h_SL1L463->SetBinContent(3,19050); h_SL1L463->SetBinContent(4,18557.14); h_SL1L463->SetBinContent(5,17135.71); h_SL1L463->SetBinContent(6,17357.14); h_SL1L463->SetBinContent(7,18071.43); h_SL1L463->SetBinContent(8,19107.14); h_SL1L463->SetBinContent(9,19700); h_SL1L463->SetBinContent(10,20407.14); h_SL1L463->SetBinContent(11,22707.14); h_SL1L463->SetBinContent(12,23385.71); h_SL1L463->SetBinContent(13,23700); h_SL1L463->SetBinContent(14,24321.43); h_SL1L463->SetBinContent(15,39314.29); h_SL1L463->SetBinContent(16,26378.57); h_SL1L463->SetBinContent(17,21707.14); h_SL1L463->SetBinContent(18,20671.43); h_SL1L463->SetBinContent(19,20478.57); h_SL1L463->SetBinContent(20,19635.71); h_SL1L463->SetBinContent(21,19992.86); h_SL1L463->SetBinContent(22,19407.14); h_SL1L463->SetBinContent(23,17635.71); h_SL1L463->SetBinContent(24,18100); h_SL1L463->SetBinContent(25,15821.43); h_SL1L463->SetBinContent(26,16807.14); h_SL1L463->SetBinContent(27,16185.71); h_SL1L463->SetBinContent(28,15950); h_SL1L463->SetBinContent(29,16192.86); h_SL1L463->SetBinContent(30,16042.86); h_SL1L463->SetBinContent(31,15942.86); h_SL1L463->SetBinContent(32,14585.71); h_SL1L463->SetBinContent(33,14650); h_SL1L463->SetBinContent(34,15671.43); h_SL1L463->SetBinContent(35,15957.14); h_SL1L463->SetBinContent(36,14928.57); h_SL1L463->SetBinContent(41,13250); h_SL1L463->SetBinContent(42,13671.43); h_SL1L463->SetBinContent(43,13935.71); h_SL1L463->SetBinContent(44,13528.57); h_SL1L463->SetBinContent(45,13042.86); h_SL1L463->SetBinContent(46,13357.14); h_SL1L463->SetBinContent(47,12814.29); h_SL1L463->SetBinContent(48,12078.57); h_SL1L463->SetBinContent(49,12407.14); h_SL1L463->SetBinContent(50,12878.57); h_SL1L463->SetBinContent(51,12078.57); h_SL1L463->SetBinContent(52,13321.43); h_SL1L463->SetBinContent(53,13414.29); h_SL1L463->SetBinContent(54,12692.86); h_SL1L463->SetBinContent(56,13471.43); h_SL1L463->SetMaximum(45211.43); 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 7440"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }