void RatesPerCell_Removing_noisy_cells_run_5368_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:30:58 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12141.7,67.5,109275.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5368",60,0,60); h_SL1L160->SetBinContent(1,18.57143); h_SL1L160->SetBinContent(2,18.57143); h_SL1L160->SetBinContent(3,21.42857); h_SL1L160->SetBinContent(4,22.85714); h_SL1L160->SetBinContent(5,20); h_SL1L160->SetBinContent(6,25.71429); h_SL1L160->SetBinContent(7,28.57143); h_SL1L160->SetBinContent(8,28.57143); h_SL1L160->SetBinContent(9,34.28571); h_SL1L160->SetBinContent(10,37.14286); h_SL1L160->SetBinContent(11,40); h_SL1L160->SetBinContent(12,48.57143); h_SL1L160->SetBinContent(13,51.42857); h_SL1L160->SetBinContent(14,47.14286); h_SL1L160->SetBinContent(15,41.42857); h_SL1L160->SetBinContent(16,45.71429); h_SL1L160->SetBinContent(17,60); h_SL1L160->SetBinContent(18,71.42857); h_SL1L160->SetBinContent(19,65.71429); h_SL1L160->SetBinContent(20,74.28571); h_SL1L160->SetBinContent(21,97.14286); h_SL1L160->SetBinContent(22,82.85715); h_SL1L160->SetBinContent(23,118.5714); h_SL1L160->SetBinContent(24,95.71429); h_SL1L160->SetBinContent(25,108.5714); h_SL1L160->SetBinContent(26,127.1429); h_SL1L160->SetBinContent(27,150); h_SL1L160->SetBinContent(28,165.7143); h_SL1L160->SetBinContent(29,227.1429); h_SL1L160->SetBinContent(30,250); h_SL1L160->SetBinContent(31,311.4286); h_SL1L160->SetBinContent(32,481.4286); h_SL1L160->SetBinContent(33,2507.143); h_SL1L160->SetBinContent(34,2911.429); h_SL1L160->SetBinContent(35,2904.286); h_SL1L160->SetBinContent(36,2415.714); h_SL1L160->SetBinContent(37,2760); h_SL1L160->SetBinContent(38,2205.714); h_SL1L160->SetBinContent(39,1120); h_SL1L160->SetBinContent(40,285.7143); h_SL1L160->SetBinContent(41,224.2857); h_SL1L160->SetBinContent(42,200); h_SL1L160->SetBinContent(43,191.4286); h_SL1L160->SetBinContent(44,197.1429); h_SL1L160->SetBinContent(45,115.7143); h_SL1L160->SetBinContent(46,132.8571); h_SL1L160->SetBinContent(47,121.4286); h_SL1L160->SetBinContent(48,121.4286); h_SL1L160->SetBinContent(49,112.8571); h_SL1L160->SetBinContent(50,115.7143); h_SL1L160->SetBinContent(51,94.28571); h_SL1L160->SetBinContent(52,107.1429); h_SL1L160->SetBinContent(53,82.85715); h_SL1L160->SetBinContent(54,85.71429); h_SL1L160->SetBinContent(55,82.85715); h_SL1L160->SetBinContent(56,75.71429); h_SL1L160->SetBinContent(57,50); h_SL1L160->SetBinContent(58,61.42857); h_SL1L160->SetBinContent(59,75.71429); h_SL1L160->SetMaximum(97133.6); 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,434.2857); h_SL1L261->SetBinContent(2,400); h_SL1L261->SetBinContent(3,422.8571); h_SL1L261->SetBinContent(4,428.5714); h_SL1L261->SetBinContent(5,454.2857); h_SL1L261->SetBinContent(6,524.2857); h_SL1L261->SetBinContent(7,542.8572); h_SL1L261->SetBinContent(8,544.2857); h_SL1L261->SetBinContent(9,595.7143); h_SL1L261->SetBinContent(10,670); h_SL1L261->SetBinContent(11,685.7143); h_SL1L261->SetBinContent(12,827.1429); h_SL1L261->SetBinContent(13,885.7143); h_SL1L261->SetBinContent(14,935.7143); h_SL1L261->SetBinContent(15,957.1429); h_SL1L261->SetBinContent(16,950); h_SL1L261->SetBinContent(17,1024.286); h_SL1L261->SetBinContent(18,1204.286); h_SL1L261->SetBinContent(19,1360); h_SL1L261->SetBinContent(20,1614.286); h_SL1L261->SetBinContent(21,1752.857); h_SL1L261->SetBinContent(22,1932.857); h_SL1L261->SetBinContent(23,2142.857); h_SL1L261->SetBinContent(24,2408.572); h_SL1L261->SetBinContent(25,2652.857); h_SL1L261->SetBinContent(26,2694.286); h_SL1L261->SetBinContent(27,3072.857); h_SL1L261->SetBinContent(28,3764.286); h_SL1L261->SetBinContent(29,4092.857); h_SL1L261->SetBinContent(30,4658.572); h_SL1L261->SetBinContent(31,5474.286); h_SL1L261->SetBinContent(32,9698.571); h_SL1L261->SetBinContent(33,39408.57); h_SL1L261->SetBinContent(34,71732.86); h_SL1L261->SetBinContent(35,73447.15); h_SL1L261->SetBinContent(36,63891.43); h_SL1L261->SetBinContent(37,59182.86); h_SL1L261->SetBinContent(38,50934.29); h_SL1L261->SetBinContent(39,37871.43); h_SL1L261->SetBinContent(40,12041.43); h_SL1L261->SetBinContent(41,6112.857); h_SL1L261->SetBinContent(42,4184.286); h_SL1L261->SetBinContent(43,3662.857); h_SL1L261->SetBinContent(44,3434.286); h_SL1L261->SetBinContent(45,3087.143); h_SL1L261->SetBinContent(46,2832.857); h_SL1L261->SetBinContent(47,2794.286); h_SL1L261->SetBinContent(48,2524.286); h_SL1L261->SetBinContent(49,2400); h_SL1L261->SetBinContent(50,2297.143); h_SL1L261->SetBinContent(51,2042.857); h_SL1L261->SetBinContent(52,1901.429); h_SL1L261->SetBinContent(53,1874.286); h_SL1L261->SetBinContent(54,1720); h_SL1L261->SetBinContent(55,1608.571); h_SL1L261->SetBinContent(56,1602.857); h_SL1L261->SetBinContent(57,1425.714); h_SL1L261->SetBinContent(58,1435.714); h_SL1L261->SetBinContent(59,1424.286); h_SL1L261->SetMaximum(84464.22); 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,372.8571); h_SL1L362->SetBinContent(2,370); h_SL1L362->SetBinContent(3,400); h_SL1L362->SetBinContent(4,368.5714); h_SL1L362->SetBinContent(5,447.1429); h_SL1L362->SetBinContent(6,498.5714); h_SL1L362->SetBinContent(7,498.5714); h_SL1L362->SetBinContent(8,468.5714); h_SL1L362->SetBinContent(9,537.1429); h_SL1L362->SetBinContent(10,694.2857); h_SL1L362->SetBinContent(11,757.1429); h_SL1L362->SetBinContent(12,801.4286); h_SL1L362->SetBinContent(13,818.5715); h_SL1L362->SetBinContent(14,898.5715); h_SL1L362->SetBinContent(15,878.5715); h_SL1L362->SetBinContent(16,965.7143); h_SL1L362->SetBinContent(17,994.2858); h_SL1L362->SetBinContent(18,1248.571); h_SL1L362->SetBinContent(19,1384.286); h_SL1L362->SetBinContent(20,1564.286); h_SL1L362->SetBinContent(21,1814.286); h_SL1L362->SetBinContent(22,1967.143); h_SL1L362->SetBinContent(23,2150); h_SL1L362->SetBinContent(24,2451.429); h_SL1L362->SetBinContent(25,2610); h_SL1L362->SetBinContent(26,2914.286); h_SL1L362->SetBinContent(27,3325.714); h_SL1L362->SetBinContent(28,3882.857); h_SL1L362->SetBinContent(29,4282.857); h_SL1L362->SetBinContent(30,5070); h_SL1L362->SetBinContent(31,7214.286); h_SL1L362->SetBinContent(32,13842.86); h_SL1L362->SetBinContent(33,67981.43); h_SL1L362->SetBinContent(34,68008.57); h_SL1L362->SetBinContent(35,64998.57); h_SL1L362->SetBinContent(36,62114.29); h_SL1L362->SetBinContent(37,55810); h_SL1L362->SetBinContent(38,45081.43); h_SL1L362->SetBinContent(39,25588.57); h_SL1L362->SetBinContent(40,6921.429); h_SL1L362->SetBinContent(41,4504.286); h_SL1L362->SetBinContent(42,3877.143); h_SL1L362->SetBinContent(43,3472.857); h_SL1L362->SetBinContent(44,3128.572); h_SL1L362->SetBinContent(45,2847.143); h_SL1L362->SetBinContent(46,2650); h_SL1L362->SetBinContent(47,2552.857); h_SL1L362->SetBinContent(48,2380); h_SL1L362->SetBinContent(49,2145.714); h_SL1L362->SetBinContent(50,2042.857); h_SL1L362->SetBinContent(51,1862.857); h_SL1L362->SetBinContent(52,1827.143); h_SL1L362->SetBinContent(53,1645.714); h_SL1L362->SetBinContent(54,1624.286); h_SL1L362->SetBinContent(55,1610); h_SL1L362->SetBinContent(56,1415.714); h_SL1L362->SetBinContent(57,1361.429); h_SL1L362->SetBinContent(58,1365.714); h_SL1L362->SetBinContent(59,1372.857); h_SL1L362->SetMaximum(84464.22); 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,445.7143); h_SL1L463->SetBinContent(3,328.5714); h_SL1L463->SetBinContent(4,375.7143); h_SL1L463->SetBinContent(5,375.7143); h_SL1L463->SetBinContent(6,452.8571); h_SL1L463->SetBinContent(7,450); h_SL1L463->SetBinContent(8,460); h_SL1L463->SetBinContent(9,515.7143); h_SL1L463->SetBinContent(10,595.7143); h_SL1L463->SetBinContent(11,605.7143); h_SL1L463->SetBinContent(12,732.8572); h_SL1L463->SetBinContent(13,745.7143); h_SL1L463->SetBinContent(14,852.8572); h_SL1L463->SetBinContent(15,851.4286); h_SL1L463->SetBinContent(16,914.2858); h_SL1L463->SetBinContent(17,940); h_SL1L463->SetBinContent(18,1084.286); h_SL1L463->SetBinContent(19,1234.286); h_SL1L463->SetBinContent(20,1504.286); h_SL1L463->SetBinContent(21,1634.286); h_SL1L463->SetBinContent(22,1740); h_SL1L463->SetBinContent(23,2034.286); h_SL1L463->SetBinContent(24,2284.286); h_SL1L463->SetBinContent(25,2448.572); h_SL1L463->SetBinContent(26,2628.572); h_SL1L463->SetBinContent(27,2898.572); h_SL1L463->SetBinContent(28,3671.429); h_SL1L463->SetBinContent(29,3998.572); h_SL1L463->SetBinContent(30,4597.143); h_SL1L463->SetBinContent(31,5368.572); h_SL1L463->SetBinContent(32,9594.286); h_SL1L463->SetBinContent(33,39235.71); h_SL1L463->SetBinContent(34,72410); h_SL1L463->SetBinContent(35,66052.86); h_SL1L463->SetBinContent(36,64132.86); h_SL1L463->SetBinContent(37,59767.14); h_SL1L463->SetBinContent(38,51031.43); h_SL1L463->SetBinContent(39,38177.14); h_SL1L463->SetBinContent(40,12171.43); h_SL1L463->SetBinContent(41,5897.143); h_SL1L463->SetBinContent(42,4164.286); h_SL1L463->SetBinContent(43,3595.714); h_SL1L463->SetBinContent(44,3190); h_SL1L463->SetBinContent(45,2982.857); h_SL1L463->SetBinContent(46,2671.429); h_SL1L463->SetBinContent(47,2622.857); h_SL1L463->SetBinContent(48,2335.714); h_SL1L463->SetBinContent(49,2140); h_SL1L463->SetBinContent(50,2080); h_SL1L463->SetBinContent(51,1901.429); h_SL1L463->SetBinContent(52,1775.714); h_SL1L463->SetBinContent(53,1715.714); h_SL1L463->SetBinContent(54,1611.429); h_SL1L463->SetBinContent(55,1.428571); h_SL1L463->SetBinContent(56,1511.429); h_SL1L463->SetBinContent(57,1350); h_SL1L463->SetBinContent(58,1372.857); h_SL1L463->SetBinContent(59,1340); h_SL1L463->SetMaximum(84464.22); 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 5368"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }