void RatesPerCell_Removing_noisy_cells_run_6106_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:13:58 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8398.451,67.5,75586.05); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6106",60,0,60); h_SL1L160->SetBinContent(1,39750); h_SL1L160->SetBinContent(2,40392.86); h_SL1L160->SetBinContent(3,41239.29); h_SL1L160->SetBinContent(4,37989.29); h_SL1L160->SetBinContent(5,32382.14); h_SL1L160->SetBinContent(6,32885.71); h_SL1L160->SetBinContent(7,33317.86); h_SL1L160->SetBinContent(8,34992.86); h_SL1L160->SetBinContent(9,34367.86); h_SL1L160->SetBinContent(10,35425); h_SL1L160->SetBinContent(11,34978.57); h_SL1L160->SetBinContent(12,32885.71); h_SL1L160->SetBinContent(13,32382.14); h_SL1L160->SetBinContent(14,30278.57); h_SL1L160->SetBinContent(15,27835.71); h_SL1L160->SetBinContent(16,27521.43); h_SL1L160->SetBinContent(17,27246.43); h_SL1L160->SetBinContent(18,28196.43); h_SL1L160->SetBinContent(19,28567.86); h_SL1L160->SetBinContent(20,27953.57); h_SL1L160->SetBinContent(21,29514.29); h_SL1L160->SetBinContent(22,29503.57); h_SL1L160->SetBinContent(23,27735.71); h_SL1L160->SetBinContent(24,24239.29); h_SL1L160->SetBinContent(25,23139.29); h_SL1L160->SetBinContent(26,23582.14); h_SL1L160->SetBinContent(27,23392.86); h_SL1L160->SetBinContent(28,23392.86); h_SL1L160->SetBinContent(29,22860.71); h_SL1L160->SetBinContent(30,22778.57); h_SL1L160->SetBinContent(31,22371.43); h_SL1L160->SetBinContent(32,21628.57); h_SL1L160->SetBinContent(33,21917.86); h_SL1L160->SetBinContent(34,23442.86); h_SL1L160->SetBinContent(35,23457.14); h_SL1L160->SetBinContent(36,23060.71); h_SL1L160->SetBinContent(37,22710.71); h_SL1L160->SetBinContent(38,22982.14); h_SL1L160->SetBinContent(39,22500); h_SL1L160->SetBinContent(40,21789.29); h_SL1L160->SetBinContent(41,22389.29); h_SL1L160->SetBinContent(42,23446.43); h_SL1L160->SetBinContent(43,23785.71); h_SL1L160->SetBinContent(44,24071.43); h_SL1L160->SetBinContent(45,22832.14); h_SL1L160->SetBinContent(46,21989.29); h_SL1L160->SetBinContent(47,21232.14); h_SL1L160->SetBinContent(48,21439.29); h_SL1L160->SetBinContent(49,23350); h_SL1L160->SetBinContent(50,25992.86); h_SL1L160->SetBinContent(51,26725); h_SL1L160->SetBinContent(52,25728.57); h_SL1L160->SetBinContent(53,25885.71); h_SL1L160->SetBinContent(54,26360.71); h_SL1L160->SetBinContent(55,26625); h_SL1L160->SetBinContent(56,30121.43); h_SL1L160->SetBinContent(57,38957.14); h_SL1L160->SetBinContent(58,46789.29); h_SL1L160->SetBinContent(59,50803.57); h_SL1L160->SetMaximum(67187.6); 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->SetMaximum(58424.11); 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(58424.11); 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,36200); h_SL1L463->SetBinContent(3,33407.14); h_SL1L463->SetBinContent(4,31325); h_SL1L463->SetBinContent(5,28067.86); h_SL1L463->SetBinContent(6,26475); h_SL1L463->SetBinContent(7,26835.71); h_SL1L463->SetBinContent(8,28982.14); h_SL1L463->SetBinContent(9,32135.71); h_SL1L463->SetBinContent(10,37335.71); h_SL1L463->SetBinContent(11,43760.71); h_SL1L463->SetBinContent(12,46510.71); h_SL1L463->SetBinContent(13,46600); h_SL1L463->SetBinContent(14,48457.14); h_SL1L463->SetBinContent(15,44767.86); h_SL1L463->SetBinContent(16,39328.57); h_SL1L463->SetBinContent(17,36828.57); h_SL1L463->SetBinContent(18,37157.14); h_SL1L463->SetBinContent(19,36385.71); h_SL1L463->SetBinContent(20,34617.86); h_SL1L463->SetBinContent(21,34675); h_SL1L463->SetBinContent(22,34978.57); h_SL1L463->SetBinContent(23,35214.29); h_SL1L463->SetBinContent(24,33475); h_SL1L463->SetBinContent(25,30153.57); h_SL1L463->SetBinContent(26,29521.43); h_SL1L463->SetBinContent(27,28589.29); h_SL1L463->SetBinContent(28,30135.71); h_SL1L463->SetBinContent(29,28496.43); h_SL1L463->SetBinContent(30,27975); h_SL1L463->SetBinContent(31,28092.86); h_SL1L463->SetBinContent(32,27167.86); h_SL1L463->SetBinContent(33,26282.14); h_SL1L463->SetBinContent(34,26346.43); h_SL1L463->SetBinContent(35,27175); h_SL1L463->SetBinContent(36,24550); h_SL1L463->SetBinContent(37,23375); h_SL1L463->SetBinContent(38,22428.57); h_SL1L463->SetBinContent(39,23289.29); h_SL1L463->SetBinContent(40,21142.86); h_SL1L463->SetBinContent(41,21378.57); h_SL1L463->SetBinContent(42,22828.57); h_SL1L463->SetBinContent(43,23035.71); h_SL1L463->SetBinContent(44,23942.86); h_SL1L463->SetBinContent(45,20982.14); h_SL1L463->SetBinContent(46,21725); h_SL1L463->SetBinContent(47,20478.57); h_SL1L463->SetBinContent(48,20917.86); h_SL1L463->SetBinContent(49,20500); h_SL1L463->SetBinContent(50,20835.71); h_SL1L463->SetBinContent(51,21350); h_SL1L463->SetBinContent(52,21114.29); h_SL1L463->SetBinContent(53,21092.86); h_SL1L463->SetBinContent(54,21796.43); h_SL1L463->SetBinContent(56,24042.86); h_SL1L463->SetBinContent(57,29242.86); h_SL1L463->SetBinContent(58,42153.57); h_SL1L463->SetBinContent(59,46892.86); h_SL1L463->SetMaximum(58424.11); 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 6106"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }