void RatesPerCell_Removing_noisy_cells_run_6102_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:13:31 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-468.05,67.5,4212.45); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6102",60,0,60); h_SL1L160->SetBinContent(1,1782.143); h_SL1L160->SetBinContent(2,1835.714); h_SL1L160->SetBinContent(3,2003.571); h_SL1L160->SetBinContent(4,1978.571); h_SL1L160->SetBinContent(5,1846.429); h_SL1L160->SetBinContent(6,1875); h_SL1L160->SetBinContent(7,1925); h_SL1L160->SetBinContent(8,2082.143); h_SL1L160->SetBinContent(9,1975); h_SL1L160->SetBinContent(10,2085.714); h_SL1L160->SetBinContent(11,2082.143); h_SL1L160->SetBinContent(12,2317.857); h_SL1L160->SetBinContent(13,2246.428); h_SL1L160->SetBinContent(14,1989.286); h_SL1L160->SetBinContent(15,2089.286); h_SL1L160->SetBinContent(16,1817.857); h_SL1L160->SetBinContent(17,1821.429); h_SL1L160->SetBinContent(18,2192.857); h_SL1L160->SetBinContent(19,2107.143); h_SL1L160->SetBinContent(20,2028.571); h_SL1L160->SetBinContent(21,2075); h_SL1L160->SetBinContent(22,2182.143); h_SL1L160->SetBinContent(23,2260.714); h_SL1L160->SetBinContent(24,1971.429); h_SL1L160->SetBinContent(25,1867.857); h_SL1L160->SetBinContent(26,2042.857); h_SL1L160->SetBinContent(27,2021.429); h_SL1L160->SetBinContent(28,2100); h_SL1L160->SetBinContent(29,2003.571); h_SL1L160->SetBinContent(30,2110.714); h_SL1L160->SetBinContent(31,2110.714); h_SL1L160->SetBinContent(32,2017.857); h_SL1L160->SetBinContent(33,2210.714); h_SL1L160->SetBinContent(34,2310.714); h_SL1L160->SetBinContent(35,2189.286); h_SL1L160->SetBinContent(36,2167.857); h_SL1L160->SetBinContent(37,2364.286); h_SL1L160->SetBinContent(38,2278.571); h_SL1L160->SetBinContent(39,2189.286); h_SL1L160->SetBinContent(40,2078.571); h_SL1L160->SetBinContent(41,2321.428); h_SL1L160->SetBinContent(42,2282.143); h_SL1L160->SetBinContent(43,2346.428); h_SL1L160->SetBinContent(44,2289.286); h_SL1L160->SetBinContent(45,2042.857); h_SL1L160->SetBinContent(46,2028.571); h_SL1L160->SetBinContent(47,1964.286); h_SL1L160->SetBinContent(48,2092.857); h_SL1L160->SetBinContent(49,2135.714); h_SL1L160->SetBinContent(50,2214.286); h_SL1L160->SetBinContent(51,2385.714); h_SL1L160->SetBinContent(52,2057.143); h_SL1L160->SetBinContent(53,2242.857); h_SL1L160->SetBinContent(54,2135.714); h_SL1L160->SetBinContent(55,2192.857); h_SL1L160->SetBinContent(56,2357.143); h_SL1L160->SetBinContent(57,2350); h_SL1L160->SetBinContent(58,2460.714); h_SL1L160->SetBinContent(59,2600); h_SL1L160->SetMaximum(3744.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,1817.857); h_SL1L261->SetBinContent(2,1832.143); h_SL1L261->SetBinContent(3,2000); h_SL1L261->SetBinContent(4,1832.143); h_SL1L261->SetBinContent(5,2053.571); h_SL1L261->SetBinContent(6,2075); h_SL1L261->SetBinContent(7,2235.714); h_SL1L261->SetBinContent(8,2164.286); h_SL1L261->SetBinContent(9,2375); h_SL1L261->SetBinContent(10,2289.286); h_SL1L261->SetBinContent(11,2367.857); h_SL1L261->SetBinContent(12,2478.571); h_SL1L261->SetBinContent(13,2353.571); h_SL1L261->SetBinContent(14,2375); h_SL1L261->SetBinContent(15,2485.714); h_SL1L261->SetBinContent(16,2307.143); h_SL1L261->SetBinContent(17,2271.428); h_SL1L261->SetBinContent(18,2610.714); h_SL1L261->SetBinContent(19,2546.428); h_SL1L261->SetBinContent(20,2403.571); h_SL1L261->SetBinContent(21,2607.143); h_SL1L261->SetBinContent(22,2803.571); h_SL1L261->SetBinContent(23,2635.714); h_SL1L261->SetBinContent(24,2510.714); h_SL1L261->SetBinContent(25,2514.286); h_SL1L261->SetBinContent(26,2253.571); h_SL1L261->SetBinContent(27,2489.286); h_SL1L261->SetBinContent(28,2421.428); h_SL1L261->SetBinContent(29,2617.857); h_SL1L261->SetBinContent(30,2364.286); h_SL1L261->SetBinContent(31,2610.714); h_SL1L261->SetBinContent(32,2517.857); h_SL1L261->SetBinContent(33,2496.428); h_SL1L261->SetBinContent(34,2617.857); h_SL1L261->SetBinContent(35,2696.428); h_SL1L261->SetBinContent(36,2578.571); h_SL1L261->SetBinContent(37,2810.714); h_SL1L261->SetBinContent(38,2560.714); h_SL1L261->SetBinContent(39,2564.286); h_SL1L261->SetBinContent(40,2517.857); h_SL1L261->SetBinContent(41,2321.428); h_SL1L261->SetBinContent(42,2478.571); h_SL1L261->SetBinContent(43,2628.571); h_SL1L261->SetBinContent(44,2728.571); h_SL1L261->SetBinContent(45,2457.143); h_SL1L261->SetBinContent(46,2639.286); h_SL1L261->SetBinContent(47,2821.428); h_SL1L261->SetBinContent(48,2567.857); h_SL1L261->SetBinContent(49,2746.428); h_SL1L261->SetBinContent(50,2789.286); h_SL1L261->SetBinContent(51,2782.143); h_SL1L261->SetBinContent(52,2650); h_SL1L261->SetBinContent(53,2496.428); h_SL1L261->SetBinContent(54,2832.143); h_SL1L261->SetBinContent(55,2653.571); h_SL1L261->SetBinContent(56,2796.428); h_SL1L261->SetBinContent(57,2610.714); h_SL1L261->SetBinContent(58,2810.714); h_SL1L261->SetBinContent(59,2703.571); h_SL1L261->SetMaximum(3256.964); 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,1739.286); h_SL1L362->SetBinContent(2,1803.571); h_SL1L362->SetBinContent(3,1942.857); h_SL1L362->SetBinContent(4,2121.428); h_SL1L362->SetBinContent(5,2110.714); h_SL1L362->SetBinContent(6,1946.429); h_SL1L362->SetBinContent(7,2185.714); h_SL1L362->SetBinContent(8,2321.428); h_SL1L362->SetBinContent(9,2164.286); h_SL1L362->SetBinContent(10,2292.857); h_SL1L362->SetBinContent(11,2332.143); h_SL1L362->SetBinContent(12,2482.143); h_SL1L362->SetBinContent(13,2339.286); h_SL1L362->SetBinContent(14,2450); h_SL1L362->SetBinContent(15,2285.714); h_SL1L362->SetBinContent(16,2128.571); h_SL1L362->SetBinContent(17,2164.286); h_SL1L362->SetBinContent(18,2132.143); h_SL1L362->SetBinContent(19,2442.857); h_SL1L362->SetBinContent(20,2460.714); h_SL1L362->SetBinContent(21,2400); h_SL1L362->SetBinContent(22,2710.714); h_SL1L362->SetBinContent(23,2442.857); h_SL1L362->SetBinContent(24,2389.286); h_SL1L362->SetBinContent(25,2296.428); h_SL1L362->SetBinContent(26,2246.428); h_SL1L362->SetBinContent(27,2210.714); h_SL1L362->SetBinContent(28,2332.143); h_SL1L362->SetBinContent(29,2407.143); h_SL1L362->SetBinContent(30,2471.428); h_SL1L362->SetBinContent(31,2467.857); h_SL1L362->SetBinContent(32,2371.428); h_SL1L362->SetBinContent(33,2364.286); h_SL1L362->SetBinContent(34,2617.857); h_SL1L362->SetBinContent(35,2771.428); h_SL1L362->SetBinContent(36,2485.714); h_SL1L362->SetBinContent(37,2392.857); h_SL1L362->SetBinContent(38,2410.714); h_SL1L362->SetBinContent(39,2432.143); h_SL1L362->SetBinContent(40,2328.571); h_SL1L362->SetBinContent(41,2475); h_SL1L362->SetBinContent(42,2600); h_SL1L362->SetBinContent(43,2389.286); h_SL1L362->SetBinContent(44,2500); h_SL1L362->SetBinContent(45,2428.571); h_SL1L362->SetBinContent(46,2482.143); h_SL1L362->SetBinContent(47,2489.286); h_SL1L362->SetBinContent(48,2603.571); h_SL1L362->SetBinContent(49,2632.143); h_SL1L362->SetBinContent(50,2635.714); h_SL1L362->SetBinContent(51,2528.571); h_SL1L362->SetBinContent(52,2689.286); h_SL1L362->SetBinContent(53,2614.286); h_SL1L362->SetBinContent(54,2585.714); h_SL1L362->SetBinContent(55,2742.857); h_SL1L362->SetBinContent(56,2664.286); h_SL1L362->SetBinContent(57,2717.857); h_SL1L362->SetBinContent(58,2685.714); h_SL1L362->SetBinContent(59,2717.857); h_SL1L362->SetMaximum(3256.964); 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,1571.429); h_SL1L463->SetBinContent(3,1692.857); h_SL1L463->SetBinContent(4,1746.429); h_SL1L463->SetBinContent(5,1685.714); h_SL1L463->SetBinContent(6,1689.286); h_SL1L463->SetBinContent(7,1610.714); h_SL1L463->SetBinContent(8,1700); h_SL1L463->SetBinContent(9,1807.143); h_SL1L463->SetBinContent(10,1928.571); h_SL1L463->SetBinContent(11,2139.286); h_SL1L463->SetBinContent(12,2232.143); h_SL1L463->SetBinContent(13,2207.143); h_SL1L463->SetBinContent(14,2078.571); h_SL1L463->SetBinContent(15,1960.714); h_SL1L463->SetBinContent(16,1917.857); h_SL1L463->SetBinContent(17,1839.286); h_SL1L463->SetBinContent(18,2000); h_SL1L463->SetBinContent(19,2085.714); h_SL1L463->SetBinContent(20,2128.571); h_SL1L463->SetBinContent(21,2060.714); h_SL1L463->SetBinContent(22,2089.286); h_SL1L463->SetBinContent(23,2142.857); h_SL1L463->SetBinContent(24,2142.857); h_SL1L463->SetBinContent(25,2007.143); h_SL1L463->SetBinContent(26,1935.714); h_SL1L463->SetBinContent(27,1932.143); h_SL1L463->SetBinContent(28,2010.714); h_SL1L463->SetBinContent(29,2057.143); h_SL1L463->SetBinContent(30,2014.286); h_SL1L463->SetBinContent(31,1989.286); h_SL1L463->SetBinContent(32,2103.571); h_SL1L463->SetBinContent(33,1971.429); h_SL1L463->SetBinContent(34,2096.428); h_SL1L463->SetBinContent(35,2310.714); h_SL1L463->SetBinContent(36,2135.714); h_SL1L463->SetBinContent(37,2103.571); h_SL1L463->SetBinContent(38,1921.429); h_SL1L463->SetBinContent(39,2075); h_SL1L463->SetBinContent(40,1992.857); h_SL1L463->SetBinContent(41,1800); h_SL1L463->SetBinContent(42,1835.714); h_SL1L463->SetBinContent(43,2296.428); h_SL1L463->SetBinContent(44,2167.857); h_SL1L463->SetBinContent(45,1996.429); h_SL1L463->SetBinContent(46,1989.286); h_SL1L463->SetBinContent(47,2182.143); h_SL1L463->SetBinContent(48,1978.571); h_SL1L463->SetBinContent(49,1932.143); h_SL1L463->SetBinContent(50,2057.143); h_SL1L463->SetBinContent(51,2025); h_SL1L463->SetBinContent(52,1907.143); h_SL1L463->SetBinContent(53,2092.857); h_SL1L463->SetBinContent(54,1882.143); h_SL1L463->SetBinContent(56,1839.286); h_SL1L463->SetBinContent(57,2057.143); h_SL1L463->SetBinContent(58,2425); h_SL1L463->SetBinContent(59,2464.286); h_SL1L463->SetMaximum(3256.964); 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 6102"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }