void RatesPerCell_Removing_noisy_cells_run_6534_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:41:00 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-32589.85,67.5,293308.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6534",60,0,60); h_SL2L164->SetBinContent(1,47096.82); h_SL2L164->SetBinContent(2,59652.51); h_SL2L164->SetBinContent(3,71992.88); h_SL2L164->SetBinContent(4,72148.8); h_SL2L164->SetBinContent(5,71413.72); h_SL2L164->SetBinContent(6,67426.49); h_SL2L164->SetBinContent(7,58702.11); h_SL2L164->SetBinContent(8,56920.11); h_SL2L164->SetBinContent(9,65495.99); h_SL2L164->SetBinContent(10,66839.91); h_SL2L164->SetBinContent(11,67344.82); h_SL2L164->SetBinContent(12,64204.04); h_SL2L164->SetBinContent(13,64872.29); h_SL2L164->SetBinContent(14,63550.64); h_SL2L164->SetBinContent(15,64708.94); h_SL2L164->SetBinContent(16,61931.98); h_SL2L164->SetBinContent(17,60209.38); h_SL2L164->SetBinContent(18,58249.18); h_SL2L164->SetBinContent(19,56689.93); h_SL2L164->SetBinContent(20,51841.4); h_SL2L164->SetBinContent(21,47527.47); h_SL2L164->SetBinContent(22,42092.37); h_SL2L164->SetBinContent(23,41238.49); h_SL2L164->SetBinContent(24,37533.41); h_SL2L164->SetBinContent(25,38996.14); h_SL2L164->SetBinContent(26,53519.45); h_SL2L164->SetBinContent(27,63498.66); h_SL2L164->SetBinContent(28,69750.52); h_SL2L164->SetBinContent(29,72312.15); h_SL2L164->SetBinContent(30,71413.72); h_SL2L164->SetBinContent(31,71198.4); h_SL2L164->SetBinContent(32,73455.59); h_SL2L164->SetBinContent(33,72349.27); h_SL2L164->SetBinContent(34,52977.43); h_SL2L164->SetBinContent(36,26254.83); h_SL2L164->SetBinContent(37,30427.68); h_SL2L164->SetBinContent(38,27049.3); h_SL2L164->SetBinContent(39,29803.98); h_SL2L164->SetBinContent(40,46985.45); h_SL2L164->SetBinContent(41,197141.4); h_SL2L164->SetBinContent(42,35164.84); h_SL2L164->SetBinContent(43,35654.89); h_SL2L164->SetBinContent(44,35016.34); h_SL2L164->SetBinContent(45,22052.27); h_SL2L164->SetBinContent(46,21250.37); h_SL2L164->SetBinContent(47,21406.3); h_SL2L164->SetBinContent(48,20812.29); h_SL2L164->SetBinContent(49,22809.62); h_SL2L164->SetBinContent(50,21636.47); h_SL2L164->SetBinContent(51,23901.1); h_SL2L164->SetBinContent(52,28073.95); h_SL2L164->SetBinContent(53,30969.71); h_SL2L164->SetBinContent(54,32751.71); h_SL2L164->SetBinContent(55,32202.26); h_SL2L164->SetBinContent(56,26640.93); h_SL2L164->SetBinContent(57,30041.58); h_SL2L164->SetMaximum(260718.8); 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,38713.99); h_SL2L265->SetBinContent(2,57009.21); h_SL2L265->SetBinContent(3,62310.66); h_SL2L265->SetBinContent(4,71220.67); h_SL2L265->SetBinContent(5,69408.97); h_SL2L265->SetBinContent(6,63936.74); h_SL2L265->SetBinContent(7,61820.61); h_SL2L265->SetBinContent(8,51893.38); h_SL2L265->SetBinContent(9,61360.26); h_SL2L265->SetBinContent(10,63617.46); h_SL2L265->SetBinContent(11,65288.09); h_SL2L265->SetBinContent(12,62266.11); h_SL2L265->SetBinContent(13,64567.86); h_SL2L265->SetBinContent(14,62117.61); h_SL2L265->SetBinContent(15,61701.81); h_SL2L265->SetBinContent(16,60692.01); h_SL2L265->SetBinContent(17,58553.61); h_SL2L265->SetBinContent(18,57024.05); h_SL2L265->SetBinContent(19,55702.41); h_SL2L265->SetBinContent(20,50512.32); h_SL2L265->SetBinContent(21,47586.87); h_SL2L265->SetBinContent(22,42352.24); h_SL2L265->SetBinContent(23,39359.96); h_SL2L265->SetBinContent(24,37503.71); h_SL2L265->SetBinContent(25,34251.56); h_SL2L265->SetBinContent(26,45240.57); h_SL2L265->SetBinContent(27,57521.53); h_SL2L265->SetBinContent(28,67500.74); h_SL2L265->SetBinContent(29,68948.62); h_SL2L265->SetBinContent(30,72275.02); h_SL2L265->SetBinContent(31,69438.67); h_SL2L265->SetBinContent(32,71235.52); h_SL2L265->SetBinContent(33,72824.47); h_SL2L265->SetBinContent(34,65362.34); h_SL2L265->SetBinContent(35,37325.51); h_SL2L265->SetBinContent(36,26373.63); h_SL2L265->SetBinContent(37,23544.7); h_SL2L265->SetBinContent(38,23529.85); h_SL2L265->SetBinContent(39,25742.5); h_SL2L265->SetBinContent(40,27710.13); h_SL2L265->SetBinContent(41,26329.08); h_SL2L265->SetBinContent(42,24450.55); h_SL2L265->SetBinContent(43,24272.35); h_SL2L265->SetBinContent(44,24131.27); h_SL2L265->SetBinContent(45,22171.07); h_SL2L265->SetBinContent(46,20589.54); h_SL2L265->SetBinContent(47,19980.7); h_SL2L265->SetBinContent(48,20099.49); h_SL2L265->SetBinContent(49,21643.9); h_SL2L265->SetBinContent(50,21807.25); h_SL2L265->SetBinContent(51,21087.02); h_SL2L265->SetBinContent(52,24769.82); h_SL2L265->SetBinContent(53,27776.95); h_SL2L265->SetBinContent(54,30427.68); h_SL2L265->SetBinContent(55,30353.43); h_SL2L265->SetBinContent(56,27695.28); h_SL2L265->SetBinContent(57,24858.92); h_SL2L265->SetMaximum(226712.6); 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,45158.89); h_SL2L366->SetBinContent(2,53809.03); h_SL2L366->SetBinContent(3,66795.37); h_SL2L366->SetBinContent(4,67441.34); h_SL2L366->SetBinContent(5,64731.21); h_SL2L366->SetBinContent(6,59511.43); h_SL2L366->SetBinContent(7,53645.68); h_SL2L366->SetBinContent(8,55509.36); h_SL2L366->SetBinContent(9,60521.23); h_SL2L366->SetBinContent(10,62080.49); h_SL2L366->SetBinContent(11,61449.36); h_SL2L366->SetBinContent(12,60877.64); h_SL2L366->SetBinContent(13,60840.51); h_SL2L366->SetBinContent(14,60008.91); h_SL2L366->SetBinContent(15,60135.13); h_SL2L366->SetBinContent(16,58063.56); h_SL2L366->SetBinContent(17,53103.65); h_SL2L366->SetBinContent(18,55219.78); h_SL2L366->SetBinContent(19,51373.62); h_SL2L366->SetBinContent(20,47520.05); h_SL2L366->SetBinContent(21,42871.99); h_SL2L366->SetBinContent(22,39278.29); h_SL2L366->SetBinContent(23,37006.24); h_SL2L366->SetBinContent(24,35335.61); h_SL2L366->SetBinContent(25,37221.56); h_SL2L366->SetBinContent(26,50527.18); h_SL2L366->SetBinContent(27,62481.44); h_SL2L366->SetBinContent(28,67159.2); h_SL2L366->SetBinContent(29,70158.89); h_SL2L366->SetBinContent(30,69854.47); h_SL2L366->SetBinContent(31,69631.72); h_SL2L366->SetBinContent(32,71265.22); h_SL2L366->SetBinContent(33,70700.92); h_SL2L366->SetBinContent(34,50207.9); h_SL2L366->SetBinContent(35,28653.1); h_SL2L366->SetBinContent(36,23915.95); h_SL2L366->SetBinContent(37,22512.62); h_SL2L366->SetBinContent(38,22624); h_SL2L366->SetBinContent(39,23507.57); h_SL2L366->SetBinContent(40,25801.9); h_SL2L366->SetBinContent(41,24547.07); h_SL2L366->SetBinContent(42,22891.3); h_SL2L366->SetBinContent(43,21866.65); h_SL2L366->SetBinContent(44,21614.2); h_SL2L366->SetBinContent(45,21369.17); h_SL2L366->SetBinContent(46,19401.54); h_SL2L366->SetBinContent(47,20129.2); h_SL2L366->SetBinContent(48,20032.67); h_SL2L366->SetBinContent(49,20359.37); h_SL2L366->SetBinContent(50,20708.35); h_SL2L366->SetBinContent(51,22245.32); h_SL2L366->SetBinContent(52,26165.73); h_SL2L366->SetBinContent(53,28638.25); h_SL2L366->SetBinContent(54,30509.36); h_SL2L366->SetBinContent(55,30665.28); h_SL2L366->SetBinContent(56,24561.92); h_SL2L366->SetBinContent(57,23841.7); h_SL2L366->SetMaximum(226712.6); 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,53118.5); h_SL2L467->SetBinContent(3,57759.13); h_SL2L467->SetBinContent(4,65213.84); h_SL2L467->SetBinContent(5,64538.16); h_SL2L467->SetBinContent(6,59229.29); h_SL2L467->SetBinContent(7,55724.68); h_SL2L467->SetBinContent(8,49703); h_SL2L467->SetBinContent(9,57610.63); h_SL2L467->SetBinContent(10,59392.63); h_SL2L467->SetBinContent(11,60870.21); h_SL2L467->SetBinContent(12,59474.31); h_SL2L467->SetBinContent(13,58657.56); h_SL2L467->SetBinContent(14,59296.11); h_SL2L467->SetBinContent(15,58033.86); h_SL2L467->SetBinContent(16,55316.3); h_SL2L467->SetBinContent(17,52791.8); h_SL2L467->SetBinContent(18,52168.1); h_SL2L467->SetBinContent(19,50772.2); h_SL2L467->SetBinContent(20,47624); h_SL2L467->SetBinContent(21,43651.62); h_SL2L467->SetBinContent(22,38855.06); h_SL2L467->SetBinContent(23,38268.49); h_SL2L467->SetBinContent(24,35001.48); h_SL2L467->SetBinContent(25,32818.53); h_SL2L467->SetBinContent(26,42419.07); h_SL2L467->SetBinContent(27,56378.08); h_SL2L467->SetBinContent(28,65815.27); h_SL2L467->SetBinContent(29,67894.27); h_SL2L467->SetBinContent(30,71784.97); h_SL2L467->SetBinContent(31,69015.45); h_SL2L467->SetBinContent(32,69564.89); h_SL2L467->SetBinContent(33,71829.52); h_SL2L467->SetBinContent(34,63491.24); h_SL2L467->SetBinContent(35,35276.21); h_SL2L467->SetBinContent(36,24242.65); h_SL2L467->SetBinContent(37,23321.95); h_SL2L467->SetBinContent(38,22111.67); h_SL2L467->SetBinContent(39,22921); h_SL2L467->SetBinContent(40,22193.35); h_SL2L467->SetBinContent(41,22015.15); h_SL2L467->SetBinContent(42,23307.1); h_SL2L467->SetBinContent(43,22015.15); h_SL2L467->SetBinContent(44,22364.12); h_SL2L467->SetBinContent(45,19906.45); h_SL2L467->SetBinContent(46,19312.44); h_SL2L467->SetBinContent(47,19163.94); h_SL2L467->SetBinContent(48,18807.54); h_SL2L467->SetBinContent(49,19356.99); h_SL2L467->SetBinContent(50,20351.95); h_SL2L467->SetBinContent(51,20025.24); h_SL2L467->SetBinContent(52,23032.37); h_SL2L467->SetBinContent(53,25928.12); h_SL2L467->SetBinContent(54,28341.25); h_SL2L467->SetBinContent(55,30034.15); h_SL2L467->SetBinContent(56,26150.88); h_SL2L467->SetBinContent(57,23663.5); h_SL2L467->SetMaximum(226712.6); 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 6534"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }