void RatesPerCell_Removing_noisy_cells_run_5123_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:40:30 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18083.18,67.5,162748.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L159 = new TH1D("h_SL1L159","SL1, run 5123",60,0,60); h_SL1L159->SetBinContent(1,47590); h_SL1L159->SetBinContent(2,47950); h_SL1L159->SetBinContent(3,46837.14); h_SL1L159->SetBinContent(4,46975.71); h_SL1L159->SetBinContent(5,46972.86); h_SL1L159->SetBinContent(6,49094.29); h_SL1L159->SetBinContent(7,48008.57); h_SL1L159->SetBinContent(8,48422.86); h_SL1L159->SetBinContent(9,45241.43); h_SL1L159->SetBinContent(10,40841.43); h_SL1L159->SetBinContent(11,39147.14); h_SL1L159->SetBinContent(12,37870); h_SL1L159->SetBinContent(13,38978.57); h_SL1L159->SetBinContent(14,41020); h_SL1L159->SetBinContent(15,41378.57); h_SL1L159->SetBinContent(16,37568.57); h_SL1L159->SetBinContent(17,38627.14); h_SL1L159->SetBinContent(18,40875.71); h_SL1L159->SetBinContent(19,41698.57); h_SL1L159->SetBinContent(20,42350); h_SL1L159->SetBinContent(21,44380); h_SL1L159->SetBinContent(22,44782.86); h_SL1L159->SetBinContent(23,44695.71); h_SL1L159->SetBinContent(24,44811.43); h_SL1L159->SetBinContent(25,45032.86); h_SL1L159->SetBinContent(26,41458.57); h_SL1L159->SetBinContent(27,41900); h_SL1L159->SetBinContent(28,44481.43); h_SL1L159->SetBinContent(29,44431.43); h_SL1L159->SetBinContent(30,44248.57); h_SL1L159->SetBinContent(31,44951.43); h_SL1L159->SetBinContent(32,47231.43); h_SL1L159->SetBinContent(33,69094.29); h_SL1L159->SetBinContent(34,82100); h_SL1L159->SetBinContent(35,90070); h_SL1L159->SetBinContent(36,99465.72); h_SL1L159->SetBinContent(37,109388.6); h_SL1L159->SetBinContent(38,103154.3); h_SL1L159->SetBinContent(39,81361.43); h_SL1L159->SetBinContent(40,45857.14); h_SL1L159->SetBinContent(41,41997.14); h_SL1L159->SetBinContent(42,40922.86); h_SL1L159->SetBinContent(43,39178.57); h_SL1L159->SetBinContent(44,38468.57); h_SL1L159->SetBinContent(45,37291.43); h_SL1L159->SetBinContent(46,36884.29); h_SL1L159->SetBinContent(47,34700); h_SL1L159->SetBinContent(48,33842.86); h_SL1L159->SetBinContent(49,34934.29); h_SL1L159->SetBinContent(50,35012.86); h_SL1L159->SetBinContent(51,33472.86); h_SL1L159->SetBinContent(52,32635.71); h_SL1L159->SetBinContent(53,33290); h_SL1L159->SetBinContent(54,32194.29); h_SL1L159->SetBinContent(55,32935.71); h_SL1L159->SetBinContent(56,31390); h_SL1L159->SetBinContent(57,30664.29); h_SL1L159->SetBinContent(58,29711.43); h_SL1L159->SetBinContent(59,30282.86); h_SL1L159->SetMaximum(144665.4); h_SL1L159->SetEntries(60); h_SL1L159->SetDirectory(0); h_SL1L159->SetStats(0); h_SL1L159->SetLineWidth(2); h_SL1L159->GetXaxis()->SetTitle("Cell"); h_SL1L159->GetXaxis()->SetLabelFont(42); h_SL1L159->GetXaxis()->SetLabelSize(0.035); h_SL1L159->GetXaxis()->SetTitleSize(0.035); h_SL1L159->GetXaxis()->SetTitleFont(42); h_SL1L159->GetYaxis()->SetTitle("Hz"); h_SL1L159->GetYaxis()->SetLabelFont(42); h_SL1L159->GetYaxis()->SetLabelSize(0.035); h_SL1L159->GetYaxis()->SetTitleSize(0.035); h_SL1L159->GetYaxis()->SetTitleOffset(1.45); h_SL1L159->GetYaxis()->SetTitleFont(42); h_SL1L159->GetZaxis()->SetLabelFont(42); h_SL1L159->GetZaxis()->SetLabelSize(0.035); h_SL1L159->GetZaxis()->SetTitleSize(0.035); h_SL1L159->GetZaxis()->SetTitleFont(42); h_SL1L159->Draw(""); TH1D *h_SL1L260 = new TH1D("h_SL1L260","",60,0,60); h_SL1L260->SetBinContent(5,1.428571); h_SL1L260->SetBinContent(7,1.428571); h_SL1L260->SetBinContent(57,1.428571); h_SL1L260->SetMaximum(125796.9); h_SL1L260->SetEntries(60); h_SL1L260->SetDirectory(0); h_SL1L260->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L260->SetLineColor(ci); h_SL1L260->SetLineWidth(2); h_SL1L260->GetXaxis()->SetTitle("Cell"); h_SL1L260->GetXaxis()->SetLabelFont(42); h_SL1L260->GetXaxis()->SetLabelSize(0.035); h_SL1L260->GetXaxis()->SetTitleSize(0.035); h_SL1L260->GetXaxis()->SetTitleFont(42); h_SL1L260->GetYaxis()->SetTitle("Hz"); h_SL1L260->GetYaxis()->SetLabelFont(42); h_SL1L260->GetYaxis()->SetLabelSize(0.035); h_SL1L260->GetYaxis()->SetTitleSize(0.035); h_SL1L260->GetYaxis()->SetTitleOffset(1.45); h_SL1L260->GetYaxis()->SetTitleFont(42); h_SL1L260->GetZaxis()->SetLabelFont(42); h_SL1L260->GetZaxis()->SetLabelSize(0.035); h_SL1L260->GetZaxis()->SetTitleSize(0.035); h_SL1L260->GetZaxis()->SetTitleFont(42); h_SL1L260->Draw("same"); TH1D *h_SL1L361 = new TH1D("h_SL1L361","",60,0,60); h_SL1L361->SetBinContent(3,1.428571); h_SL1L361->SetBinContent(6,1.428571); h_SL1L361->SetBinContent(7,1.428571); h_SL1L361->SetBinContent(15,1.428571); h_SL1L361->SetBinContent(16,1.428571); h_SL1L361->SetBinContent(31,1.428571); h_SL1L361->SetBinContent(55,1.428571); h_SL1L361->SetBinContent(56,1.428571); h_SL1L361->SetMaximum(125796.9); h_SL1L361->SetEntries(60); h_SL1L361->SetDirectory(0); h_SL1L361->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L361->SetLineColor(ci); h_SL1L361->SetLineWidth(2); h_SL1L361->GetXaxis()->SetTitle("Cell"); h_SL1L361->GetXaxis()->SetLabelFont(42); h_SL1L361->GetXaxis()->SetLabelSize(0.035); h_SL1L361->GetXaxis()->SetTitleSize(0.035); h_SL1L361->GetXaxis()->SetTitleFont(42); h_SL1L361->GetYaxis()->SetTitle("Hz"); h_SL1L361->GetYaxis()->SetLabelFont(42); h_SL1L361->GetYaxis()->SetLabelSize(0.035); h_SL1L361->GetYaxis()->SetTitleSize(0.035); h_SL1L361->GetYaxis()->SetTitleOffset(1.45); h_SL1L361->GetYaxis()->SetTitleFont(42); h_SL1L361->GetZaxis()->SetLabelFont(42); h_SL1L361->GetZaxis()->SetLabelSize(0.035); h_SL1L361->GetZaxis()->SetTitleSize(0.035); h_SL1L361->GetZaxis()->SetTitleFont(42); h_SL1L361->Draw("same"); TH1D *h_SL1L462 = new TH1D("h_SL1L462","",60,0,60); h_SL1L462->SetBinContent(2,44391.43); h_SL1L462->SetBinContent(3,43382.86); h_SL1L462->SetBinContent(4,43814.29); h_SL1L462->SetBinContent(5,42424.29); h_SL1L462->SetBinContent(6,44857.14); h_SL1L462->SetBinContent(7,44564.29); h_SL1L462->SetBinContent(8,44681.43); h_SL1L462->SetBinContent(9,42692.86); h_SL1L462->SetBinContent(10,40068.57); h_SL1L462->SetBinContent(11,36131.43); h_SL1L462->SetBinContent(12,35192.86); h_SL1L462->SetBinContent(13,35302.86); h_SL1L462->SetBinContent(14,37227.14); h_SL1L462->SetBinContent(15,37472.86); h_SL1L462->SetBinContent(16,36592.86); h_SL1L462->SetBinContent(17,34954.29); h_SL1L462->SetBinContent(18,35865.71); h_SL1L462->SetBinContent(19,38078.57); h_SL1L462->SetBinContent(20,38494.29); h_SL1L462->SetBinContent(21,39482.86); h_SL1L462->SetBinContent(22,40707.14); h_SL1L462->SetBinContent(23,41091.43); h_SL1L462->SetBinContent(24,41354.29); h_SL1L462->SetBinContent(25,40992.86); h_SL1L462->SetBinContent(26,40084.29); h_SL1L462->SetBinContent(27,38467.14); h_SL1L462->SetBinContent(28,38550); h_SL1L462->SetBinContent(29,40748.57); h_SL1L462->SetBinContent(30,41138.57); h_SL1L462->SetBinContent(31,41651.43); h_SL1L462->SetBinContent(32,42695.71); h_SL1L462->SetBinContent(33,52430); h_SL1L462->SetBinContent(34,75775.72); h_SL1L462->SetBinContent(35,83735.72); h_SL1L462->SetBinContent(36,93457.15); h_SL1L462->SetBinContent(37,102770); h_SL1L462->SetBinContent(38,105464.3); h_SL1L462->SetBinContent(39,94347.15); h_SL1L462->SetBinContent(40,54338.57); h_SL1L462->SetBinContent(41,41478.57); h_SL1L462->SetBinContent(42,38704.29); h_SL1L462->SetBinContent(43,36975.71); h_SL1L462->SetBinContent(44,36685.71); h_SL1L462->SetBinContent(45,35102.86); h_SL1L462->SetBinContent(46,35135.71); h_SL1L462->SetBinContent(47,33415.71); h_SL1L462->SetBinContent(48,31345.71); h_SL1L462->SetBinContent(49,30765.71); h_SL1L462->SetBinContent(50,31425.71); h_SL1L462->SetBinContent(51,31908.57); h_SL1L462->SetBinContent(52,30228.57); h_SL1L462->SetBinContent(53,30701.43); h_SL1L462->SetBinContent(54,29484.29); h_SL1L462->SetBinContent(56,29735.71); h_SL1L462->SetBinContent(57,28988.57); h_SL1L462->SetBinContent(58,28244.29); h_SL1L462->SetBinContent(59,27562.86); h_SL1L462->SetMaximum(125796.9); h_SL1L462->SetEntries(60); h_SL1L462->SetDirectory(0); h_SL1L462->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L462->SetLineColor(ci); h_SL1L462->SetLineWidth(2); h_SL1L462->GetXaxis()->SetTitle("Cell"); h_SL1L462->GetXaxis()->SetLabelFont(42); h_SL1L462->GetXaxis()->SetLabelSize(0.035); h_SL1L462->GetXaxis()->SetTitleSize(0.035); h_SL1L462->GetXaxis()->SetTitleFont(42); h_SL1L462->GetYaxis()->SetTitle("Hz"); h_SL1L462->GetYaxis()->SetLabelFont(42); h_SL1L462->GetYaxis()->SetLabelSize(0.035); h_SL1L462->GetYaxis()->SetTitleSize(0.035); h_SL1L462->GetYaxis()->SetTitleOffset(1.45); h_SL1L462->GetYaxis()->SetTitleFont(42); h_SL1L462->GetZaxis()->SetLabelFont(42); h_SL1L462->GetZaxis()->SetLabelSize(0.035); h_SL1L462->GetZaxis()->SetTitleSize(0.035); h_SL1L462->GetZaxis()->SetTitleFont(42); h_SL1L462->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 5123"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }