void RatesPerCell_Removing_noisy_cells_run_5471_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:43:53 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-26507.07,67.5,238563.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5471",60,0,60); h_SL1L160->SetBinContent(1,81402.86); h_SL1L160->SetBinContent(2,80155.72); h_SL1L160->SetBinContent(3,77845.72); h_SL1L160->SetBinContent(4,79041.43); h_SL1L160->SetBinContent(5,77271.43); h_SL1L160->SetBinContent(6,79674.29); h_SL1L160->SetBinContent(7,78354.29); h_SL1L160->SetBinContent(8,77917.15); h_SL1L160->SetBinContent(9,75788.57); h_SL1L160->SetBinContent(10,71375.72); h_SL1L160->SetBinContent(11,68337.14); h_SL1L160->SetBinContent(12,66397.14); h_SL1L160->SetBinContent(13,68251.43); h_SL1L160->SetBinContent(14,70395.72); h_SL1L160->SetBinContent(15,71842.86); h_SL1L160->SetBinContent(16,66632.86); h_SL1L160->SetBinContent(17,67888.57); h_SL1L160->SetBinContent(18,70574.29); h_SL1L160->SetBinContent(19,73224.29); h_SL1L160->SetBinContent(20,74160); h_SL1L160->SetBinContent(21,76898.57); h_SL1L160->SetBinContent(22,77215.72); h_SL1L160->SetBinContent(23,77614.29); h_SL1L160->SetBinContent(24,77650); h_SL1L160->SetBinContent(25,77918.57); h_SL1L160->SetBinContent(26,71730); h_SL1L160->SetBinContent(27,73152.86); h_SL1L160->SetBinContent(28,75518.57); h_SL1L160->SetBinContent(29,75075.72); h_SL1L160->SetBinContent(30,74712.86); h_SL1L160->SetBinContent(31,75284.29); h_SL1L160->SetBinContent(32,76182.86); h_SL1L160->SetBinContent(33,88322.86); h_SL1L160->SetBinContent(34,95774.29); h_SL1L160->SetBinContent(35,104641.4); h_SL1L160->SetBinContent(36,119307.1); h_SL1L160->SetBinContent(37,150168.6); h_SL1L160->SetBinContent(38,160345.7); h_SL1L160->SetBinContent(39,121455.7); h_SL1L160->SetBinContent(40,73762.86); h_SL1L160->SetBinContent(41,70055.72); h_SL1L160->SetBinContent(42,69644.29); h_SL1L160->SetBinContent(43,67592.86); h_SL1L160->SetBinContent(44,66168.57); h_SL1L160->SetBinContent(45,64432.86); h_SL1L160->SetBinContent(46,63400); h_SL1L160->SetBinContent(47,63198.57); h_SL1L160->SetBinContent(48,61582.86); h_SL1L160->SetBinContent(49,60712.86); h_SL1L160->SetBinContent(50,61377.14); h_SL1L160->SetBinContent(51,59471.43); h_SL1L160->SetBinContent(52,58342.86); h_SL1L160->SetBinContent(53,58498.57); h_SL1L160->SetBinContent(54,56620); h_SL1L160->SetBinContent(55,57771.43); h_SL1L160->SetBinContent(56,55848.57); h_SL1L160->SetBinContent(57,54555.71); h_SL1L160->SetBinContent(58,53608.57); h_SL1L160->SetBinContent(59,54134.29); h_SL1L160->SetMaximum(212056.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(40,1.428571); h_SL1L261->SetBinContent(49,230); h_SL1L261->SetMaximum(184397.6); 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(23,1.428571); h_SL1L362->SetBinContent(25,1.428571); h_SL1L362->SetBinContent(40,1.428571); h_SL1L362->SetBinContent(49,1.428571); h_SL1L362->SetBinContent(50,1.428571); h_SL1L362->SetBinContent(53,2.857143); h_SL1L362->SetMaximum(184397.6); 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,74030); h_SL1L463->SetBinContent(3,71540); h_SL1L463->SetBinContent(4,72808.57); h_SL1L463->SetBinContent(5,70961.43); h_SL1L463->SetBinContent(6,72705.72); h_SL1L463->SetBinContent(7,71120); h_SL1L463->SetBinContent(8,71374.29); h_SL1L463->SetBinContent(9,70965.72); h_SL1L463->SetBinContent(10,67528.57); h_SL1L463->SetBinContent(11,63382.86); h_SL1L463->SetBinContent(12,61937.14); h_SL1L463->SetBinContent(13,62051.43); h_SL1L463->SetBinContent(14,65175.71); h_SL1L463->SetBinContent(15,66181.43); h_SL1L463->SetBinContent(16,64378.57); h_SL1L463->SetBinContent(17,62382.86); h_SL1L463->SetBinContent(18,63250); h_SL1L463->SetBinContent(19,66498.57); h_SL1L463->SetBinContent(20,67635.72); h_SL1L463->SetBinContent(21,69307.14); h_SL1L463->SetBinContent(22,71725.72); h_SL1L463->SetBinContent(23,71164.29); h_SL1L463->SetBinContent(24,72344.29); h_SL1L463->SetBinContent(25,71205.72); h_SL1L463->SetBinContent(26,71277.15); h_SL1L463->SetBinContent(27,66632.86); h_SL1L463->SetBinContent(28,66747.14); h_SL1L463->SetBinContent(29,70548.57); h_SL1L463->SetBinContent(30,70965.72); h_SL1L463->SetBinContent(31,70361.43); h_SL1L463->SetBinContent(32,70060); h_SL1L463->SetBinContent(33,75535.72); h_SL1L463->SetBinContent(34,89301.43); h_SL1L463->SetBinContent(35,95398.57); h_SL1L463->SetBinContent(36,105938.6); h_SL1L463->SetBinContent(37,125672.9); h_SL1L463->SetBinContent(38,154431.4); h_SL1L463->SetBinContent(39,144672.9); h_SL1L463->SetBinContent(40,82052.86); h_SL1L463->SetBinContent(41,67304.29); h_SL1L463->SetBinContent(42,64484.29); h_SL1L463->SetBinContent(43,63181.43); h_SL1L463->SetBinContent(44,61765.71); h_SL1L463->SetBinContent(45,59634.29); h_SL1L463->SetBinContent(46,59937.14); h_SL1L463->SetBinContent(47,58207.14); h_SL1L463->SetBinContent(48,57958.57); h_SL1L463->SetBinContent(49,55704.29); h_SL1L463->SetBinContent(50,55804.29); h_SL1L463->SetBinContent(51,55414.29); h_SL1L463->SetBinContent(52,53627.14); h_SL1L463->SetBinContent(53,53771.43); h_SL1L463->SetBinContent(54,52421.43); h_SL1L463->SetBinContent(56,52831.43); h_SL1L463->SetBinContent(57,51348.57); h_SL1L463->SetBinContent(58,50477.14); h_SL1L463->SetBinContent(59,48932.86); h_SL1L463->SetMaximum(184397.6); 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 5471"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }