void RatesPerCell_Removing_noisy_cells_run_5164_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:26:54 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11322.9,67.5,101906.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5164",60,0,60); h_SL1L160->SetBinContent(1,125.7143); h_SL1L160->SetBinContent(2,132.8571); h_SL1L160->SetBinContent(3,154.2857); h_SL1L160->SetBinContent(4,161.4286); h_SL1L160->SetBinContent(5,160); h_SL1L160->SetBinContent(6,181.4286); h_SL1L160->SetBinContent(7,150); h_SL1L160->SetBinContent(8,155.7143); h_SL1L160->SetBinContent(9,148.5714); h_SL1L160->SetBinContent(10,188.5714); h_SL1L160->SetBinContent(11,238.5714); h_SL1L160->SetBinContent(12,221.4286); h_SL1L160->SetBinContent(13,290); h_SL1L160->SetBinContent(14,267.1429); h_SL1L160->SetBinContent(15,225.7143); h_SL1L160->SetBinContent(16,238.5714); h_SL1L160->SetBinContent(17,262.8571); h_SL1L160->SetBinContent(18,341.4286); h_SL1L160->SetBinContent(19,375.7143); h_SL1L160->SetBinContent(20,411.4286); h_SL1L160->SetBinContent(21,490); h_SL1L160->SetBinContent(22,527.1429); h_SL1L160->SetBinContent(23,640); h_SL1L160->SetBinContent(24,565.7143); h_SL1L160->SetBinContent(25,660); h_SL1L160->SetBinContent(26,762.8572); h_SL1L160->SetBinContent(27,915.7143); h_SL1L160->SetBinContent(28,1044.286); h_SL1L160->SetBinContent(29,1305.714); h_SL1L160->SetBinContent(30,1438.571); h_SL1L160->SetBinContent(31,1991.429); h_SL1L160->SetBinContent(32,3342.857); h_SL1L160->SetBinContent(33,18054.29); h_SL1L160->SetBinContent(34,21071.43); h_SL1L160->SetBinContent(35,20368.57); h_SL1L160->SetBinContent(36,18365.71); h_SL1L160->SetBinContent(37,20510); h_SL1L160->SetBinContent(38,15582.86); h_SL1L160->SetBinContent(39,8620); h_SL1L160->SetBinContent(40,1995.714); h_SL1L160->SetBinContent(41,1288.571); h_SL1L160->SetBinContent(42,1188.571); h_SL1L160->SetBinContent(43,1098.571); h_SL1L160->SetBinContent(44,912.8572); h_SL1L160->SetBinContent(45,771.4286); h_SL1L160->SetBinContent(46,690); h_SL1L160->SetBinContent(47,704.2857); h_SL1L160->SetBinContent(48,562.8572); h_SL1L160->SetBinContent(49,678.5715); h_SL1L160->SetBinContent(50,551.4286); h_SL1L160->SetBinContent(51,627.1429); h_SL1L160->SetBinContent(52,511.4286); h_SL1L160->SetBinContent(53,461.4286); h_SL1L160->SetBinContent(54,425.7143); h_SL1L160->SetBinContent(55,444.2857); h_SL1L160->SetBinContent(56,450); h_SL1L160->SetBinContent(57,442.8571); h_SL1L160->SetBinContent(58,408.5714); h_SL1L160->SetBinContent(59,404.2857); h_SL1L160->SetMaximum(90583.2); 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,332.8571); h_SL1L261->SetBinContent(2,417.1429); h_SL1L261->SetBinContent(3,431.4286); h_SL1L261->SetBinContent(4,408.5714); h_SL1L261->SetBinContent(5,407.1429); h_SL1L261->SetBinContent(6,487.1429); h_SL1L261->SetBinContent(7,434.2857); h_SL1L261->SetBinContent(8,534.2857); h_SL1L261->SetBinContent(9,530); h_SL1L261->SetBinContent(10,530); h_SL1L261->SetBinContent(11,588.5715); h_SL1L261->SetBinContent(12,695.7143); h_SL1L261->SetBinContent(13,742.8572); h_SL1L261->SetBinContent(14,818.5715); h_SL1L261->SetBinContent(15,842.8572); h_SL1L261->SetBinContent(16,792.8572); h_SL1L261->SetBinContent(17,842.8572); h_SL1L261->SetBinContent(18,1070); h_SL1L261->SetBinContent(19,1202.857); h_SL1L261->SetBinContent(20,1225.714); h_SL1L261->SetBinContent(21,1520); h_SL1L261->SetBinContent(22,1667.143); h_SL1L261->SetBinContent(23,1922.857); h_SL1L261->SetBinContent(24,2095.714); h_SL1L261->SetBinContent(25,2451.429); h_SL1L261->SetBinContent(26,2370); h_SL1L261->SetBinContent(27,2665.714); h_SL1L261->SetBinContent(28,3382.857); h_SL1L261->SetBinContent(29,3855.714); h_SL1L261->SetBinContent(30,4384.286); h_SL1L261->SetBinContent(31,4975.714); h_SL1L261->SetBinContent(32,9315.715); h_SL1L261->SetBinContent(33,36412.86); h_SL1L261->SetBinContent(34,67838.57); h_SL1L261->SetBinContent(35,63220); h_SL1L261->SetBinContent(36,63355.71); h_SL1L261->SetBinContent(37,60457.14); h_SL1L261->SetBinContent(38,51725.71); h_SL1L261->SetBinContent(39,38078.57); h_SL1L261->SetBinContent(40,11931.43); h_SL1L261->SetBinContent(41,5627.143); h_SL1L261->SetBinContent(42,3828.572); h_SL1L261->SetBinContent(43,3484.286); h_SL1L261->SetBinContent(44,3131.429); h_SL1L261->SetBinContent(45,2831.429); h_SL1L261->SetBinContent(46,2650); h_SL1L261->SetBinContent(47,2450); h_SL1L261->SetBinContent(48,2318.572); h_SL1L261->SetBinContent(49,2018.572); h_SL1L261->SetBinContent(50,2022.857); h_SL1L261->SetBinContent(51,1832.857); h_SL1L261->SetBinContent(52,1708.571); h_SL1L261->SetBinContent(53,1702.857); h_SL1L261->SetBinContent(54,1551.429); h_SL1L261->SetBinContent(55,1595.714); h_SL1L261->SetBinContent(56,1462.857); h_SL1L261->SetBinContent(57,1437.143); h_SL1L261->SetBinContent(58,1372.857); h_SL1L261->SetBinContent(59,1408.571); h_SL1L261->SetMaximum(78768.43); 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,335.7143); h_SL1L362->SetBinContent(2,367.1429); h_SL1L362->SetBinContent(3,387.1429); h_SL1L362->SetBinContent(4,338.5714); h_SL1L362->SetBinContent(5,408.5714); h_SL1L362->SetBinContent(6,415.7143); h_SL1L362->SetBinContent(7,457.1429); h_SL1L362->SetBinContent(8,458.5714); h_SL1L362->SetBinContent(9,502.8571); h_SL1L362->SetBinContent(10,537.1429); h_SL1L362->SetBinContent(11,594.2857); h_SL1L362->SetBinContent(12,664.2857); h_SL1L362->SetBinContent(13,718.5715); h_SL1L362->SetBinContent(14,758.5715); h_SL1L362->SetBinContent(15,762.8572); h_SL1L362->SetBinContent(16,807.1429); h_SL1L362->SetBinContent(17,850); h_SL1L362->SetBinContent(18,1080); h_SL1L362->SetBinContent(19,1098.571); h_SL1L362->SetBinContent(20,1351.429); h_SL1L362->SetBinContent(21,1488.571); h_SL1L362->SetBinContent(22,1750); h_SL1L362->SetBinContent(23,1938.572); h_SL1L362->SetBinContent(24,2170); h_SL1L362->SetBinContent(25,2294.286); h_SL1L362->SetBinContent(26,2487.143); h_SL1L362->SetBinContent(27,2851.429); h_SL1L362->SetBinContent(28,3604.286); h_SL1L362->SetBinContent(29,4125.714); h_SL1L362->SetBinContent(30,4552.857); h_SL1L362->SetBinContent(31,6857.143); h_SL1L362->SetBinContent(32,13005.71); h_SL1L362->SetBinContent(33,63230); h_SL1L362->SetBinContent(34,65057.14); h_SL1L362->SetBinContent(35,63578.57); h_SL1L362->SetBinContent(36,62605.71); h_SL1L362->SetBinContent(37,57080); h_SL1L362->SetBinContent(38,45407.14); h_SL1L362->SetBinContent(39,25910); h_SL1L362->SetBinContent(40,6548.572); h_SL1L362->SetBinContent(41,4252.857); h_SL1L362->SetBinContent(42,3475.714); h_SL1L362->SetBinContent(43,3220); h_SL1L362->SetBinContent(44,2861.429); h_SL1L362->SetBinContent(45,2575.714); h_SL1L362->SetBinContent(46,2405.714); h_SL1L362->SetBinContent(47,2335.714); h_SL1L362->SetBinContent(48,2028.572); h_SL1L362->SetBinContent(49,1997.143); h_SL1L362->SetBinContent(50,1768.571); h_SL1L362->SetBinContent(51,1750); h_SL1L362->SetBinContent(52,1635.714); h_SL1L362->SetBinContent(53,1531.429); h_SL1L362->SetBinContent(54,1460); h_SL1L362->SetBinContent(55,1571.429); h_SL1L362->SetBinContent(56,1347.143); h_SL1L362->SetBinContent(57,1367.143); h_SL1L362->SetBinContent(58,1340); h_SL1L362->SetBinContent(59,1355.714); h_SL1L362->SetMaximum(78768.43); 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,370); h_SL1L463->SetBinContent(3,350); h_SL1L463->SetBinContent(4,348.5714); h_SL1L463->SetBinContent(5,334.2857); h_SL1L463->SetBinContent(6,394.2857); h_SL1L463->SetBinContent(7,404.2857); h_SL1L463->SetBinContent(8,487.1429); h_SL1L463->SetBinContent(9,442.8571); h_SL1L463->SetBinContent(10,467.1429); h_SL1L463->SetBinContent(11,520); h_SL1L463->SetBinContent(12,604.2857); h_SL1L463->SetBinContent(13,595.7143); h_SL1L463->SetBinContent(14,707.1429); h_SL1L463->SetBinContent(15,742.8572); h_SL1L463->SetBinContent(16,692.8572); h_SL1L463->SetBinContent(17,762.8572); h_SL1L463->SetBinContent(18,1010); h_SL1L463->SetBinContent(19,1037.143); h_SL1L463->SetBinContent(20,1127.143); h_SL1L463->SetBinContent(21,1334.286); h_SL1L463->SetBinContent(22,1481.429); h_SL1L463->SetBinContent(23,1784.286); h_SL1L463->SetBinContent(24,1892.857); h_SL1L463->SetBinContent(25,2191.429); h_SL1L463->SetBinContent(26,2228.572); h_SL1L463->SetBinContent(27,2481.429); h_SL1L463->SetBinContent(28,3161.429); h_SL1L463->SetBinContent(29,3762.857); h_SL1L463->SetBinContent(30,4207.143); h_SL1L463->SetBinContent(31,4890); h_SL1L463->SetBinContent(32,9322.857); h_SL1L463->SetBinContent(33,36117.14); h_SL1L463->SetBinContent(34,68494.29); h_SL1L463->SetBinContent(35,63567.14); h_SL1L463->SetBinContent(36,63797.14); h_SL1L463->SetBinContent(37,60985.71); h_SL1L463->SetBinContent(38,51694.29); h_SL1L463->SetBinContent(39,38398.57); h_SL1L463->SetBinContent(40,11920); h_SL1L463->SetBinContent(41,5504.286); h_SL1L463->SetBinContent(42,3682.857); h_SL1L463->SetBinContent(43,3290); h_SL1L463->SetBinContent(44,2984.286); h_SL1L463->SetBinContent(45,2605.714); h_SL1L463->SetBinContent(46,2454.286); h_SL1L463->SetBinContent(47,2201.429); h_SL1L463->SetBinContent(48,2120); h_SL1L463->SetBinContent(49,1934.286); h_SL1L463->SetBinContent(50,1917.143); h_SL1L463->SetBinContent(51,1702.857); h_SL1L463->SetBinContent(52,1648.571); h_SL1L463->SetBinContent(53,1587.143); h_SL1L463->SetBinContent(54,1460); h_SL1L463->SetBinContent(56,1402.857); h_SL1L463->SetBinContent(57,1304.286); h_SL1L463->SetBinContent(58,1294.286); h_SL1L463->SetBinContent(59,1338.571); h_SL1L463->SetMaximum(78768.43); 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 5164"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }