void RatesPerCell_Removing_noisy_cells_run_6551_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:20:21 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11448.25,67.5,103034.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 6551",60,0,60); h_SL1L160->SetBinContent(1,445.7143); h_SL1L160->SetBinContent(2,445.7143); h_SL1L160->SetBinContent(3,420); h_SL1L160->SetBinContent(4,408.5714); h_SL1L160->SetBinContent(5,424.2857); h_SL1L160->SetBinContent(6,518.5714); h_SL1L160->SetBinContent(7,505.7143); h_SL1L160->SetBinContent(8,525.7143); h_SL1L160->SetBinContent(9,541.4286); h_SL1L160->SetBinContent(10,650); h_SL1L160->SetBinContent(11,760); h_SL1L160->SetBinContent(12,782.8572); h_SL1L160->SetBinContent(13,885.7143); h_SL1L160->SetBinContent(14,921.4286); h_SL1L160->SetBinContent(15,798.5715); h_SL1L160->SetBinContent(16,874.2857); h_SL1L160->SetBinContent(17,990); h_SL1L160->SetBinContent(18,1231.429); h_SL1L160->SetBinContent(19,1451.429); h_SL1L160->SetBinContent(20,1450); h_SL1L160->SetBinContent(21,1607.143); h_SL1L160->SetBinContent(22,1742.857); h_SL1L160->SetBinContent(23,1892.857); h_SL1L160->SetBinContent(24,2164.286); h_SL1L160->SetBinContent(25,2122.857); h_SL1L160->SetBinContent(26,2222.857); h_SL1L160->SetBinContent(27,2332.857); h_SL1L160->SetBinContent(28,3191.429); h_SL1L160->SetBinContent(29,3460); h_SL1L160->SetBinContent(30,3900); h_SL1L160->SetBinContent(31,5285.714); h_SL1L160->SetBinContent(32,9171.429); h_SL1L160->SetBinContent(33,36644.29); h_SL1L160->SetBinContent(34,54765.71); h_SL1L160->SetBinContent(35,59424.29); h_SL1L160->SetBinContent(36,63858.57); h_SL1L160->SetBinContent(37,67440); h_SL1L160->SetBinContent(38,62287.14); h_SL1L160->SetBinContent(39,39225.71); h_SL1L160->SetBinContent(40,9430); h_SL1L160->SetBinContent(41,5481.429); h_SL1L160->SetBinContent(42,4388.571); h_SL1L160->SetBinContent(43,4028.572); h_SL1L160->SetBinContent(44,3565.714); h_SL1L160->SetBinContent(45,3357.143); h_SL1L160->SetBinContent(46,2911.429); h_SL1L160->SetBinContent(47,2731.429); h_SL1L160->SetBinContent(48,2545.714); h_SL1L160->SetBinContent(49,2398.572); h_SL1L160->SetBinContent(50,2282.857); h_SL1L160->SetBinContent(51,2125.714); h_SL1L160->SetBinContent(52,1845.714); h_SL1L160->SetBinContent(53,1957.143); h_SL1L160->SetBinContent(54,1761.429); h_SL1L160->SetBinContent(55,1745.714); h_SL1L160->SetBinContent(56,1582.857); h_SL1L160->SetBinContent(57,1571.429); h_SL1L160->SetBinContent(58,1714.286); h_SL1L160->SetBinContent(59,1570); h_SL1L160->SetMaximum(91586); 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,385.7143); h_SL1L261->SetBinContent(2,371.4286); h_SL1L261->SetBinContent(3,355.7143); h_SL1L261->SetBinContent(4,370); h_SL1L261->SetBinContent(5,347.1429); h_SL1L261->SetBinContent(6,404.2857); h_SL1L261->SetBinContent(7,437.1429); h_SL1L261->SetBinContent(8,475.7143); h_SL1L261->SetBinContent(9,470); h_SL1L261->SetBinContent(10,557.1429); h_SL1L261->SetBinContent(11,601.4286); h_SL1L261->SetBinContent(12,681.4286); h_SL1L261->SetBinContent(13,712.8572); h_SL1L261->SetBinContent(14,804.2857); h_SL1L261->SetBinContent(15,788.5715); h_SL1L261->SetBinContent(16,678.5715); h_SL1L261->SetBinContent(17,847.1429); h_SL1L261->SetBinContent(18,1042.857); h_SL1L261->SetBinContent(19,1235.714); h_SL1L261->SetBinContent(20,1231.429); h_SL1L261->SetBinContent(21,1362.857); h_SL1L261->SetBinContent(22,1470); h_SL1L261->SetBinContent(23,1621.429); h_SL1L261->SetBinContent(24,1814.286); h_SL1L261->SetBinContent(25,2090); h_SL1L261->SetBinContent(26,1955.714); h_SL1L261->SetBinContent(27,2091.429); h_SL1L261->SetBinContent(28,2534.286); h_SL1L261->SetBinContent(29,3025.714); h_SL1L261->SetBinContent(30,3444.286); h_SL1L261->SetBinContent(31,4127.143); h_SL1L261->SetBinContent(32,7032.857); h_SL1L261->SetBinContent(33,18684.29); h_SL1L261->SetBinContent(34,48962.86); h_SL1L261->SetBinContent(35,56304.29); h_SL1L261->SetBinContent(36,61174.29); h_SL1L261->SetBinContent(37,65487.14); h_SL1L261->SetBinContent(38,65345.71); h_SL1L261->SetBinContent(39,54248.57); h_SL1L261->SetBinContent(40,18745.71); h_SL1L261->SetBinContent(41,7405.714); h_SL1L261->SetBinContent(42,4462.857); h_SL1L261->SetBinContent(43,3868.572); h_SL1L261->SetBinContent(44,3555.714); h_SL1L261->SetBinContent(45,3181.429); h_SL1L261->SetBinContent(46,2980); h_SL1L261->SetBinContent(47,2570); h_SL1L261->SetBinContent(48,2385.714); h_SL1L261->SetBinContent(49,14778.57); h_SL1L261->SetBinContent(50,2162.857); h_SL1L261->SetBinContent(51,2135.714); h_SL1L261->SetBinContent(52,1937.143); h_SL1L261->SetBinContent(53,1915.714); h_SL1L261->SetBinContent(54,1742.857); h_SL1L261->SetBinContent(55,1564.286); h_SL1L261->SetBinContent(56,5135.714); h_SL1L261->SetBinContent(57,1422.857); h_SL1L261->SetBinContent(58,1535.714); h_SL1L261->SetBinContent(59,1517.143); h_SL1L261->SetMaximum(79640.79); 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,354.2857); h_SL1L362->SetBinContent(2,335.7143); h_SL1L362->SetBinContent(3,360); h_SL1L362->SetBinContent(4,348.5714); h_SL1L362->SetBinContent(5,370); h_SL1L362->SetBinContent(6,401.4286); h_SL1L362->SetBinContent(7,445.7143); h_SL1L362->SetBinContent(8,464.2857); h_SL1L362->SetBinContent(9,481.4286); h_SL1L362->SetBinContent(10,537.1429); h_SL1L362->SetBinContent(11,635.7143); h_SL1L362->SetBinContent(12,678.5715); h_SL1L362->SetBinContent(13,744.2857); h_SL1L362->SetBinContent(14,788.5715); h_SL1L362->SetBinContent(15,747.1429); h_SL1L362->SetBinContent(16,798.5715); h_SL1L362->SetBinContent(17,960); h_SL1L362->SetBinContent(18,1074.286); h_SL1L362->SetBinContent(19,1221.429); h_SL1L362->SetBinContent(20,1330); h_SL1L362->SetBinContent(21,1404.286); h_SL1L362->SetBinContent(22,1520); h_SL1L362->SetBinContent(23,1674.286); h_SL1L362->SetBinContent(24,1967.143); h_SL1L362->SetBinContent(25,1995.714); h_SL1L362->SetBinContent(26,2122.857); h_SL1L362->SetBinContent(27,2322.857); h_SL1L362->SetBinContent(28,2865.714); h_SL1L362->SetBinContent(29,3270); h_SL1L362->SetBinContent(30,3748.572); h_SL1L362->SetBinContent(31,5252.857); h_SL1L362->SetBinContent(32,9221.429); h_SL1L362->SetBinContent(33,37471.43); h_SL1L362->SetBinContent(34,56448.57); h_SL1L362->SetBinContent(35,61217.14); h_SL1L362->SetBinContent(36,65940); h_SL1L362->SetBinContent(37,69252.86); h_SL1L362->SetBinContent(38,63081.43); h_SL1L362->SetBinContent(39,40150); h_SL1L362->SetBinContent(40,9481.429); h_SL1L362->SetBinContent(41,5444.286); h_SL1L362->SetBinContent(42,4228.571); h_SL1L362->SetBinContent(43,3871.429); h_SL1L362->SetBinContent(44,3398.572); h_SL1L362->SetBinContent(45,3138.572); h_SL1L362->SetBinContent(46,2765.714); h_SL1L362->SetBinContent(47,2631.429); h_SL1L362->SetBinContent(48,2415.714); h_SL1L362->SetBinContent(49,2302.857); h_SL1L362->SetBinContent(50,2160); h_SL1L362->SetBinContent(51,1987.143); h_SL1L362->SetBinContent(52,1777.143); h_SL1L362->SetBinContent(53,4264.286); h_SL1L362->SetBinContent(54,1650); h_SL1L362->SetBinContent(55,1607.143); h_SL1L362->SetBinContent(56,5552.857); h_SL1L362->SetBinContent(57,1592.857); h_SL1L362->SetBinContent(58,1588.571); h_SL1L362->SetBinContent(59,1458.571); h_SL1L362->SetMaximum(79640.79); 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,292.8571); h_SL1L463->SetBinContent(3,292.8571); h_SL1L463->SetBinContent(4,348.5714); h_SL1L463->SetBinContent(5,332.8571); h_SL1L463->SetBinContent(6,345.7143); h_SL1L463->SetBinContent(7,387.1429); h_SL1L463->SetBinContent(8,420); h_SL1L463->SetBinContent(9,411.4286); h_SL1L463->SetBinContent(10,474.2857); h_SL1L463->SetBinContent(11,564.2857); h_SL1L463->SetBinContent(12,611.4286); h_SL1L463->SetBinContent(13,642.8572); h_SL1L463->SetBinContent(14,761.4286); h_SL1L463->SetBinContent(15,697.1429); h_SL1L463->SetBinContent(16,685.7143); h_SL1L463->SetBinContent(17,832.8572); h_SL1L463->SetBinContent(18,927.1429); h_SL1L463->SetBinContent(19,1105.714); h_SL1L463->SetBinContent(20,1144.286); h_SL1L463->SetBinContent(21,1244.286); h_SL1L463->SetBinContent(22,1360); h_SL1L463->SetBinContent(23,1487.143); h_SL1L463->SetBinContent(24,1654.286); h_SL1L463->SetBinContent(25,1880); h_SL1L463->SetBinContent(26,1855.714); h_SL1L463->SetBinContent(27,1992.857); h_SL1L463->SetBinContent(28,2512.857); h_SL1L463->SetBinContent(29,2948.572); h_SL1L463->SetBinContent(30,3347.143); h_SL1L463->SetBinContent(31,4117.143); h_SL1L463->SetBinContent(32,6885.714); h_SL1L463->SetBinContent(33,18547.14); h_SL1L463->SetBinContent(34,50368.57); h_SL1L463->SetBinContent(35,58417.14); h_SL1L463->SetBinContent(36,62707.14); h_SL1L463->SetBinContent(37,67164.29); h_SL1L463->SetBinContent(38,66305.72); h_SL1L463->SetBinContent(39,55965.71); h_SL1L463->SetBinContent(40,19184.29); h_SL1L463->SetBinContent(41,7401.429); h_SL1L463->SetBinContent(42,4570); h_SL1L463->SetBinContent(43,3762.857); h_SL1L463->SetBinContent(44,3450); h_SL1L463->SetBinContent(45,3090); h_SL1L463->SetBinContent(46,2835.714); h_SL1L463->SetBinContent(47,2542.857); h_SL1L463->SetBinContent(48,2334.286); h_SL1L463->SetBinContent(49,2210); h_SL1L463->SetBinContent(50,2010); h_SL1L463->SetBinContent(51,1945.714); h_SL1L463->SetBinContent(52,1815.714); h_SL1L463->SetBinContent(53,1642.857); h_SL1L463->SetBinContent(54,1681.429); h_SL1L463->SetBinContent(56,1581.429); h_SL1L463->SetBinContent(57,1374.286); h_SL1L463->SetBinContent(58,1412.857); h_SL1L463->SetBinContent(59,1401.429); h_SL1L463->SetMaximum(79640.79); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 6551"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }