void RatesPerCell_Removing_noisy_cells_run_7476_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:39:05 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-21585.07,67.5,194265.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7476",60,0,60); h_SL2L164->SetBinContent(1,17200); h_SL2L164->SetBinContent(2,22964.29); h_SL2L164->SetBinContent(3,34028.57); h_SL2L164->SetBinContent(4,41085.71); h_SL2L164->SetBinContent(5,43507.14); h_SL2L164->SetBinContent(6,48607.14); h_SL2L164->SetBinContent(7,69614.28); h_SL2L164->SetBinContent(8,83164.28); h_SL2L164->SetBinContent(9,107178.6); h_SL2L164->SetBinContent(10,120378.6); h_SL2L164->SetBinContent(11,126814.3); h_SL2L164->SetBinContent(12,130121.4); h_SL2L164->SetBinContent(13,130571.4); h_SL2L164->SetBinContent(14,129800); h_SL2L164->SetBinContent(15,127321.4); h_SL2L164->SetBinContent(16,127528.6); h_SL2L164->SetBinContent(17,123021.4); h_SL2L164->SetBinContent(18,120192.9); h_SL2L164->SetBinContent(19,120300); h_SL2L164->SetBinContent(20,115942.9); h_SL2L164->SetBinContent(21,110707.1); h_SL2L164->SetBinContent(22,104307.1); h_SL2L164->SetBinContent(23,94892.86); h_SL2L164->SetBinContent(24,88435.71); h_SL2L164->SetBinContent(25,82742.86); h_SL2L164->SetBinContent(26,78957.14); h_SL2L164->SetBinContent(27,79300); h_SL2L164->SetBinContent(28,78371.43); h_SL2L164->SetBinContent(29,80057.14); h_SL2L164->SetBinContent(30,76521.43); h_SL2L164->SetBinContent(31,73507.14); h_SL2L164->SetBinContent(32,81692.86); h_SL2L164->SetBinContent(33,82850); h_SL2L164->SetBinContent(34,83085.71); h_SL2L164->SetBinContent(36,83900); h_SL2L164->SetBinContent(37,88385.71); h_SL2L164->SetBinContent(38,87228.57); h_SL2L164->SetBinContent(39,90121.43); h_SL2L164->SetBinContent(40,94100); h_SL2L164->SetBinContent(41,108300); h_SL2L164->SetBinContent(42,89957.14); h_SL2L164->SetBinContent(43,89600); h_SL2L164->SetBinContent(44,87992.86); h_SL2L164->SetBinContent(45,77300); h_SL2L164->SetBinContent(46,73378.57); h_SL2L164->SetBinContent(47,74128.57); h_SL2L164->SetBinContent(48,69214.28); h_SL2L164->SetBinContent(49,71214.28); h_SL2L164->SetBinContent(50,70157.14); h_SL2L164->SetBinContent(51,78378.57); h_SL2L164->SetBinContent(52,89342.86); h_SL2L164->SetBinContent(53,101007.1); h_SL2L164->SetBinContent(54,106507.1); h_SL2L164->SetBinContent(55,107400); h_SL2L164->SetBinContent(56,91621.43); h_SL2L164->SetBinContent(57,76150); h_SL2L164->SetMaximum(172680.5); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,13950); h_SL2L265->SetBinContent(2,19971.43); h_SL2L265->SetBinContent(3,27800); h_SL2L265->SetBinContent(4,38864.29); h_SL2L265->SetBinContent(5,39500); h_SL2L265->SetBinContent(6,46350); h_SL2L265->SetBinContent(7,58021.43); h_SL2L265->SetBinContent(8,70035.71); h_SL2L265->SetBinContent(9,96385.71); h_SL2L265->SetBinContent(10,108907.1); h_SL2L265->SetBinContent(11,120392.9); h_SL2L265->SetBinContent(12,123871.4); h_SL2L265->SetBinContent(13,125050); h_SL2L265->SetBinContent(14,126064.3); h_SL2L265->SetBinContent(15,125014.3); h_SL2L265->SetBinContent(16,122000); h_SL2L265->SetBinContent(17,119800); h_SL2L265->SetBinContent(18,118242.9); h_SL2L265->SetBinContent(19,117207.1); h_SL2L265->SetBinContent(20,112185.7); h_SL2L265->SetBinContent(21,110350); h_SL2L265->SetBinContent(22,102392.9); h_SL2L265->SetBinContent(23,96114.28); h_SL2L265->SetBinContent(24,87942.86); h_SL2L265->SetBinContent(25,82528.57); h_SL2L265->SetBinContent(26,76392.86); h_SL2L265->SetBinContent(27,76964.28); h_SL2L265->SetBinContent(28,75864.28); h_SL2L265->SetBinContent(29,77228.57); h_SL2L265->SetBinContent(30,75528.57); h_SL2L265->SetBinContent(31,69042.86); h_SL2L265->SetBinContent(32,77164.28); h_SL2L265->SetBinContent(33,79207.14); h_SL2L265->SetBinContent(34,80528.57); h_SL2L265->SetBinContent(35,78585.71); h_SL2L265->SetBinContent(36,78578.57); h_SL2L265->SetBinContent(37,80814.28); h_SL2L265->SetBinContent(38,84464.28); h_SL2L265->SetBinContent(39,83678.57); h_SL2L265->SetBinContent(40,84735.71); h_SL2L265->SetBinContent(41,81685.71); h_SL2L265->SetBinContent(42,82492.86); h_SL2L265->SetBinContent(43,81692.86); h_SL2L265->SetBinContent(44,79207.14); h_SL2L265->SetBinContent(45,76921.43); h_SL2L265->SetBinContent(46,74342.86); h_SL2L265->SetBinContent(47,69785.71); h_SL2L265->SetBinContent(48,69250); h_SL2L265->SetBinContent(49,65835.71); h_SL2L265->SetBinContent(50,69557.14); h_SL2L265->SetBinContent(51,68335.71); h_SL2L265->SetBinContent(52,80307.14); h_SL2L265->SetBinContent(53,92135.71); h_SL2L265->SetBinContent(54,102107.1); h_SL2L265->SetBinContent(55,105050); h_SL2L265->SetBinContent(56,93814.28); h_SL2L265->SetBinContent(57,88235.71); h_SL2L265->SetMaximum(150157.1); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,17828.57); h_SL2L366->SetBinContent(2,23021.43); h_SL2L366->SetBinContent(3,33364.29); h_SL2L366->SetBinContent(4,39335.71); h_SL2L366->SetBinContent(5,43021.43); h_SL2L366->SetBinContent(6,48942.86); h_SL2L366->SetBinContent(7,66478.57); h_SL2L366->SetBinContent(8,81821.43); h_SL2L366->SetBinContent(9,101407.1); h_SL2L366->SetBinContent(10,111285.7); h_SL2L366->SetBinContent(11,118921.4); h_SL2L366->SetBinContent(12,119950); h_SL2L366->SetBinContent(13,120214.3); h_SL2L366->SetBinContent(14,122450); h_SL2L366->SetBinContent(15,120414.3); h_SL2L366->SetBinContent(16,116478.6); h_SL2L366->SetBinContent(17,114871.4); h_SL2L366->SetBinContent(18,114364.3); h_SL2L366->SetBinContent(19,110214.3); h_SL2L366->SetBinContent(20,107000); h_SL2L366->SetBinContent(21,102750); h_SL2L366->SetBinContent(22,96535.71); h_SL2L366->SetBinContent(23,88664.28); h_SL2L366->SetBinContent(24,81871.43); h_SL2L366->SetBinContent(25,77600); h_SL2L366->SetBinContent(26,74557.14); h_SL2L366->SetBinContent(27,73764.28); h_SL2L366->SetBinContent(28,73100); h_SL2L366->SetBinContent(29,73507.14); h_SL2L366->SetBinContent(30,70907.14); h_SL2L366->SetBinContent(31,70292.86); h_SL2L366->SetBinContent(32,74785.71); h_SL2L366->SetBinContent(33,76078.57); h_SL2L366->SetBinContent(34,77728.57); h_SL2L366->SetBinContent(35,76500); h_SL2L366->SetBinContent(36,77235.71); h_SL2L366->SetBinContent(37,79357.14); h_SL2L366->SetBinContent(38,81142.86); h_SL2L366->SetBinContent(39,81114.28); h_SL2L366->SetBinContent(40,80128.57); h_SL2L366->SetBinContent(41,78321.43); h_SL2L366->SetBinContent(42,77800); h_SL2L366->SetBinContent(43,77942.86); h_SL2L366->SetBinContent(44,75928.57); h_SL2L366->SetBinContent(45,72685.71); h_SL2L366->SetBinContent(46,69771.43); h_SL2L366->SetBinContent(47,67835.71); h_SL2L366->SetBinContent(48,64407.14); h_SL2L366->SetBinContent(49,66678.57); h_SL2L366->SetBinContent(50,66278.57); h_SL2L366->SetBinContent(51,71350); h_SL2L366->SetBinContent(52,81807.14); h_SL2L366->SetBinContent(53,93007.14); h_SL2L366->SetBinContent(54,99807.14); h_SL2L366->SetBinContent(55,101207.1); h_SL2L366->SetBinContent(56,83464.28); h_SL2L366->SetBinContent(57,81185.71); h_SL2L366->SetMaximum(150157.1); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,21042.86); h_SL2L467->SetBinContent(3,28514.29); h_SL2L467->SetBinContent(4,34878.57); h_SL2L467->SetBinContent(5,39435.71); h_SL2L467->SetBinContent(6,42014.29); h_SL2L467->SetBinContent(7,50300); h_SL2L467->SetBinContent(8,67721.43); h_SL2L467->SetBinContent(9,89600); h_SL2L467->SetBinContent(10,101157.1); h_SL2L467->SetBinContent(11,111928.6); h_SL2L467->SetBinContent(12,116785.7); h_SL2L467->SetBinContent(13,114814.3); h_SL2L467->SetBinContent(14,117678.6); h_SL2L467->SetBinContent(15,115078.6); h_SL2L467->SetBinContent(16,115014.3); h_SL2L467->SetBinContent(17,113142.9); h_SL2L467->SetBinContent(18,110135.7); h_SL2L467->SetBinContent(19,110385.7); h_SL2L467->SetBinContent(20,104000); h_SL2L467->SetBinContent(21,102207.1); h_SL2L467->SetBinContent(22,95400); h_SL2L467->SetBinContent(23,89728.57); h_SL2L467->SetBinContent(24,81664.28); h_SL2L467->SetBinContent(25,78900); h_SL2L467->SetBinContent(26,72992.86); h_SL2L467->SetBinContent(27,72000); h_SL2L467->SetBinContent(28,72257.14); h_SL2L467->SetBinContent(29,71778.57); h_SL2L467->SetBinContent(30,71385.71); h_SL2L467->SetBinContent(31,64585.71); h_SL2L467->SetBinContent(32,71064.28); h_SL2L467->SetBinContent(33,74742.86); h_SL2L467->SetBinContent(34,75050); h_SL2L467->SetBinContent(35,75600); h_SL2L467->SetBinContent(36,73728.57); h_SL2L467->SetBinContent(37,76842.86); h_SL2L467->SetBinContent(38,77200); h_SL2L467->SetBinContent(39,79264.28); h_SL2L467->SetBinContent(40,77100); h_SL2L467->SetBinContent(41,76807.14); h_SL2L467->SetBinContent(42,75428.57); h_SL2L467->SetBinContent(43,75335.71); h_SL2L467->SetBinContent(44,74200); h_SL2L467->SetBinContent(45,71235.71); h_SL2L467->SetBinContent(46,69607.14); h_SL2L467->SetBinContent(47,67478.57); h_SL2L467->SetBinContent(48,64435.71); h_SL2L467->SetBinContent(49,63857.14); h_SL2L467->SetBinContent(50,65728.57); h_SL2L467->SetBinContent(51,63850); h_SL2L467->SetBinContent(52,74085.71); h_SL2L467->SetBinContent(53,84100); h_SL2L467->SetBinContent(54,92371.43); h_SL2L467->SetBinContent(55,97321.43); h_SL2L467->SetBinContent(56,88778.57); h_SL2L467->SetBinContent(57,80242.86); h_SL2L467->SetMaximum(150157.1); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 7476"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }