void RatesPerCell_Removing_noisy_cells_run_5441_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:43:37 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-26651.97,67.5,239867.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5441",60,0,60); h_SL1L160->SetBinContent(1,80799.77); h_SL1L160->SetBinContent(2,79920.08); h_SL1L160->SetBinContent(3,78011.23); h_SL1L160->SetBinContent(4,78279.98); h_SL1L160->SetBinContent(5,77118.41); h_SL1L160->SetBinContent(6,79479.57); h_SL1L160->SetBinContent(7,77684.78); h_SL1L160->SetBinContent(8,78654.94); h_SL1L160->SetBinContent(9,75959.47); h_SL1L160->SetBinContent(10,70998.55); h_SL1L160->SetBinContent(11,68418.45); h_SL1L160->SetBinContent(12,67478.45); h_SL1L160->SetBinContent(13,69034.64); h_SL1L160->SetBinContent(14,70892.36); h_SL1L160->SetBinContent(15,72208.63); h_SL1L160->SetBinContent(16,67192.65); h_SL1L160->SetBinContent(17,68312.27); h_SL1L160->SetBinContent(18,71935.94); h_SL1L160->SetBinContent(19,74172.55); h_SL1L160->SetBinContent(20,74670.73); h_SL1L160->SetBinContent(21,77865.7); h_SL1L160->SetBinContent(22,78179.04); h_SL1L160->SetBinContent(23,78786.04); h_SL1L160->SetBinContent(24,79277.68); h_SL1L160->SetBinContent(25,79773.24); h_SL1L160->SetBinContent(26,73446.23); h_SL1L160->SetBinContent(27,74710.06); h_SL1L160->SetBinContent(28,77206.26); h_SL1L160->SetBinContent(29,77329.49); h_SL1L160->SetBinContent(30,77451.42); h_SL1L160->SetBinContent(31,79581.84); h_SL1L160->SetBinContent(32,88545.31); h_SL1L160->SetBinContent(33,161222); h_SL1L160->SetBinContent(34,149485.7); h_SL1L160->SetBinContent(35,132399.1); h_SL1L160->SetBinContent(36,115919.5); h_SL1L160->SetBinContent(37,104975.1); h_SL1L160->SetBinContent(38,95380.99); h_SL1L160->SetBinContent(39,83333.98); h_SL1L160->SetBinContent(40,70256.52); h_SL1L160->SetBinContent(41,69542.01); h_SL1L160->SetBinContent(42,69022.84); h_SL1L160->SetBinContent(43,67646.27); h_SL1L160->SetBinContent(44,66204.13); h_SL1L160->SetBinContent(45,64152.38); h_SL1L160->SetBinContent(46,63420.83); h_SL1L160->SetBinContent(47,63907.22); h_SL1L160->SetBinContent(48,62538.51); h_SL1L160->SetBinContent(49,61594.57); h_SL1L160->SetBinContent(50,61856.78); h_SL1L160->SetBinContent(51,59219); h_SL1L160->SetBinContent(52,58659.19); h_SL1L160->SetBinContent(53,58482.2); h_SL1L160->SetBinContent(54,56831.62); h_SL1L160->SetBinContent(55,57387.49); h_SL1L160->SetBinContent(56,56152.51); h_SL1L160->SetBinContent(57,55907.35); h_SL1L160->SetBinContent(58,54783.8); h_SL1L160->SetBinContent(59,54440.31); h_SL1L160->SetMaximum(213215.7); 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(3,1.311025); h_SL1L261->SetBinContent(4,1.311025); h_SL1L261->SetBinContent(18,1.311025); h_SL1L261->SetBinContent(37,1.311025); h_SL1L261->SetBinContent(38,1.311025); h_SL1L261->SetBinContent(49,180.9214); h_SL1L261->SetBinContent(50,1.311025); h_SL1L261->SetBinContent(56,1.311025); h_SL1L261->SetMaximum(185405.3); 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(6,1.311025); h_SL1L362->SetBinContent(17,1.311025); h_SL1L362->SetBinContent(18,1.311025); h_SL1L362->SetBinContent(37,1.311025); h_SL1L362->SetBinContent(49,2.62205); h_SL1L362->SetBinContent(50,1.311025); h_SL1L362->SetBinContent(53,1.311025); h_SL1L362->SetMaximum(185405.3); 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,74331.18); h_SL1L463->SetBinContent(3,71474.45); h_SL1L463->SetBinContent(4,72561.3); h_SL1L463->SetBinContent(5,70910.72); h_SL1L463->SetBinContent(6,72570.47); h_SL1L463->SetBinContent(7,71509.85); h_SL1L463->SetBinContent(8,72195.52); h_SL1L463->SetBinContent(9,71356.46); h_SL1L463->SetBinContent(10,68571.84); h_SL1L463->SetBinContent(11,64044.88); h_SL1L463->SetBinContent(12,61961.66); h_SL1L463->SetBinContent(13,62067.85); h_SL1L463->SetBinContent(14,65358.52); h_SL1L463->SetBinContent(15,66934.38); h_SL1L463->SetBinContent(16,64734.48); h_SL1L463->SetBinContent(17,62846.6); h_SL1L463->SetBinContent(18,63873.13); h_SL1L463->SetBinContent(19,68008.11); h_SL1L463->SetBinContent(20,68297.84); h_SL1L463->SetBinContent(21,70145.08); h_SL1L463->SetBinContent(22,71789.1); h_SL1L463->SetBinContent(23,71470.52); h_SL1L463->SetBinContent(24,72937.56); h_SL1L463->SetBinContent(25,73387.24); h_SL1L463->SetBinContent(26,71617.36); h_SL1L463->SetBinContent(27,68752.77); h_SL1L463->SetBinContent(28,69151.32); h_SL1L463->SetBinContent(29,71659.31); h_SL1L463->SetBinContent(30,73482.95); h_SL1L463->SetBinContent(31,72624.23); h_SL1L463->SetBinContent(32,77692.65); h_SL1L463->SetBinContent(33,119106.6); h_SL1L463->SetBinContent(34,159290.8); h_SL1L463->SetBinContent(35,137964.4); h_SL1L463->SetBinContent(36,119638.9); h_SL1L463->SetBinContent(37,103475.3); h_SL1L463->SetBinContent(38,92997.55); h_SL1L463->SetBinContent(39,84709.25); h_SL1L463->SetBinContent(40,69429.26); h_SL1L463->SetBinContent(41,63940); h_SL1L463->SetBinContent(42,64434.25); h_SL1L463->SetBinContent(43,63499.49); h_SL1L463->SetBinContent(44,62048.19); h_SL1L463->SetBinContent(45,59814.2); h_SL1L463->SetBinContent(46,60657.19); h_SL1L463->SetBinContent(47,58449.42); h_SL1L463->SetBinContent(48,57436); h_SL1L463->SetBinContent(49,55810.33); h_SL1L463->SetBinContent(50,55819.51); h_SL1L463->SetBinContent(51,56221.99); h_SL1L463->SetBinContent(52,53631.41); h_SL1L463->SetBinContent(53,53970.96); h_SL1L463->SetBinContent(54,51949.36); h_SL1L463->SetBinContent(56,52991.62); h_SL1L463->SetBinContent(57,51136.53); h_SL1L463->SetBinContent(58,51174.55); h_SL1L463->SetBinContent(59,49563.3); h_SL1L463->SetMaximum(185405.3); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 5441"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }