void RatesPerCell_Removing_noisy_cells_run_7378_SL1() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 18:34:32 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12861.31,67.5,115751.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7378",60,0,60); h_SL1L160->SetBinContent(1,28835.71); h_SL1L160->SetBinContent(2,28342.86); h_SL1L160->SetBinContent(3,27821.43); h_SL1L160->SetBinContent(4,24721.43); h_SL1L160->SetBinContent(5,19685.71); h_SL1L160->SetBinContent(6,21021.43); h_SL1L160->SetBinContent(7,19664.29); h_SL1L160->SetBinContent(8,20371.43); h_SL1L160->SetBinContent(9,19178.57); h_SL1L160->SetBinContent(10,18428.57); h_SL1L160->SetBinContent(11,19507.14); h_SL1L160->SetBinContent(12,17300); h_SL1L160->SetBinContent(13,27071.43); h_SL1L160->SetBinContent(14,31021.43); h_SL1L160->SetBinContent(15,30157.14); h_SL1L160->SetBinContent(16,16300); h_SL1L160->SetBinContent(17,15328.57); h_SL1L160->SetBinContent(18,15892.86); h_SL1L160->SetBinContent(19,16492.86); h_SL1L160->SetBinContent(20,16592.86); h_SL1L160->SetBinContent(21,16400); h_SL1L160->SetBinContent(22,17114.29); h_SL1L160->SetBinContent(23,15250); h_SL1L160->SetBinContent(24,13571.43); h_SL1L160->SetBinContent(25,12850); h_SL1L160->SetBinContent(26,14164.29); h_SL1L160->SetBinContent(27,13464.29); h_SL1L160->SetBinContent(28,13307.14); h_SL1L160->SetBinContent(29,14364.29); h_SL1L160->SetBinContent(30,12978.57); h_SL1L160->SetBinContent(31,12685.71); h_SL1L160->SetBinContent(32,11700); h_SL1L160->SetBinContent(33,41457.14); h_SL1L160->SetBinContent(34,42964.29); h_SL1L160->SetBinContent(35,42278.57); h_SL1L160->SetBinContent(36,41400); h_SL1L160->SetBinContent(37,43142.86); h_SL1L160->SetBinContent(38,42971.43); h_SL1L160->SetBinContent(39,42350); h_SL1L160->SetBinContent(41,12750); h_SL1L160->SetBinContent(42,13192.86); h_SL1L160->SetBinContent(43,13250); h_SL1L160->SetBinContent(44,12507.14); h_SL1L160->SetBinContent(45,12028.57); h_SL1L160->SetBinContent(46,11007.14); h_SL1L160->SetBinContent(47,12007.14); h_SL1L160->SetBinContent(48,11878.57); h_SL1L160->SetBinContent(49,12371.43); h_SL1L160->SetBinContent(50,13085.71); h_SL1L160->SetBinContent(51,14078.57); h_SL1L160->SetBinContent(52,14292.86); h_SL1L160->SetBinContent(53,14464.29); h_SL1L160->SetBinContent(54,14250); h_SL1L160->SetBinContent(55,14914.29); h_SL1L160->SetBinContent(56,16542.86); h_SL1L160->SetMaximum(102890.5); 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,42778.57); h_SL1L261->SetBinContent(2,45164.29); h_SL1L261->SetBinContent(3,48850); h_SL1L261->SetBinContent(4,47421.43); h_SL1L261->SetBinContent(5,46478.57); h_SL1L261->SetBinContent(6,47150); h_SL1L261->SetBinContent(7,46285.71); h_SL1L261->SetBinContent(8,47792.86); h_SL1L261->SetBinContent(9,60228.57); h_SL1L261->SetBinContent(10,42242.86); h_SL1L261->SetBinContent(11,42821.43); h_SL1L261->SetBinContent(12,38492.86); h_SL1L261->SetBinContent(13,37821.43); h_SL1L261->SetBinContent(14,39678.57); h_SL1L261->SetBinContent(15,41700); h_SL1L261->SetBinContent(16,39835.71); h_SL1L261->SetBinContent(17,39928.57); h_SL1L261->SetBinContent(18,43692.86); h_SL1L261->SetBinContent(19,44464.29); h_SL1L261->SetBinContent(20,45000); h_SL1L261->SetBinContent(21,47314.29); h_SL1L261->SetBinContent(22,47635.71); h_SL1L261->SetBinContent(23,46535.71); h_SL1L261->SetBinContent(24,46835.71); h_SL1L261->SetBinContent(25,47185.71); h_SL1L261->SetBinContent(26,43714.29); h_SL1L261->SetBinContent(27,43092.86); h_SL1L261->SetBinContent(28,45971.43); h_SL1L261->SetBinContent(29,46628.57); h_SL1L261->SetBinContent(30,47814.29); h_SL1L261->SetBinContent(31,46321.43); h_SL1L261->SetBinContent(32,44914.29); h_SL1L261->SetBinContent(33,43928.57); h_SL1L261->SetBinContent(34,44528.57); h_SL1L261->SetBinContent(35,44178.57); h_SL1L261->SetBinContent(36,44700); h_SL1L261->SetBinContent(37,47242.86); h_SL1L261->SetBinContent(38,46628.57); h_SL1L261->SetBinContent(39,45442.86); h_SL1L261->SetBinContent(40,45778.57); h_SL1L261->SetBinContent(41,47914.29); h_SL1L261->SetBinContent(42,49992.86); h_SL1L261->SetBinContent(43,50571.43); h_SL1L261->SetBinContent(44,50114.29); h_SL1L261->SetBinContent(45,50442.86); h_SL1L261->SetBinContent(46,51678.57); h_SL1L261->SetBinContent(47,52821.43); h_SL1L261->SetBinContent(48,53364.29); h_SL1L261->SetBinContent(49,77800); h_SL1L261->SetBinContent(50,53685.71); h_SL1L261->SetBinContent(51,54864.29); h_SL1L261->SetBinContent(52,56092.86); h_SL1L261->SetBinContent(53,58135.71); h_SL1L261->SetBinContent(54,57771.43); h_SL1L261->SetBinContent(55,58385.71); h_SL1L261->SetBinContent(56,59571.43); h_SL1L261->SetMaximum(89470); 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,42528.57); h_SL1L362->SetBinContent(2,43757.14); h_SL1L362->SetBinContent(3,45664.29); h_SL1L362->SetBinContent(4,45228.57); h_SL1L362->SetBinContent(5,45671.43); h_SL1L362->SetBinContent(6,46178.57); h_SL1L362->SetBinContent(7,45435.71); h_SL1L362->SetBinContent(8,45342.86); h_SL1L362->SetBinContent(9,42492.86); h_SL1L362->SetBinContent(10,41135.71); h_SL1L362->SetBinContent(11,38385.71); h_SL1L362->SetBinContent(12,37000); h_SL1L362->SetBinContent(13,35771.43); h_SL1L362->SetBinContent(14,40564.29); h_SL1L362->SetBinContent(15,46357.14); h_SL1L362->SetBinContent(16,40585.71); h_SL1L362->SetBinContent(17,40121.43); h_SL1L362->SetBinContent(18,42621.43); h_SL1L362->SetBinContent(19,44600); h_SL1L362->SetBinContent(20,45964.29); h_SL1L362->SetBinContent(21,46207.14); h_SL1L362->SetBinContent(22,45514.29); h_SL1L362->SetBinContent(23,45914.29); h_SL1L362->SetBinContent(24,45785.71); h_SL1L362->SetBinContent(25,44800); h_SL1L362->SetBinContent(26,41671.43); h_SL1L362->SetBinContent(27,42385.71); h_SL1L362->SetBinContent(28,44578.57); h_SL1L362->SetBinContent(29,45107.14); h_SL1L362->SetBinContent(30,45107.14); h_SL1L362->SetBinContent(31,44478.57); h_SL1L362->SetBinContent(32,43464.29); h_SL1L362->SetBinContent(33,43242.86); h_SL1L362->SetBinContent(34,43957.14); h_SL1L362->SetBinContent(35,42692.86); h_SL1L362->SetBinContent(36,44107.14); h_SL1L362->SetBinContent(37,46664.29); h_SL1L362->SetBinContent(38,46057.14); h_SL1L362->SetBinContent(39,45857.14); h_SL1L362->SetBinContent(40,45764.29); h_SL1L362->SetBinContent(41,47585.71); h_SL1L362->SetBinContent(42,48357.14); h_SL1L362->SetBinContent(43,49100); h_SL1L362->SetBinContent(44,48185.71); h_SL1L362->SetBinContent(45,50492.86); h_SL1L362->SetBinContent(46,50935.71); h_SL1L362->SetBinContent(47,52042.86); h_SL1L362->SetBinContent(48,52907.14); h_SL1L362->SetBinContent(49,52907.14); h_SL1L362->SetBinContent(50,53535.71); h_SL1L362->SetBinContent(51,54628.57); h_SL1L362->SetBinContent(52,55678.57); h_SL1L362->SetBinContent(53,64250); h_SL1L362->SetBinContent(54,56335.71); h_SL1L362->SetBinContent(55,57800); h_SL1L362->SetBinContent(56,68492.86); h_SL1L362->SetMaximum(89470); 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,38507.14); h_SL1L463->SetBinContent(3,38950); h_SL1L463->SetBinContent(4,37342.86); h_SL1L463->SetBinContent(5,34521.43); h_SL1L463->SetBinContent(6,34528.57); h_SL1L463->SetBinContent(7,34850); h_SL1L463->SetBinContent(8,35342.86); h_SL1L463->SetBinContent(9,35485.71); h_SL1L463->SetBinContent(10,34800); h_SL1L463->SetBinContent(11,34478.57); h_SL1L463->SetBinContent(12,33100); h_SL1L463->SetBinContent(13,32535.71); h_SL1L463->SetBinContent(14,55828.57); h_SL1L463->SetBinContent(15,49264.29); h_SL1L463->SetBinContent(16,48464.29); h_SL1L463->SetBinContent(17,33435.71); h_SL1L463->SetBinContent(18,35857.14); h_SL1L463->SetBinContent(19,35192.86); h_SL1L463->SetBinContent(20,36292.86); h_SL1L463->SetBinContent(21,37285.71); h_SL1L463->SetBinContent(22,36721.43); h_SL1L463->SetBinContent(23,35292.86); h_SL1L463->SetBinContent(24,35928.57); h_SL1L463->SetBinContent(25,32471.43); h_SL1L463->SetBinContent(26,31778.57); h_SL1L463->SetBinContent(27,31600); h_SL1L463->SetBinContent(28,32057.14); h_SL1L463->SetBinContent(29,31478.57); h_SL1L463->SetBinContent(30,32914.29); h_SL1L463->SetBinContent(31,32114.29); h_SL1L463->SetBinContent(32,30442.86); h_SL1L463->SetBinContent(33,29750); h_SL1L463->SetBinContent(34,32614.29); h_SL1L463->SetBinContent(35,32635.71); h_SL1L463->SetBinContent(36,29607.14); h_SL1L463->SetBinContent(37,28.57143); h_SL1L463->SetBinContent(41,28364.29); h_SL1L463->SetBinContent(42,31600); h_SL1L463->SetBinContent(43,31821.43); h_SL1L463->SetBinContent(44,31485.71); h_SL1L463->SetBinContent(45,27835.71); h_SL1L463->SetBinContent(46,30664.29); h_SL1L463->SetBinContent(47,29821.43); h_SL1L463->SetBinContent(48,29242.86); h_SL1L463->SetBinContent(49,28135.71); h_SL1L463->SetBinContent(50,30557.14); h_SL1L463->SetBinContent(51,29214.29); h_SL1L463->SetBinContent(52,31450); h_SL1L463->SetBinContent(53,31450); h_SL1L463->SetBinContent(54,30978.57); h_SL1L463->SetBinContent(56,35142.86); h_SL1L463->SetMaximum(89470); 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 7378"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }