void RatesPerCell_Removing_noisy_cells_run_6173_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:34:34 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8149.188,67.5,73342.69); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6173",60,0,60); h_SL1L160->SetBinContent(1,40985.71); h_SL1L160->SetBinContent(2,41157.14); h_SL1L160->SetBinContent(3,42110.71); h_SL1L160->SetBinContent(4,38964.29); h_SL1L160->SetBinContent(5,34464.29); h_SL1L160->SetBinContent(6,35475); h_SL1L160->SetBinContent(7,35460.71); h_SL1L160->SetBinContent(8,37839.29); h_SL1L160->SetBinContent(9,36971.43); h_SL1L160->SetBinContent(10,38000); h_SL1L160->SetBinContent(11,38660.71); h_SL1L160->SetBinContent(12,37510.71); h_SL1L160->SetBinContent(13,37410.71); h_SL1L160->SetBinContent(14,34692.86); h_SL1L160->SetBinContent(15,30575); h_SL1L160->SetBinContent(16,29257.14); h_SL1L160->SetBinContent(17,29400); h_SL1L160->SetBinContent(18,31710.71); h_SL1L160->SetBinContent(19,31750); h_SL1L160->SetBinContent(20,31478.57); h_SL1L160->SetBinContent(21,30075); h_SL1L160->SetBinContent(22,31089.29); h_SL1L160->SetBinContent(23,29732.14); h_SL1L160->SetBinContent(24,26403.57); h_SL1L160->SetBinContent(25,24025); h_SL1L160->SetBinContent(26,26153.57); h_SL1L160->SetBinContent(27,26796.43); h_SL1L160->SetBinContent(28,26967.86); h_SL1L160->SetBinContent(29,29725); h_SL1L160->SetBinContent(30,24503.57); h_SL1L160->SetBinContent(31,25821.43); h_SL1L160->SetBinContent(32,24389.29); h_SL1L160->SetBinContent(33,25450); h_SL1L160->SetBinContent(34,23703.57); h_SL1L160->SetBinContent(35,24557.14); h_SL1L160->SetBinContent(36,24325); h_SL1L160->SetBinContent(37,24325); h_SL1L160->SetBinContent(38,25907.14); h_SL1L160->SetBinContent(39,25203.57); h_SL1L160->SetBinContent(40,22325); h_SL1L160->SetBinContent(41,23989.29); h_SL1L160->SetBinContent(42,24153.57); h_SL1L160->SetBinContent(43,24110.71); h_SL1L160->SetBinContent(44,24314.29); h_SL1L160->SetBinContent(45,22853.57); h_SL1L160->SetBinContent(46,22350); h_SL1L160->SetBinContent(47,22692.86); h_SL1L160->SetBinContent(48,21800); h_SL1L160->SetBinContent(49,23200); h_SL1L160->SetBinContent(50,25167.86); h_SL1L160->SetBinContent(51,26228.57); h_SL1L160->SetBinContent(52,24685.71); h_SL1L160->SetBinContent(53,25021.43); h_SL1L160->SetBinContent(54,25242.86); h_SL1L160->SetBinContent(55,25121.43); h_SL1L160->SetBinContent(56,29564.29); h_SL1L160->SetBinContent(57,36717.86); h_SL1L160->SetBinContent(58,42417.86); h_SL1L160->SetBinContent(59,47739.29); h_SL1L160->SetMaximum(65193.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(19,3.571429); h_SL1L261->SetBinContent(20,3.571429); h_SL1L261->SetMaximum(56690.89); 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->SetMaximum(56690.89); 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,36578.57); h_SL1L463->SetBinContent(3,33682.14); h_SL1L463->SetBinContent(4,33700); h_SL1L463->SetBinContent(5,31646.43); h_SL1L463->SetBinContent(6,32385.71); h_SL1L463->SetBinContent(7,31639.29); h_SL1L463->SetBinContent(8,33771.43); h_SL1L463->SetBinContent(9,35839.29); h_SL1L463->SetBinContent(10,39121.43); h_SL1L463->SetBinContent(11,44807.14); h_SL1L463->SetBinContent(12,47514.29); h_SL1L463->SetBinContent(13,47596.43); h_SL1L463->SetBinContent(14,49296.43); h_SL1L463->SetBinContent(15,46250); h_SL1L463->SetBinContent(16,41421.43); h_SL1L463->SetBinContent(17,37885.71); h_SL1L463->SetBinContent(18,38857.14); h_SL1L463->SetBinContent(19,36678.57); h_SL1L463->SetBinContent(20,35139.29); h_SL1L463->SetBinContent(21,35807.14); h_SL1L463->SetBinContent(22,35617.86); h_SL1L463->SetBinContent(23,34353.57); h_SL1L463->SetBinContent(24,33660.71); h_SL1L463->SetBinContent(25,31514.29); h_SL1L463->SetBinContent(26,30628.57); h_SL1L463->SetBinContent(27,30407.14); h_SL1L463->SetBinContent(28,31257.14); h_SL1L463->SetBinContent(29,30967.86); h_SL1L463->SetBinContent(30,32046.43); h_SL1L463->SetBinContent(31,31425); h_SL1L463->SetBinContent(32,29367.86); h_SL1L463->SetBinContent(33,27360.71); h_SL1L463->SetBinContent(34,25207.14); h_SL1L463->SetBinContent(35,25285.71); h_SL1L463->SetBinContent(36,23167.86); h_SL1L463->SetBinContent(37,20375); h_SL1L463->SetBinContent(38,21028.57); h_SL1L463->SetBinContent(39,23150); h_SL1L463->SetBinContent(40,20732.14); h_SL1L463->SetBinContent(41,19471.43); h_SL1L463->SetBinContent(42,20450); h_SL1L463->SetBinContent(43,21800); h_SL1L463->SetBinContent(44,20346.43); h_SL1L463->SetBinContent(45,18628.57); h_SL1L463->SetBinContent(46,19375); h_SL1L463->SetBinContent(47,19078.57); h_SL1L463->SetBinContent(48,18060.71); h_SL1L463->SetBinContent(49,18492.86); h_SL1L463->SetBinContent(50,20525); h_SL1L463->SetBinContent(51,21107.14); h_SL1L463->SetBinContent(52,21564.29); h_SL1L463->SetBinContent(53,21060.71); h_SL1L463->SetBinContent(54,21046.43); h_SL1L463->SetBinContent(56,24971.43); h_SL1L463->SetBinContent(57,29325); h_SL1L463->SetBinContent(58,39100); h_SL1L463->SetBinContent(59,42953.57); h_SL1L463->SetMaximum(56690.89); 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 6173"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }