void RatesPerCell_Removing_noisy_cells_run_7565_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:12:33 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-14063.35,67.5,126570.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7565",60,0,60); h_SL1L160->SetBinContent(1,55250); h_SL1L160->SetBinContent(2,56235.71); h_SL1L160->SetBinContent(3,55500); h_SL1L160->SetBinContent(4,51964.29); h_SL1L160->SetBinContent(5,39735.71); h_SL1L160->SetBinContent(6,40392.86); h_SL1L160->SetBinContent(7,40264.29); h_SL1L160->SetBinContent(8,42528.57); h_SL1L160->SetBinContent(9,40307.14); h_SL1L160->SetBinContent(10,40992.86); h_SL1L160->SetBinContent(11,40835.71); h_SL1L160->SetBinContent(12,38607.14); h_SL1L160->SetBinContent(13,39857.14); h_SL1L160->SetBinContent(14,60692.86); h_SL1L160->SetBinContent(15,57414.29); h_SL1L160->SetBinContent(16,33400); h_SL1L160->SetBinContent(17,38278.57); h_SL1L160->SetBinContent(18,40042.86); h_SL1L160->SetBinContent(19,41000); h_SL1L160->SetBinContent(20,41085.71); h_SL1L160->SetBinContent(21,37128.57); h_SL1L160->SetBinContent(22,35921.43); h_SL1L160->SetBinContent(23,33471.43); h_SL1L160->SetBinContent(24,30635.71); h_SL1L160->SetBinContent(25,29192.86); h_SL1L160->SetBinContent(26,30464.29); h_SL1L160->SetBinContent(27,29614.29); h_SL1L160->SetBinContent(28,29307.14); h_SL1L160->SetBinContent(29,31792.86); h_SL1L160->SetBinContent(30,28542.86); h_SL1L160->SetBinContent(31,32935.71); h_SL1L160->SetBinContent(32,30557.14); h_SL1L160->SetBinContent(33,79971.43); h_SL1L160->SetBinContent(34,82200); h_SL1L160->SetBinContent(35,79085.71); h_SL1L160->SetBinContent(36,80428.57); h_SL1L160->SetBinContent(37,72750); h_SL1L160->SetBinContent(38,71642.86); h_SL1L160->SetBinContent(39,79957.14); h_SL1L160->SetBinContent(41,27378.57); h_SL1L160->SetBinContent(42,26500); h_SL1L160->SetBinContent(43,28542.86); h_SL1L160->SetBinContent(44,27192.86); h_SL1L160->SetBinContent(45,24492.86); h_SL1L160->SetBinContent(46,23292.86); h_SL1L160->SetBinContent(47,22342.86); h_SL1L160->SetBinContent(48,23428.57); h_SL1L160->SetBinContent(49,24864.29); h_SL1L160->SetBinContent(50,25907.14); h_SL1L160->SetBinContent(51,25992.86); h_SL1L160->SetBinContent(52,26128.57); h_SL1L160->SetBinContent(53,24421.43); h_SL1L160->SetBinContent(54,25457.14); h_SL1L160->SetBinContent(55,25907.14); h_SL1L160->SetBinContent(56,30892.86); h_SL1L160->SetMaximum(112506.8); 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,71714.28); h_SL1L261->SetBinContent(2,73214.28); h_SL1L261->SetBinContent(3,75935.71); h_SL1L261->SetBinContent(4,75550); h_SL1L261->SetBinContent(5,69571.43); h_SL1L261->SetBinContent(6,71885.71); h_SL1L261->SetBinContent(7,70607.14); h_SL1L261->SetBinContent(8,72364.28); h_SL1L261->SetBinContent(9,71171.43); h_SL1L261->SetBinContent(10,68992.86); h_SL1L261->SetBinContent(11,72100); h_SL1L261->SetBinContent(12,73207.14); h_SL1L261->SetBinContent(13,73157.14); h_SL1L261->SetBinContent(14,72578.57); h_SL1L261->SetBinContent(15,72764.28); h_SL1L261->SetBinContent(16,70842.86); h_SL1L261->SetBinContent(17,77742.86); h_SL1L261->SetBinContent(18,82285.71); h_SL1L261->SetBinContent(19,85071.43); h_SL1L261->SetBinContent(20,84785.71); h_SL1L261->SetBinContent(21,77685.71); h_SL1L261->SetBinContent(22,74371.43); h_SL1L261->SetBinContent(23,71700); h_SL1L261->SetBinContent(24,72435.71); h_SL1L261->SetBinContent(25,72278.57); h_SL1L261->SetBinContent(26,67435.71); h_SL1L261->SetBinContent(27,65785.71); h_SL1L261->SetBinContent(28,70071.43); h_SL1L261->SetBinContent(29,72914.28); h_SL1L261->SetBinContent(30,75321.43); h_SL1L261->SetBinContent(31,82871.43); h_SL1L261->SetBinContent(32,79614.28); h_SL1L261->SetBinContent(33,77571.43); h_SL1L261->SetBinContent(34,78085.71); h_SL1L261->SetBinContent(35,77635.71); h_SL1L261->SetBinContent(36,78457.14); h_SL1L261->SetBinContent(37,73214.28); h_SL1L261->SetBinContent(38,73200); h_SL1L261->SetBinContent(39,81307.14); h_SL1L261->SetBinContent(40,80214.28); h_SL1L261->SetBinContent(41,72564.28); h_SL1L261->SetBinContent(42,72664.28); h_SL1L261->SetBinContent(43,80771.43); h_SL1L261->SetBinContent(44,75328.57); h_SL1L261->SetBinContent(45,75471.43); h_SL1L261->SetBinContent(46,74135.71); h_SL1L261->SetBinContent(47,69928.57); h_SL1L261->SetBinContent(48,72235.71); h_SL1L261->SetBinContent(49,79178.57); h_SL1L261->SetBinContent(50,79614.28); h_SL1L261->SetBinContent(51,77964.28); h_SL1L261->SetBinContent(52,75307.14); h_SL1L261->SetBinContent(53,70864.28); h_SL1L261->SetBinContent(54,69757.14); h_SL1L261->SetBinContent(55,72978.57); h_SL1L261->SetBinContent(56,70885.71); h_SL1L261->SetMaximum(97832.14); 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,69735.71); h_SL1L362->SetBinContent(2,72164.28); h_SL1L362->SetBinContent(3,74335.71); h_SL1L362->SetBinContent(4,74692.86); h_SL1L362->SetBinContent(5,67300); h_SL1L362->SetBinContent(6,66657.14); h_SL1L362->SetBinContent(7,70400); h_SL1L362->SetBinContent(8,70257.14); h_SL1L362->SetBinContent(9,67721.43); h_SL1L362->SetBinContent(10,69957.14); h_SL1L362->SetBinContent(11,70757.14); h_SL1L362->SetBinContent(12,71242.86); h_SL1L362->SetBinContent(13,69264.28); h_SL1L362->SetBinContent(14,69621.43); h_SL1L362->SetBinContent(15,69221.43); h_SL1L362->SetBinContent(16,68550); h_SL1L362->SetBinContent(17,77914.28); h_SL1L362->SetBinContent(18,82521.43); h_SL1L362->SetBinContent(19,81464.28); h_SL1L362->SetBinContent(20,83928.57); h_SL1L362->SetBinContent(21,73878.57); h_SL1L362->SetBinContent(22,71242.86); h_SL1L362->SetBinContent(23,70635.71); h_SL1L362->SetBinContent(24,69400); h_SL1L362->SetBinContent(25,67157.14); h_SL1L362->SetBinContent(26,64521.43); h_SL1L362->SetBinContent(27,66092.86); h_SL1L362->SetBinContent(28,70371.43); h_SL1L362->SetBinContent(29,72035.71); h_SL1L362->SetBinContent(30,71157.14); h_SL1L362->SetBinContent(31,79300); h_SL1L362->SetBinContent(32,74921.43); h_SL1L362->SetBinContent(33,77771.43); h_SL1L362->SetBinContent(34,77085.71); h_SL1L362->SetBinContent(35,75435.71); h_SL1L362->SetBinContent(36,76057.14); h_SL1L362->SetBinContent(37,71742.86); h_SL1L362->SetBinContent(38,70378.57); h_SL1L362->SetBinContent(39,76507.14); h_SL1L362->SetBinContent(40,78685.71); h_SL1L362->SetBinContent(41,70014.28); h_SL1L362->SetBinContent(42,70542.86); h_SL1L362->SetBinContent(43,75621.43); h_SL1L362->SetBinContent(44,74842.86); h_SL1L362->SetBinContent(45,72921.43); h_SL1L362->SetBinContent(46,73164.28); h_SL1L362->SetBinContent(47,71171.43); h_SL1L362->SetBinContent(48,70828.57); h_SL1L362->SetBinContent(49,77600); h_SL1L362->SetBinContent(50,75728.57); h_SL1L362->SetBinContent(51,73614.28); h_SL1L362->SetBinContent(52,73642.86); h_SL1L362->SetBinContent(53,68821.43); h_SL1L362->SetBinContent(54,67628.57); h_SL1L362->SetBinContent(55,69842.86); h_SL1L362->SetBinContent(56,67650); h_SL1L362->SetMaximum(97832.14); 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,46235.71); h_SL1L463->SetBinContent(3,40728.57); h_SL1L463->SetBinContent(4,41700); h_SL1L463->SetBinContent(5,35514.29); h_SL1L463->SetBinContent(6,35992.86); h_SL1L463->SetBinContent(7,35407.14); h_SL1L463->SetBinContent(8,38000); h_SL1L463->SetBinContent(9,38735.71); h_SL1L463->SetBinContent(10,41728.57); h_SL1L463->SetBinContent(11,45157.14); h_SL1L463->SetBinContent(12,47007.14); h_SL1L463->SetBinContent(13,47257.14); h_SL1L463->SetBinContent(14,49364.29); h_SL1L463->SetBinContent(15,79464.28); h_SL1L463->SetBinContent(16,55550); h_SL1L463->SetBinContent(17,43842.86); h_SL1L463->SetBinContent(18,43907.14); h_SL1L463->SetBinContent(19,43750); h_SL1L463->SetBinContent(20,43685.71); h_SL1L463->SetBinContent(21,39885.71); h_SL1L463->SetBinContent(22,38792.86); h_SL1L463->SetBinContent(23,38107.14); h_SL1L463->SetBinContent(24,37085.71); h_SL1L463->SetBinContent(25,32385.71); h_SL1L463->SetBinContent(26,32871.43); h_SL1L463->SetBinContent(27,31678.57); h_SL1L463->SetBinContent(28,31878.57); h_SL1L463->SetBinContent(29,31657.14); h_SL1L463->SetBinContent(30,31714.29); h_SL1L463->SetBinContent(31,32457.14); h_SL1L463->SetBinContent(32,30600); h_SL1L463->SetBinContent(33,29285.71); h_SL1L463->SetBinContent(34,31878.57); h_SL1L463->SetBinContent(35,32100); h_SL1L463->SetBinContent(36,28400); h_SL1L463->SetBinContent(37,1071.429); h_SL1L463->SetBinContent(38,35.71429); h_SL1L463->SetBinContent(41,25142.86); h_SL1L463->SetBinContent(42,26457.14); h_SL1L463->SetBinContent(43,26764.29); h_SL1L463->SetBinContent(44,25542.86); h_SL1L463->SetBinContent(45,23750); h_SL1L463->SetBinContent(46,25035.71); h_SL1L463->SetBinContent(47,23735.71); h_SL1L463->SetBinContent(48,22235.71); h_SL1L463->SetBinContent(49,22307.14); h_SL1L463->SetBinContent(50,24314.29); h_SL1L463->SetBinContent(51,25185.71); h_SL1L463->SetBinContent(52,24528.57); h_SL1L463->SetBinContent(53,24385.71); h_SL1L463->SetBinContent(54,23478.57); h_SL1L463->SetBinContent(55,14.28571); h_SL1L463->SetBinContent(56,25257.14); h_SL1L463->SetMaximum(97832.14); 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 7565"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }