void RatesPerCell_Removing_noisy_cells_run_7373_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:12:15 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9157.019,67.5,82413.17); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7373",60,0,60); h_SL1L160->SetBinContent(1,7035.714); h_SL1L160->SetBinContent(2,7300); h_SL1L160->SetBinContent(3,6871.429); h_SL1L160->SetBinContent(4,5850); h_SL1L160->SetBinContent(5,4635.714); h_SL1L160->SetBinContent(6,4771.429); h_SL1L160->SetBinContent(7,4535.714); h_SL1L160->SetBinContent(8,4485.714); h_SL1L160->SetBinContent(9,4278.571); h_SL1L160->SetBinContent(10,4221.429); h_SL1L160->SetBinContent(11,4728.571); h_SL1L160->SetBinContent(12,4128.571); h_SL1L160->SetBinContent(13,4621.429); h_SL1L160->SetBinContent(14,6142.857); h_SL1L160->SetBinContent(15,5700); h_SL1L160->SetBinContent(16,3992.857); h_SL1L160->SetBinContent(17,2650); h_SL1L160->SetBinContent(18,2642.857); h_SL1L160->SetBinContent(19,2928.571); h_SL1L160->SetBinContent(20,2921.428); h_SL1L160->SetBinContent(21,2742.857); h_SL1L160->SetBinContent(22,2614.286); h_SL1L160->SetBinContent(23,2485.714); h_SL1L160->SetBinContent(24,1957.143); h_SL1L160->SetBinContent(25,1728.571); h_SL1L160->SetBinContent(26,2357.143); h_SL1L160->SetBinContent(27,2007.143); h_SL1L160->SetBinContent(28,1935.714); h_SL1L160->SetBinContent(29,2142.857); h_SL1L160->SetBinContent(30,1892.857); h_SL1L160->SetBinContent(31,1800); h_SL1L160->SetBinContent(32,1642.857); h_SL1L160->SetBinContent(33,12542.86); h_SL1L160->SetBinContent(34,13007.14); h_SL1L160->SetBinContent(35,12235.71); h_SL1L160->SetBinContent(36,12535.71); h_SL1L160->SetBinContent(37,12942.86); h_SL1L160->SetBinContent(38,13128.57); h_SL1L160->SetBinContent(39,12864.29); h_SL1L160->SetBinContent(40,7.142857); h_SL1L160->SetBinContent(41,1842.857); h_SL1L160->SetBinContent(42,2078.571); h_SL1L160->SetBinContent(43,1921.429); h_SL1L160->SetBinContent(44,1742.857); h_SL1L160->SetBinContent(45,1521.429); h_SL1L160->SetBinContent(46,1278.571); h_SL1L160->SetBinContent(47,1542.857); h_SL1L160->SetBinContent(48,1335.714); h_SL1L160->SetBinContent(49,1557.143); h_SL1L160->SetBinContent(50,1807.143); h_SL1L160->SetBinContent(51,1842.857); h_SL1L160->SetBinContent(52,2064.286); h_SL1L160->SetBinContent(53,2064.286); h_SL1L160->SetBinContent(54,2007.143); h_SL1L160->SetBinContent(55,2150); h_SL1L160->SetBinContent(56,2764.286); h_SL1L160->SetMaximum(73256.15); 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,43685.71); h_SL1L261->SetBinContent(2,44457.14); h_SL1L261->SetBinContent(3,46014.29); h_SL1L261->SetBinContent(4,46664.29); h_SL1L261->SetBinContent(5,46828.57); h_SL1L261->SetBinContent(6,47028.57); h_SL1L261->SetBinContent(7,45128.57); h_SL1L261->SetBinContent(8,46435.71); h_SL1L261->SetBinContent(9,45935.71); h_SL1L261->SetBinContent(10,42392.86); h_SL1L261->SetBinContent(11,41407.14); h_SL1L261->SetBinContent(12,37928.57); h_SL1L261->SetBinContent(13,37400); h_SL1L261->SetBinContent(14,36292.86); h_SL1L261->SetBinContent(15,38407.14); h_SL1L261->SetBinContent(16,38271.43); h_SL1L261->SetBinContent(17,40771.43); h_SL1L261->SetBinContent(18,42964.29); h_SL1L261->SetBinContent(19,43828.57); h_SL1L261->SetBinContent(20,43528.57); h_SL1L261->SetBinContent(21,45607.14); h_SL1L261->SetBinContent(22,46221.43); h_SL1L261->SetBinContent(23,44778.57); h_SL1L261->SetBinContent(24,46114.29); h_SL1L261->SetBinContent(25,46235.71); h_SL1L261->SetBinContent(26,43007.14); h_SL1L261->SetBinContent(27,42314.29); h_SL1L261->SetBinContent(28,44657.14); h_SL1L261->SetBinContent(29,44914.29); h_SL1L261->SetBinContent(30,44935.71); h_SL1L261->SetBinContent(31,44828.57); h_SL1L261->SetBinContent(32,43864.29); h_SL1L261->SetBinContent(33,45021.43); h_SL1L261->SetBinContent(34,43050); h_SL1L261->SetBinContent(35,43350); h_SL1L261->SetBinContent(36,43742.86); h_SL1L261->SetBinContent(37,44428.57); h_SL1L261->SetBinContent(38,45092.86); h_SL1L261->SetBinContent(39,44635.71); h_SL1L261->SetBinContent(40,45571.43); h_SL1L261->SetBinContent(41,45835.71); h_SL1L261->SetBinContent(42,46628.57); h_SL1L261->SetBinContent(43,47950); h_SL1L261->SetBinContent(44,46535.71); h_SL1L261->SetBinContent(45,48164.29); h_SL1L261->SetBinContent(46,48735.71); h_SL1L261->SetBinContent(47,49892.86); h_SL1L261->SetBinContent(48,51307.14); h_SL1L261->SetBinContent(49,51585.71); h_SL1L261->SetBinContent(50,50492.86); h_SL1L261->SetBinContent(51,51257.14); h_SL1L261->SetBinContent(52,52900); h_SL1L261->SetBinContent(53,53807.14); h_SL1L261->SetBinContent(54,54592.86); h_SL1L261->SetBinContent(55,55392.86); h_SL1L261->SetBinContent(56,54642.86); h_SL1L261->SetMaximum(63701.78); 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,41428.57); h_SL1L362->SetBinContent(2,44821.43); h_SL1L362->SetBinContent(3,45485.71); h_SL1L362->SetBinContent(4,44914.29); h_SL1L362->SetBinContent(5,45585.71); h_SL1L362->SetBinContent(6,45250); h_SL1L362->SetBinContent(7,44057.14); h_SL1L362->SetBinContent(8,44792.86); h_SL1L362->SetBinContent(9,42578.57); h_SL1L362->SetBinContent(10,40957.14); h_SL1L362->SetBinContent(11,38078.57); h_SL1L362->SetBinContent(12,35678.57); h_SL1L362->SetBinContent(13,35521.43); h_SL1L362->SetBinContent(14,36785.71); h_SL1L362->SetBinContent(15,37314.29); h_SL1L362->SetBinContent(16,38207.14); h_SL1L362->SetBinContent(17,41150); h_SL1L362->SetBinContent(18,41957.14); h_SL1L362->SetBinContent(19,42385.71); h_SL1L362->SetBinContent(20,43878.57); h_SL1L362->SetBinContent(21,44242.86); h_SL1L362->SetBinContent(22,44271.43); h_SL1L362->SetBinContent(23,44507.14); h_SL1L362->SetBinContent(24,45142.86); h_SL1L362->SetBinContent(25,42778.57); h_SL1L362->SetBinContent(26,40635.71); h_SL1L362->SetBinContent(27,41721.43); h_SL1L362->SetBinContent(28,44200); h_SL1L362->SetBinContent(29,42742.86); h_SL1L362->SetBinContent(30,43414.29); h_SL1L362->SetBinContent(31,43121.43); h_SL1L362->SetBinContent(32,43042.86); h_SL1L362->SetBinContent(33,42028.57); h_SL1L362->SetBinContent(34,42185.71); h_SL1L362->SetBinContent(35,42485.71); h_SL1L362->SetBinContent(36,43635.71); h_SL1L362->SetBinContent(37,43878.57); h_SL1L362->SetBinContent(38,43442.86); h_SL1L362->SetBinContent(39,43600); h_SL1L362->SetBinContent(40,43850); h_SL1L362->SetBinContent(41,45228.57); h_SL1L362->SetBinContent(42,46421.43); h_SL1L362->SetBinContent(43,46414.29); h_SL1L362->SetBinContent(44,46171.43); h_SL1L362->SetBinContent(45,46528.57); h_SL1L362->SetBinContent(46,48457.14); h_SL1L362->SetBinContent(47,48564.29); h_SL1L362->SetBinContent(48,49442.86); h_SL1L362->SetBinContent(49,50557.14); h_SL1L362->SetBinContent(50,49378.57); h_SL1L362->SetBinContent(51,50985.71); h_SL1L362->SetBinContent(52,52435.71); h_SL1L362->SetBinContent(53,52464.29); h_SL1L362->SetBinContent(54,53514.29); h_SL1L362->SetBinContent(55,54707.14); h_SL1L362->SetBinContent(56,52950); h_SL1L362->SetMaximum(63701.78); 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,35457.14); h_SL1L463->SetBinContent(3,33321.43); h_SL1L463->SetBinContent(4,31357.14); h_SL1L463->SetBinContent(5,29042.86); h_SL1L463->SetBinContent(6,28707.14); h_SL1L463->SetBinContent(7,28178.57); h_SL1L463->SetBinContent(8,29471.43); h_SL1L463->SetBinContent(9,30664.29); h_SL1L463->SetBinContent(10,31657.14); h_SL1L463->SetBinContent(11,31642.86); h_SL1L463->SetBinContent(12,30728.57); h_SL1L463->SetBinContent(13,29635.71); h_SL1L463->SetBinContent(14,30235.71); h_SL1L463->SetBinContent(15,32900); h_SL1L463->SetBinContent(16,30307.14); h_SL1L463->SetBinContent(17,29957.14); h_SL1L463->SetBinContent(18,30928.57); h_SL1L463->SetBinContent(19,30271.43); h_SL1L463->SetBinContent(20,28871.43); h_SL1L463->SetBinContent(21,30164.29); h_SL1L463->SetBinContent(22,30392.86); h_SL1L463->SetBinContent(23,29207.14); h_SL1L463->SetBinContent(24,29621.43); h_SL1L463->SetBinContent(25,27585.71); h_SL1L463->SetBinContent(26,24764.29); h_SL1L463->SetBinContent(27,24492.86); h_SL1L463->SetBinContent(28,26635.71); h_SL1L463->SetBinContent(29,23471.43); h_SL1L463->SetBinContent(30,25457.14); h_SL1L463->SetBinContent(31,23900); h_SL1L463->SetBinContent(32,23450); h_SL1L463->SetBinContent(33,22335.71); h_SL1L463->SetBinContent(34,24707.14); h_SL1L463->SetBinContent(35,24192.86); h_SL1L463->SetBinContent(36,22700); h_SL1L463->SetBinContent(37,200); h_SL1L463->SetBinContent(38,28.57143); h_SL1L463->SetBinContent(40,7.142857); h_SL1L463->SetBinContent(41,20464.29); h_SL1L463->SetBinContent(42,21600); h_SL1L463->SetBinContent(43,22128.57); h_SL1L463->SetBinContent(44,21900); h_SL1L463->SetBinContent(45,21242.86); h_SL1L463->SetBinContent(46,22142.86); h_SL1L463->SetBinContent(47,20571.43); h_SL1L463->SetBinContent(48,20907.14); h_SL1L463->SetBinContent(49,19985.71); h_SL1L463->SetBinContent(50,20950); h_SL1L463->SetBinContent(51,21878.57); h_SL1L463->SetBinContent(52,22492.86); h_SL1L463->SetBinContent(53,22107.14); h_SL1L463->SetBinContent(54,21835.71); h_SL1L463->SetBinContent(56,26164.29); h_SL1L463->SetMaximum(63701.78); 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 7373"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }