void RatesPerCell_Removing_noisy_cells_run_7490_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:48:02 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-14931.17,67.5,134380.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7490",60,0,60); h_SL1L160->SetBinContent(1,39514.29); h_SL1L160->SetBinContent(2,41214.29); h_SL1L160->SetBinContent(3,42028.57); h_SL1L160->SetBinContent(4,41842.86); h_SL1L160->SetBinContent(5,40278.57); h_SL1L160->SetBinContent(6,39750); h_SL1L160->SetBinContent(7,39692.86); h_SL1L160->SetBinContent(8,42642.86); h_SL1L160->SetBinContent(9,41514.29); h_SL1L160->SetBinContent(10,40421.43); h_SL1L160->SetBinContent(11,41535.71); h_SL1L160->SetBinContent(12,41321.43); h_SL1L160->SetBinContent(13,66142.86); h_SL1L160->SetBinContent(14,79100); h_SL1L160->SetBinContent(15,77778.57); h_SL1L160->SetBinContent(16,40657.14); h_SL1L160->SetBinContent(17,39157.14); h_SL1L160->SetBinContent(18,42621.43); h_SL1L160->SetBinContent(19,42485.71); h_SL1L160->SetBinContent(20,42221.43); h_SL1L160->SetBinContent(21,41328.57); h_SL1L160->SetBinContent(22,40171.43); h_SL1L160->SetBinContent(23,37421.43); h_SL1L160->SetBinContent(24,35200); h_SL1L160->SetBinContent(25,34678.57); h_SL1L160->SetBinContent(26,34850); h_SL1L160->SetBinContent(27,34521.43); h_SL1L160->SetBinContent(28,35750); h_SL1L160->SetBinContent(29,36107.14); h_SL1L160->SetBinContent(30,35478.57); h_SL1L160->SetBinContent(31,34814.29); h_SL1L160->SetBinContent(32,32285.71); h_SL1L160->SetBinContent(33,45850); h_SL1L160->SetBinContent(34,47107.14); h_SL1L160->SetBinContent(35,46621.43); h_SL1L160->SetBinContent(36,47207.14); h_SL1L160->SetBinContent(37,47821.43); h_SL1L160->SetBinContent(38,47885.71); h_SL1L160->SetBinContent(39,47300); h_SL1L160->SetBinContent(41,34071.43); h_SL1L160->SetBinContent(42,35192.86); h_SL1L160->SetBinContent(43,33557.14); h_SL1L160->SetBinContent(44,32314.29); h_SL1L160->SetBinContent(45,31557.14); h_SL1L160->SetBinContent(46,31350); h_SL1L160->SetBinContent(47,29828.57); h_SL1L160->SetBinContent(48,29835.71); h_SL1L160->SetBinContent(49,32178.57); h_SL1L160->SetBinContent(50,33171.43); h_SL1L160->SetBinContent(51,32171.43); h_SL1L160->SetBinContent(52,32242.86); h_SL1L160->SetBinContent(53,31921.43); h_SL1L160->SetBinContent(54,32350); h_SL1L160->SetBinContent(55,31221.43); h_SL1L160->SetBinContent(56,33114.29); h_SL1L160->SetMaximum(119449.3); 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,39000); h_SL1L261->SetBinContent(2,39985.71); h_SL1L261->SetBinContent(3,41414.29); h_SL1L261->SetBinContent(4,42585.71); h_SL1L261->SetBinContent(5,41635.71); h_SL1L261->SetBinContent(6,43400); h_SL1L261->SetBinContent(7,42850); h_SL1L261->SetBinContent(8,45735.71); h_SL1L261->SetBinContent(9,46021.43); h_SL1L261->SetBinContent(10,43514.29); h_SL1L261->SetBinContent(11,45128.57); h_SL1L261->SetBinContent(12,44292.86); h_SL1L261->SetBinContent(13,44321.43); h_SL1L261->SetBinContent(14,50650); h_SL1L261->SetBinContent(15,52450); h_SL1L261->SetBinContent(16,46121.43); h_SL1L261->SetBinContent(17,46264.29); h_SL1L261->SetBinContent(18,48435.71); h_SL1L261->SetBinContent(19,50164.29); h_SL1L261->SetBinContent(20,49242.86); h_SL1L261->SetBinContent(21,49542.86); h_SL1L261->SetBinContent(22,47892.86); h_SL1L261->SetBinContent(23,46128.57); h_SL1L261->SetBinContent(24,46321.43); h_SL1L261->SetBinContent(25,46842.86); h_SL1L261->SetBinContent(26,43242.86); h_SL1L261->SetBinContent(27,42771.43); h_SL1L261->SetBinContent(28,45628.57); h_SL1L261->SetBinContent(29,47285.71); h_SL1L261->SetBinContent(30,47514.29); h_SL1L261->SetBinContent(31,46492.86); h_SL1L261->SetBinContent(32,45650); h_SL1L261->SetBinContent(33,44371.43); h_SL1L261->SetBinContent(34,46614.29); h_SL1L261->SetBinContent(35,44828.57); h_SL1L261->SetBinContent(36,46078.57); h_SL1L261->SetBinContent(37,47057.14); h_SL1L261->SetBinContent(38,46942.86); h_SL1L261->SetBinContent(39,48864.29); h_SL1L261->SetBinContent(40,45650); h_SL1L261->SetBinContent(41,46014.29); h_SL1L261->SetBinContent(42,46850); h_SL1L261->SetBinContent(43,46557.14); h_SL1L261->SetBinContent(44,43164.29); h_SL1L261->SetBinContent(45,43835.71); h_SL1L261->SetBinContent(46,44442.86); h_SL1L261->SetBinContent(47,45071.43); h_SL1L261->SetBinContent(48,45000); h_SL1L261->SetBinContent(49,46021.43); h_SL1L261->SetBinContent(50,45192.86); h_SL1L261->SetBinContent(51,45778.57); h_SL1L261->SetBinContent(52,43342.86); h_SL1L261->SetBinContent(53,45721.43); h_SL1L261->SetBinContent(54,43314.29); h_SL1L261->SetBinContent(55,44107.14); h_SL1L261->SetBinContent(56,43328.57); h_SL1L261->SetMaximum(103869.6); 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,36935.71); h_SL1L362->SetBinContent(2,38828.57); h_SL1L362->SetBinContent(3,41871.43); h_SL1L362->SetBinContent(4,40821.43); h_SL1L362->SetBinContent(5,43178.57); h_SL1L362->SetBinContent(6,42571.43); h_SL1L362->SetBinContent(7,42842.86); h_SL1L362->SetBinContent(8,44592.86); h_SL1L362->SetBinContent(9,42478.57); h_SL1L362->SetBinContent(10,43300); h_SL1L362->SetBinContent(11,43700); h_SL1L362->SetBinContent(12,46557.14); h_SL1L362->SetBinContent(13,43907.14); h_SL1L362->SetBinContent(14,52528.57); h_SL1L362->SetBinContent(15,69028.57); h_SL1L362->SetBinContent(16,46771.43); h_SL1L362->SetBinContent(17,47350); h_SL1L362->SetBinContent(18,48964.29); h_SL1L362->SetBinContent(19,49578.57); h_SL1L362->SetBinContent(20,49378.57); h_SL1L362->SetBinContent(21,48350); h_SL1L362->SetBinContent(22,46064.29); h_SL1L362->SetBinContent(23,45507.14); h_SL1L362->SetBinContent(24,44671.43); h_SL1L362->SetBinContent(25,44107.14); h_SL1L362->SetBinContent(26,41378.57); h_SL1L362->SetBinContent(27,43507.14); h_SL1L362->SetBinContent(28,45307.14); h_SL1L362->SetBinContent(29,46214.29); h_SL1L362->SetBinContent(30,46035.71); h_SL1L362->SetBinContent(31,46235.71); h_SL1L362->SetBinContent(32,44235.71); h_SL1L362->SetBinContent(33,45564.29); h_SL1L362->SetBinContent(34,44535.71); h_SL1L362->SetBinContent(35,44264.29); h_SL1L362->SetBinContent(36,45528.57); h_SL1L362->SetBinContent(37,47021.43); h_SL1L362->SetBinContent(38,45900); h_SL1L362->SetBinContent(39,45335.71); h_SL1L362->SetBinContent(40,45528.57); h_SL1L362->SetBinContent(41,45900); h_SL1L362->SetBinContent(42,46214.29); h_SL1L362->SetBinContent(43,44478.57); h_SL1L362->SetBinContent(44,42500); h_SL1L362->SetBinContent(45,44192.86); h_SL1L362->SetBinContent(46,43421.43); h_SL1L362->SetBinContent(47,43700); h_SL1L362->SetBinContent(48,43607.14); h_SL1L362->SetBinContent(49,42964.29); h_SL1L362->SetBinContent(50,43957.14); h_SL1L362->SetBinContent(51,43750); h_SL1L362->SetBinContent(52,42885.71); h_SL1L362->SetBinContent(53,42892.86); h_SL1L362->SetBinContent(54,42842.86); h_SL1L362->SetBinContent(55,42750); h_SL1L362->SetBinContent(56,43957.14); h_SL1L362->SetMaximum(103869.6); 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,29685.71); h_SL1L463->SetBinContent(3,29578.57); h_SL1L463->SetBinContent(4,28464.29); h_SL1L463->SetBinContent(5,27857.14); h_SL1L463->SetBinContent(6,27307.14); h_SL1L463->SetBinContent(7,28614.29); h_SL1L463->SetBinContent(8,30000); h_SL1L463->SetBinContent(9,30814.29); h_SL1L463->SetBinContent(10,31685.71); h_SL1L463->SetBinContent(11,34942.86); h_SL1L463->SetBinContent(12,36071.43); h_SL1L463->SetBinContent(13,37257.14); h_SL1L463->SetBinContent(14,90321.43); h_SL1L463->SetBinContent(15,74421.43); h_SL1L463->SetBinContent(16,72271.43); h_SL1L463->SetBinContent(17,31635.71); h_SL1L463->SetBinContent(18,32742.86); h_SL1L463->SetBinContent(19,33235.71); h_SL1L463->SetBinContent(20,32278.57); h_SL1L463->SetBinContent(21,31914.29); h_SL1L463->SetBinContent(22,30692.86); h_SL1L463->SetBinContent(23,30085.71); h_SL1L463->SetBinContent(24,28528.57); h_SL1L463->SetBinContent(25,25414.29); h_SL1L463->SetBinContent(26,26150); h_SL1L463->SetBinContent(27,25464.29); h_SL1L463->SetBinContent(28,27207.14); h_SL1L463->SetBinContent(29,26328.57); h_SL1L463->SetBinContent(30,27071.43); h_SL1L463->SetBinContent(31,27514.29); h_SL1L463->SetBinContent(32,25314.29); h_SL1L463->SetBinContent(33,23135.71); h_SL1L463->SetBinContent(34,27400); h_SL1L463->SetBinContent(35,27985.71); h_SL1L463->SetBinContent(36,24757.14); h_SL1L463->SetBinContent(37,3428.571); h_SL1L463->SetBinContent(38,35.71429); h_SL1L463->SetBinContent(41,21971.43); h_SL1L463->SetBinContent(42,22950); h_SL1L463->SetBinContent(43,23542.86); h_SL1L463->SetBinContent(44,22857.14); h_SL1L463->SetBinContent(45,20935.71); h_SL1L463->SetBinContent(46,21685.71); h_SL1L463->SetBinContent(47,20957.14); h_SL1L463->SetBinContent(48,20342.86); h_SL1L463->SetBinContent(49,18942.86); h_SL1L463->SetBinContent(50,20021.43); h_SL1L463->SetBinContent(51,20100); h_SL1L463->SetBinContent(52,21085.71); h_SL1L463->SetBinContent(53,20571.43); h_SL1L463->SetBinContent(54,20357.14); h_SL1L463->SetBinContent(56,21992.86); h_SL1L463->SetMaximum(103869.6); 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 7490"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }