void RatesPerCell_Removing_noisy_cells_run_5308_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:15:51 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11277.04,67.5,101493.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 5308",60,0,60); h_SL1L160->SetBinContent(1,430); h_SL1L160->SetBinContent(2,527.1429); h_SL1L160->SetBinContent(3,478.5714); h_SL1L160->SetBinContent(4,491.4286); h_SL1L160->SetBinContent(5,534.2857); h_SL1L160->SetBinContent(6,560); h_SL1L160->SetBinContent(7,558.5715); h_SL1L160->SetBinContent(8,561.4286); h_SL1L160->SetBinContent(9,600); h_SL1L160->SetBinContent(10,698.5715); h_SL1L160->SetBinContent(11,732.8572); h_SL1L160->SetBinContent(12,794.2857); h_SL1L160->SetBinContent(13,804.2857); h_SL1L160->SetBinContent(14,885.7143); h_SL1L160->SetBinContent(15,914.2858); h_SL1L160->SetBinContent(16,848.5715); h_SL1L160->SetBinContent(17,982.8572); h_SL1L160->SetBinContent(18,1235.714); h_SL1L160->SetBinContent(19,1330); h_SL1L160->SetBinContent(20,1512.857); h_SL1L160->SetBinContent(21,1790); h_SL1L160->SetBinContent(22,1890); h_SL1L160->SetBinContent(23,2054.286); h_SL1L160->SetBinContent(24,2290); h_SL1L160->SetBinContent(25,2370); h_SL1L160->SetBinContent(26,2504.286); h_SL1L160->SetBinContent(27,2737.143); h_SL1L160->SetBinContent(28,3708.572); h_SL1L160->SetBinContent(29,3864.286); h_SL1L160->SetBinContent(30,4577.143); h_SL1L160->SetBinContent(31,6252.857); h_SL1L160->SetBinContent(32,10278.57); h_SL1L160->SetBinContent(33,42970); h_SL1L160->SetBinContent(34,55311.43); h_SL1L160->SetBinContent(35,60580); h_SL1L160->SetBinContent(36,66901.43); h_SL1L160->SetBinContent(37,68148.57); h_SL1L160->SetBinContent(38,61047.14); h_SL1L160->SetBinContent(39,38610); h_SL1L160->SetBinContent(40,9208.571); h_SL1L160->SetBinContent(41,5660); h_SL1L160->SetBinContent(42,4644.286); h_SL1L160->SetBinContent(43,4200); h_SL1L160->SetBinContent(44,3655.714); h_SL1L160->SetBinContent(45,3522.857); h_SL1L160->SetBinContent(46,3224.286); h_SL1L160->SetBinContent(47,2964.286); h_SL1L160->SetBinContent(48,2820); h_SL1L160->SetBinContent(49,2621.429); h_SL1L160->SetBinContent(50,2617.143); h_SL1L160->SetBinContent(51,2125.714); h_SL1L160->SetBinContent(52,2024.286); h_SL1L160->SetBinContent(53,1967.143); h_SL1L160->SetBinContent(54,1794.286); h_SL1L160->SetBinContent(55,1762.857); h_SL1L160->SetBinContent(56,1568.571); h_SL1L160->SetBinContent(57,1670); h_SL1L160->SetBinContent(58,1514.286); h_SL1L160->SetBinContent(59,1468.571); h_SL1L160->SetMaximum(90216.35); 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,352.8571); h_SL1L261->SetBinContent(2,408.5714); h_SL1L261->SetBinContent(3,392.8571); h_SL1L261->SetBinContent(4,418.5714); h_SL1L261->SetBinContent(5,428.5714); h_SL1L261->SetBinContent(6,511.4286); h_SL1L261->SetBinContent(7,520); h_SL1L261->SetBinContent(8,511.4286); h_SL1L261->SetBinContent(9,525.7143); h_SL1L261->SetBinContent(10,588.5715); h_SL1L261->SetBinContent(11,630); h_SL1L261->SetBinContent(12,672.8572); h_SL1L261->SetBinContent(13,700); h_SL1L261->SetBinContent(14,790); h_SL1L261->SetBinContent(15,842.8572); h_SL1L261->SetBinContent(16,790); h_SL1L261->SetBinContent(17,875.7143); h_SL1L261->SetBinContent(18,1092.857); h_SL1L261->SetBinContent(19,1248.571); h_SL1L261->SetBinContent(20,1245.714); h_SL1L261->SetBinContent(21,1541.429); h_SL1L261->SetBinContent(22,1708.571); h_SL1L261->SetBinContent(23,1892.857); h_SL1L261->SetBinContent(24,2067.143); h_SL1L261->SetBinContent(25,2232.857); h_SL1L261->SetBinContent(26,2297.143); h_SL1L261->SetBinContent(27,2500); h_SL1L261->SetBinContent(28,3152.857); h_SL1L261->SetBinContent(29,3650); h_SL1L261->SetBinContent(30,3997.143); h_SL1L261->SetBinContent(31,4854.286); h_SL1L261->SetBinContent(32,7971.429); h_SL1L261->SetBinContent(33,23772.86); h_SL1L261->SetBinContent(34,51665.71); h_SL1L261->SetBinContent(35,58092.86); h_SL1L261->SetBinContent(36,64192.86); h_SL1L261->SetBinContent(37,68144.29); h_SL1L261->SetBinContent(38,65677.14); h_SL1L261->SetBinContent(39,53700); h_SL1L261->SetBinContent(40,18224.29); h_SL1L261->SetBinContent(41,7591.429); h_SL1L261->SetBinContent(42,4882.857); h_SL1L261->SetBinContent(43,4211.429); h_SL1L261->SetBinContent(44,3822.857); h_SL1L261->SetBinContent(45,3528.572); h_SL1L261->SetBinContent(46,3320); h_SL1L261->SetBinContent(47,2872.857); h_SL1L261->SetBinContent(48,2728.572); h_SL1L261->SetBinContent(49,3404.286); h_SL1L261->SetBinContent(50,2421.429); h_SL1L261->SetBinContent(51,2397.143); h_SL1L261->SetBinContent(52,1931.429); h_SL1L261->SetBinContent(53,1877.143); h_SL1L261->SetBinContent(54,1840); h_SL1L261->SetBinContent(55,1652.857); h_SL1L261->SetBinContent(56,1670); h_SL1L261->SetBinContent(57,1494.286); h_SL1L261->SetBinContent(58,1608.571); h_SL1L261->SetBinContent(59,1421.429); h_SL1L261->SetMaximum(78449.71); 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,345.7143); h_SL1L362->SetBinContent(2,388.5714); h_SL1L362->SetBinContent(3,381.4286); h_SL1L362->SetBinContent(4,397.1429); h_SL1L362->SetBinContent(5,454.2857); h_SL1L362->SetBinContent(6,494.2857); h_SL1L362->SetBinContent(7,454.2857); h_SL1L362->SetBinContent(8,474.2857); h_SL1L362->SetBinContent(9,517.1429); h_SL1L362->SetBinContent(10,592.8572); h_SL1L362->SetBinContent(11,628.5715); h_SL1L362->SetBinContent(12,645.7143); h_SL1L362->SetBinContent(13,721.4286); h_SL1L362->SetBinContent(14,792.8572); h_SL1L362->SetBinContent(15,822.8572); h_SL1L362->SetBinContent(16,771.4286); h_SL1L362->SetBinContent(17,918.5715); h_SL1L362->SetBinContent(18,1084.286); h_SL1L362->SetBinContent(19,1150); h_SL1L362->SetBinContent(20,1301.429); h_SL1L362->SetBinContent(21,1581.429); h_SL1L362->SetBinContent(22,1618.571); h_SL1L362->SetBinContent(23,1891.429); h_SL1L362->SetBinContent(24,1964.286); h_SL1L362->SetBinContent(25,2144.286); h_SL1L362->SetBinContent(26,2212.857); h_SL1L362->SetBinContent(27,2638.572); h_SL1L362->SetBinContent(28,3450); h_SL1L362->SetBinContent(29,3638.572); h_SL1L362->SetBinContent(30,4327.143); h_SL1L362->SetBinContent(31,6047.143); h_SL1L362->SetBinContent(32,10220); h_SL1L362->SetBinContent(33,43077.14); h_SL1L362->SetBinContent(34,55114.29); h_SL1L362->SetBinContent(35,60880); h_SL1L362->SetBinContent(36,67111.43); h_SL1L362->SetBinContent(37,68217.14); h_SL1L362->SetBinContent(38,60901.43); h_SL1L362->SetBinContent(39,38798.57); h_SL1L362->SetBinContent(40,9105.715); h_SL1L362->SetBinContent(41,5442.857); h_SL1L362->SetBinContent(42,4531.429); h_SL1L362->SetBinContent(43,4045.714); h_SL1L362->SetBinContent(44,3435.714); h_SL1L362->SetBinContent(45,3345.714); h_SL1L362->SetBinContent(46,2957.143); h_SL1L362->SetBinContent(47,2720); h_SL1L362->SetBinContent(48,2585.714); h_SL1L362->SetBinContent(49,2414.286); h_SL1L362->SetBinContent(50,2424.286); h_SL1L362->SetBinContent(51,2025.714); h_SL1L362->SetBinContent(52,1872.857); h_SL1L362->SetBinContent(53,1795.714); h_SL1L362->SetBinContent(54,1648.571); h_SL1L362->SetBinContent(55,1574.286); h_SL1L362->SetBinContent(56,1451.429); h_SL1L362->SetBinContent(57,1492.857); h_SL1L362->SetBinContent(58,1388.571); h_SL1L362->SetBinContent(59,1381.429); h_SL1L362->SetMaximum(78449.71); 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,42.85714); h_SL1L463->SetBinContent(3,35.71429); h_SL1L463->SetBinContent(4,44.28572); h_SL1L463->SetBinContent(5,30); h_SL1L463->SetBinContent(6,50); h_SL1L463->SetBinContent(7,48.57143); h_SL1L463->SetBinContent(8,38.57143); h_SL1L463->SetBinContent(9,47.14286); h_SL1L463->SetBinContent(10,68.57143); h_SL1L463->SetBinContent(11,72.85715); h_SL1L463->SetBinContent(12,68.57143); h_SL1L463->SetBinContent(13,58.57143); h_SL1L463->SetBinContent(14,85.71429); h_SL1L463->SetBinContent(15,87.14286); h_SL1L463->SetBinContent(16,68.57143); h_SL1L463->SetBinContent(17,80); h_SL1L463->SetBinContent(18,91.42857); h_SL1L463->SetBinContent(19,130); h_SL1L463->SetBinContent(20,104.2857); h_SL1L463->SetBinContent(21,138.5714); h_SL1L463->SetBinContent(22,168.5714); h_SL1L463->SetBinContent(23,187.1429); h_SL1L463->SetBinContent(24,188.5714); h_SL1L463->SetBinContent(25,174.2857); h_SL1L463->SetBinContent(26,191.4286); h_SL1L463->SetBinContent(27,257.1429); h_SL1L463->SetBinContent(28,340); h_SL1L463->SetBinContent(29,330); h_SL1L463->SetBinContent(30,400); h_SL1L463->SetBinContent(31,555.7143); h_SL1L463->SetBinContent(32,768.5715); h_SL1L463->SetBinContent(33,1870); h_SL1L463->SetBinContent(34,5328.572); h_SL1L463->SetBinContent(35,7281.429); h_SL1L463->SetBinContent(36,6847.143); h_SL1L463->SetBinContent(37,6020); h_SL1L463->SetBinContent(38,6657.143); h_SL1L463->SetBinContent(39,6301.429); h_SL1L463->SetBinContent(40,1545.714); h_SL1L463->SetBinContent(41,862.8572); h_SL1L463->SetBinContent(42,557.1429); h_SL1L463->SetBinContent(43,570); h_SL1L463->SetBinContent(44,491.4286); h_SL1L463->SetBinContent(45,348.5714); h_SL1L463->SetBinContent(46,352.8571); h_SL1L463->SetBinContent(47,280); h_SL1L463->SetBinContent(48,260); h_SL1L463->SetBinContent(49,265.7143); h_SL1L463->SetBinContent(50,212.8571); h_SL1L463->SetBinContent(51,227.1429); h_SL1L463->SetBinContent(52,161.4286); h_SL1L463->SetBinContent(53,182.8571); h_SL1L463->SetBinContent(54,174.2857); h_SL1L463->SetBinContent(56,142.8571); h_SL1L463->SetBinContent(57,130); h_SL1L463->SetBinContent(58,138.5714); h_SL1L463->SetBinContent(59,132.8571); h_SL1L463->SetMaximum(78449.71); 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 5308"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }