void RatesPerCell_Removing_noisy_cells_run_5424_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:22:25 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16479.93,67.5,148319.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5424",60,0,60); h_SL1L160->SetBinContent(1,492.8571); h_SL1L160->SetBinContent(2,508.5714); h_SL1L160->SetBinContent(3,554.2857); h_SL1L160->SetBinContent(4,554.2857); h_SL1L160->SetBinContent(5,550); h_SL1L160->SetBinContent(6,578.5715); h_SL1L160->SetBinContent(7,690); h_SL1L160->SetBinContent(8,710); h_SL1L160->SetBinContent(9,610); h_SL1L160->SetBinContent(10,784.2857); h_SL1L160->SetBinContent(11,852.8572); h_SL1L160->SetBinContent(12,948.5715); h_SL1L160->SetBinContent(13,1001.429); h_SL1L160->SetBinContent(14,1131.429); h_SL1L160->SetBinContent(15,1044.286); h_SL1L160->SetBinContent(16,1008.571); h_SL1L160->SetBinContent(17,1305.714); h_SL1L160->SetBinContent(18,1411.429); h_SL1L160->SetBinContent(19,1612.857); h_SL1L160->SetBinContent(20,1822.857); h_SL1L160->SetBinContent(21,2075.714); h_SL1L160->SetBinContent(22,2242.857); h_SL1L160->SetBinContent(23,2427.143); h_SL1L160->SetBinContent(24,2610); h_SL1L160->SetBinContent(25,2741.429); h_SL1L160->SetBinContent(26,3098.572); h_SL1L160->SetBinContent(27,3561.429); h_SL1L160->SetBinContent(28,4524.286); h_SL1L160->SetBinContent(29,4841.429); h_SL1L160->SetBinContent(30,5817.143); h_SL1L160->SetBinContent(31,9064.286); h_SL1L160->SetBinContent(32,19447.14); h_SL1L160->SetBinContent(33,99174.29); h_SL1L160->SetBinContent(34,85232.86); h_SL1L160->SetBinContent(35,67665.72); h_SL1L160->SetBinContent(36,50455.71); h_SL1L160->SetBinContent(37,37651.43); h_SL1L160->SetBinContent(38,28472.86); h_SL1L160->SetBinContent(39,17341.43); h_SL1L160->SetBinContent(40,5702.857); h_SL1L160->SetBinContent(41,4342.857); h_SL1L160->SetBinContent(42,3740); h_SL1L160->SetBinContent(43,3485.714); h_SL1L160->SetBinContent(44,3215.714); h_SL1L160->SetBinContent(45,3060); h_SL1L160->SetBinContent(46,2947.143); h_SL1L160->SetBinContent(47,2708.572); h_SL1L160->SetBinContent(48,2442.857); h_SL1L160->SetBinContent(49,2407.143); h_SL1L160->SetBinContent(50,2235.714); h_SL1L160->SetBinContent(51,2062.857); h_SL1L160->SetBinContent(52,1894.286); h_SL1L160->SetBinContent(53,1811.429); h_SL1L160->SetBinContent(54,1685.714); h_SL1L160->SetBinContent(55,1740); h_SL1L160->SetBinContent(56,1562.857); h_SL1L160->SetBinContent(57,1530); h_SL1L160->SetBinContent(58,1658.571); h_SL1L160->SetBinContent(59,1437.143); h_SL1L160->SetMaximum(131839.4); 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,404.2857); h_SL1L261->SetBinContent(2,444.2857); h_SL1L261->SetBinContent(3,464.2857); h_SL1L261->SetBinContent(4,465.7143); h_SL1L261->SetBinContent(5,474.2857); h_SL1L261->SetBinContent(6,532.8572); h_SL1L261->SetBinContent(7,548.5714); h_SL1L261->SetBinContent(8,641.4286); h_SL1L261->SetBinContent(9,601.4286); h_SL1L261->SetBinContent(10,628.5715); h_SL1L261->SetBinContent(11,712.8572); h_SL1L261->SetBinContent(12,827.1429); h_SL1L261->SetBinContent(13,924.2858); h_SL1L261->SetBinContent(14,1025.714); h_SL1L261->SetBinContent(15,950); h_SL1L261->SetBinContent(16,982.8572); h_SL1L261->SetBinContent(17,1101.429); h_SL1L261->SetBinContent(18,1338.571); h_SL1L261->SetBinContent(19,1360); h_SL1L261->SetBinContent(20,1708.571); h_SL1L261->SetBinContent(21,1820); h_SL1L261->SetBinContent(22,2015.714); h_SL1L261->SetBinContent(23,2137.143); h_SL1L261->SetBinContent(24,2344.286); h_SL1L261->SetBinContent(25,2582.857); h_SL1L261->SetBinContent(26,2690); h_SL1L261->SetBinContent(27,3067.143); h_SL1L261->SetBinContent(28,3897.143); h_SL1L261->SetBinContent(29,4497.143); h_SL1L261->SetBinContent(30,5110); h_SL1L261->SetBinContent(31,6418.572); h_SL1L261->SetBinContent(32,12925.71); h_SL1L261->SetBinContent(33,59148.57); h_SL1L261->SetBinContent(34,98037.15); h_SL1L261->SetBinContent(35,75307.15); h_SL1L261->SetBinContent(36,59032.86); h_SL1L261->SetBinContent(37,43395.71); h_SL1L261->SetBinContent(38,32548.57); h_SL1L261->SetBinContent(39,23801.43); h_SL1L261->SetBinContent(40,9298.571); h_SL1L261->SetBinContent(41,4972.857); h_SL1L261->SetBinContent(42,3881.429); h_SL1L261->SetBinContent(43,3508.572); h_SL1L261->SetBinContent(44,3207.143); h_SL1L261->SetBinContent(45,3071.429); h_SL1L261->SetBinContent(46,2845.714); h_SL1L261->SetBinContent(47,2791.429); h_SL1L261->SetBinContent(48,2428.572); h_SL1L261->SetBinContent(49,2462.857); h_SL1L261->SetBinContent(50,2238.572); h_SL1L261->SetBinContent(51,2077.143); h_SL1L261->SetBinContent(52,1840); h_SL1L261->SetBinContent(53,1821.429); h_SL1L261->SetBinContent(54,1714.286); h_SL1L261->SetBinContent(55,1622.857); h_SL1L261->SetBinContent(56,1571.429); h_SL1L261->SetBinContent(57,1431.429); h_SL1L261->SetBinContent(58,1590); h_SL1L261->SetBinContent(59,1394.286); h_SL1L261->SetMaximum(114643.5); 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,387.1429); h_SL1L362->SetBinContent(2,398.5714); h_SL1L362->SetBinContent(3,447.1429); h_SL1L362->SetBinContent(4,440); h_SL1L362->SetBinContent(5,482.8571); h_SL1L362->SetBinContent(6,500); h_SL1L362->SetBinContent(7,545.7143); h_SL1L362->SetBinContent(8,571.4286); h_SL1L362->SetBinContent(9,552.8572); h_SL1L362->SetBinContent(10,640); h_SL1L362->SetBinContent(11,734.2857); h_SL1L362->SetBinContent(12,831.4286); h_SL1L362->SetBinContent(13,894.2857); h_SL1L362->SetBinContent(14,968.5715); h_SL1L362->SetBinContent(15,902.8572); h_SL1L362->SetBinContent(16,927.1429); h_SL1L362->SetBinContent(17,1181.429); h_SL1L362->SetBinContent(18,1254.286); h_SL1L362->SetBinContent(19,1508.571); h_SL1L362->SetBinContent(20,1671.429); h_SL1L362->SetBinContent(21,1810); h_SL1L362->SetBinContent(22,1991.429); h_SL1L362->SetBinContent(23,2154.286); h_SL1L362->SetBinContent(24,2348.572); h_SL1L362->SetBinContent(25,2534.286); h_SL1L362->SetBinContent(26,2832.857); h_SL1L362->SetBinContent(27,3340); h_SL1L362->SetBinContent(28,4268.571); h_SL1L362->SetBinContent(29,4685.714); h_SL1L362->SetBinContent(30,5604.286); h_SL1L362->SetBinContent(31,8948.571); h_SL1L362->SetBinContent(32,19591.43); h_SL1L362->SetBinContent(33,99690); h_SL1L362->SetBinContent(34,85611.43); h_SL1L362->SetBinContent(35,67881.43); h_SL1L362->SetBinContent(36,50512.86); h_SL1L362->SetBinContent(37,37678.57); h_SL1L362->SetBinContent(38,28362.86); h_SL1L362->SetBinContent(39,17198.57); h_SL1L362->SetBinContent(40,5591.429); h_SL1L362->SetBinContent(41,4085.714); h_SL1L362->SetBinContent(42,3604.286); h_SL1L362->SetBinContent(43,3347.143); h_SL1L362->SetBinContent(44,3017.143); h_SL1L362->SetBinContent(45,2838.572); h_SL1L362->SetBinContent(46,2767.143); h_SL1L362->SetBinContent(47,2504.286); h_SL1L362->SetBinContent(48,2297.143); h_SL1L362->SetBinContent(49,2297.143); h_SL1L362->SetBinContent(50,2025.714); h_SL1L362->SetBinContent(51,1998.572); h_SL1L362->SetBinContent(52,1702.857); h_SL1L362->SetBinContent(53,1725.714); h_SL1L362->SetBinContent(54,1605.714); h_SL1L362->SetBinContent(55,1565.714); h_SL1L362->SetBinContent(56,1435.714); h_SL1L362->SetBinContent(57,1475.714); h_SL1L362->SetBinContent(58,1480); h_SL1L362->SetBinContent(59,1322.857); h_SL1L362->SetMaximum(114643.5); 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,98.57143); h_SL1L463->SetBinContent(3,85.71429); h_SL1L463->SetBinContent(4,54.28572); h_SL1L463->SetBinContent(5,88.57143); h_SL1L463->SetBinContent(6,101.4286); h_SL1L463->SetBinContent(7,90); h_SL1L463->SetBinContent(8,100); h_SL1L463->SetBinContent(9,125.7143); h_SL1L463->SetBinContent(10,102.8571); h_SL1L463->SetBinContent(11,155.7143); h_SL1L463->SetBinContent(12,125.7143); h_SL1L463->SetBinContent(13,157.1429); h_SL1L463->SetBinContent(14,201.4286); h_SL1L463->SetBinContent(15,185.7143); h_SL1L463->SetBinContent(16,198.5714); h_SL1L463->SetBinContent(17,177.1429); h_SL1L463->SetBinContent(18,250); h_SL1L463->SetBinContent(19,285.7143); h_SL1L463->SetBinContent(20,308.5714); h_SL1L463->SetBinContent(21,287.1429); h_SL1L463->SetBinContent(22,390); h_SL1L463->SetBinContent(23,391.4286); h_SL1L463->SetBinContent(24,422.8571); h_SL1L463->SetBinContent(25,457.1429); h_SL1L463->SetBinContent(26,525.7143); h_SL1L463->SetBinContent(27,581.4286); h_SL1L463->SetBinContent(28,835.7143); h_SL1L463->SetBinContent(29,881.4286); h_SL1L463->SetBinContent(30,1081.429); h_SL1L463->SetBinContent(31,1538.571); h_SL1L463->SetBinContent(32,2570); h_SL1L463->SetBinContent(33,10307.14); h_SL1L463->SetBinContent(34,21474.29); h_SL1L463->SetBinContent(35,20051.43); h_SL1L463->SetBinContent(36,13495.71); h_SL1L463->SetBinContent(37,7892.857); h_SL1L463->SetBinContent(38,6768.572); h_SL1L463->SetBinContent(39,5954.286); h_SL1L463->SetBinContent(40,1701.429); h_SL1L463->SetBinContent(41,1038.571); h_SL1L463->SetBinContent(42,868.5715); h_SL1L463->SetBinContent(43,894.2857); h_SL1L463->SetBinContent(44,792.8572); h_SL1L463->SetBinContent(45,612.8572); h_SL1L463->SetBinContent(46,577.1429); h_SL1L463->SetBinContent(47,535.7143); h_SL1L463->SetBinContent(48,474.2857); h_SL1L463->SetBinContent(49,384.2857); h_SL1L463->SetBinContent(50,344.2857); h_SL1L463->SetBinContent(51,367.1429); h_SL1L463->SetBinContent(52,380); h_SL1L463->SetBinContent(53,370); h_SL1L463->SetBinContent(54,311.4286); h_SL1L463->SetBinContent(56,328.5714); h_SL1L463->SetBinContent(57,254.2857); h_SL1L463->SetBinContent(58,318.5714); h_SL1L463->SetBinContent(59,265.7143); h_SL1L463->SetMaximum(114643.5); 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 5424"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }