void RatesPerCell_Removing_noisy_cells_run_6123_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:40:36 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1353.119,67.5,12178.07); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6123",60,0,60); h_SL1L160->SetBinContent(1,1266.667); h_SL1L160->SetBinContent(2,1530.952); h_SL1L160->SetBinContent(3,1800); h_SL1L160->SetBinContent(4,1857.143); h_SL1L160->SetBinContent(5,1771.429); h_SL1L160->SetBinContent(6,2185.714); h_SL1L160->SetBinContent(7,1823.809); h_SL1L160->SetBinContent(8,2185.714); h_SL1L160->SetBinContent(9,2069.048); h_SL1L160->SetBinContent(10,2154.762); h_SL1L160->SetBinContent(11,2166.667); h_SL1L160->SetBinContent(12,2340.476); h_SL1L160->SetBinContent(13,2509.524); h_SL1L160->SetBinContent(14,2095.238); h_SL1L160->SetBinContent(15,1892.857); h_SL1L160->SetBinContent(16,1957.143); h_SL1L160->SetBinContent(17,2045.238); h_SL1L160->SetBinContent(18,2376.19); h_SL1L160->SetBinContent(19,2071.428); h_SL1L160->SetBinContent(20,2188.095); h_SL1L160->SetBinContent(21,2154.762); h_SL1L160->SetBinContent(22,2169.048); h_SL1L160->SetBinContent(23,2097.619); h_SL1L160->SetBinContent(24,1950); h_SL1L160->SetBinContent(25,2057.143); h_SL1L160->SetBinContent(26,2211.905); h_SL1L160->SetBinContent(27,2242.857); h_SL1L160->SetBinContent(28,1916.667); h_SL1L160->SetBinContent(29,2369.048); h_SL1L160->SetBinContent(30,2411.905); h_SL1L160->SetBinContent(31,2045.238); h_SL1L160->SetBinContent(32,2111.905); h_SL1L160->SetBinContent(33,2307.143); h_SL1L160->SetBinContent(34,2640.476); h_SL1L160->SetBinContent(35,2283.333); h_SL1L160->SetBinContent(36,2085.714); h_SL1L160->SetBinContent(37,2726.19); h_SL1L160->SetBinContent(38,2723.81); h_SL1L160->SetBinContent(39,2228.571); h_SL1L160->SetBinContent(40,2078.571); h_SL1L160->SetBinContent(41,2276.19); h_SL1L160->SetBinContent(42,2311.905); h_SL1L160->SetBinContent(43,2292.857); h_SL1L160->SetBinContent(44,2223.81); h_SL1L160->SetBinContent(45,2095.238); h_SL1L160->SetBinContent(46,2016.667); h_SL1L160->SetBinContent(47,1704.762); h_SL1L160->SetBinContent(48,1485.714); h_SL1L160->SetBinContent(49,1747.619); h_SL1L160->SetBinContent(50,1823.809); h_SL1L160->SetBinContent(51,1566.667); h_SL1L160->SetBinContent(52,1500); h_SL1L160->SetBinContent(53,1709.524); h_SL1L160->SetBinContent(54,1452.381); h_SL1L160->SetBinContent(55,1207.143); h_SL1L160->SetBinContent(56,1383.333); h_SL1L160->SetBinContent(57,1319.048); h_SL1L160->SetBinContent(58,1304.762); h_SL1L160->SetBinContent(59,1092.857); h_SL1L160->SetMaximum(10824.95); 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,2790.476); h_SL1L261->SetBinContent(2,3619.048); h_SL1L261->SetBinContent(3,4219.047); h_SL1L261->SetBinContent(4,5104.762); h_SL1L261->SetBinContent(5,5733.333); h_SL1L261->SetBinContent(6,6361.905); h_SL1L261->SetBinContent(7,6166.667); h_SL1L261->SetBinContent(8,6471.429); h_SL1L261->SetBinContent(9,6930.952); h_SL1L261->SetBinContent(10,6940.476); h_SL1L261->SetBinContent(11,6550); h_SL1L261->SetBinContent(12,6904.762); h_SL1L261->SetBinContent(13,7133.333); h_SL1L261->SetBinContent(14,7002.381); h_SL1L261->SetBinContent(15,6700); h_SL1L261->SetBinContent(16,6669.047); h_SL1L261->SetBinContent(17,6878.571); h_SL1L261->SetBinContent(18,7004.762); h_SL1L261->SetBinContent(19,6664.286); h_SL1L261->SetBinContent(20,6921.429); h_SL1L261->SetBinContent(21,7076.19); h_SL1L261->SetBinContent(22,7071.429); h_SL1L261->SetBinContent(23,6766.667); h_SL1L261->SetBinContent(24,6778.571); h_SL1L261->SetBinContent(25,7192.857); h_SL1L261->SetBinContent(26,7485.714); h_SL1L261->SetBinContent(27,6680.952); h_SL1L261->SetBinContent(28,7407.143); h_SL1L261->SetBinContent(29,7240.476); h_SL1L261->SetBinContent(30,7688.095); h_SL1L261->SetBinContent(31,7354.762); h_SL1L261->SetBinContent(32,7266.667); h_SL1L261->SetBinContent(33,7883.333); h_SL1L261->SetBinContent(34,8135.714); h_SL1L261->SetBinContent(35,7569.047); h_SL1L261->SetBinContent(36,7261.905); h_SL1L261->SetBinContent(37,7564.286); h_SL1L261->SetBinContent(38,7690.476); h_SL1L261->SetBinContent(39,6985.714); h_SL1L261->SetBinContent(40,7335.714); h_SL1L261->SetBinContent(41,7447.619); h_SL1L261->SetBinContent(42,7585.714); h_SL1L261->SetBinContent(43,7028.571); h_SL1L261->SetBinContent(44,7059.524); h_SL1L261->SetBinContent(45,7345.238); h_SL1L261->SetBinContent(46,7526.19); h_SL1L261->SetBinContent(47,6400); h_SL1L261->SetBinContent(48,5566.667); h_SL1L261->SetBinContent(49,5533.333); h_SL1L261->SetBinContent(50,5626.19); h_SL1L261->SetBinContent(51,5228.571); h_SL1L261->SetBinContent(52,5092.857); h_SL1L261->SetBinContent(53,5509.524); h_SL1L261->SetBinContent(54,5635.714); h_SL1L261->SetBinContent(55,4866.667); h_SL1L261->SetBinContent(56,4540.476); h_SL1L261->SetBinContent(57,4264.286); h_SL1L261->SetBinContent(58,3754.762); h_SL1L261->SetBinContent(59,3054.762); h_SL1L261->SetMaximum(9413.572); 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,3009.524); h_SL1L362->SetBinContent(2,3978.571); h_SL1L362->SetBinContent(3,4676.19); h_SL1L362->SetBinContent(4,5590.476); h_SL1L362->SetBinContent(5,6321.429); h_SL1L362->SetBinContent(6,6428.571); h_SL1L362->SetBinContent(7,6126.19); h_SL1L362->SetBinContent(8,6983.333); h_SL1L362->SetBinContent(9,7133.333); h_SL1L362->SetBinContent(10,6752.381); h_SL1L362->SetBinContent(11,6652.381); h_SL1L362->SetBinContent(12,7235.714); h_SL1L362->SetBinContent(13,7190.476); h_SL1L362->SetBinContent(14,6707.143); h_SL1L362->SetBinContent(15,6561.905); h_SL1L362->SetBinContent(16,6733.333); h_SL1L362->SetBinContent(17,7176.19); h_SL1L362->SetBinContent(18,6780.952); h_SL1L362->SetBinContent(19,6516.667); h_SL1L362->SetBinContent(20,7107.143); h_SL1L362->SetBinContent(21,7421.429); h_SL1L362->SetBinContent(22,6800); h_SL1L362->SetBinContent(23,6730.952); h_SL1L362->SetBinContent(24,7130.952); h_SL1L362->SetBinContent(25,7604.762); h_SL1L362->SetBinContent(26,7092.857); h_SL1L362->SetBinContent(27,6864.286); h_SL1L362->SetBinContent(28,7280.952); h_SL1L362->SetBinContent(29,7597.619); h_SL1L362->SetBinContent(30,7507.143); h_SL1L362->SetBinContent(31,7228.571); h_SL1L362->SetBinContent(32,7709.524); h_SL1L362->SetBinContent(33,8019.047); h_SL1L362->SetBinContent(34,7909.524); h_SL1L362->SetBinContent(35,7219.047); h_SL1L362->SetBinContent(36,7647.619); h_SL1L362->SetBinContent(37,8028.571); h_SL1L362->SetBinContent(38,7292.857); h_SL1L362->SetBinContent(39,7240.476); h_SL1L362->SetBinContent(40,7409.524); h_SL1L362->SetBinContent(41,7742.857); h_SL1L362->SetBinContent(42,7309.524); h_SL1L362->SetBinContent(43,7071.429); h_SL1L362->SetBinContent(44,7423.81); h_SL1L362->SetBinContent(45,7623.81); h_SL1L362->SetBinContent(46,7071.429); h_SL1L362->SetBinContent(47,5769.047); h_SL1L362->SetBinContent(48,5609.524); h_SL1L362->SetBinContent(49,5761.905); h_SL1L362->SetBinContent(50,5309.524); h_SL1L362->SetBinContent(51,5078.571); h_SL1L362->SetBinContent(52,5423.81); h_SL1L362->SetBinContent(53,5838.095); h_SL1L362->SetBinContent(54,5464.286); h_SL1L362->SetBinContent(55,4645.238); h_SL1L362->SetBinContent(56,4700); h_SL1L362->SetBinContent(57,4128.571); h_SL1L362->SetBinContent(58,3521.428); h_SL1L362->SetBinContent(59,2623.81); h_SL1L362->SetMaximum(9413.572); 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,3385.714); h_SL1L463->SetBinContent(3,4340.476); h_SL1L463->SetBinContent(4,5150); h_SL1L463->SetBinContent(5,6119.047); h_SL1L463->SetBinContent(6,6445.238); h_SL1L463->SetBinContent(7,6238.095); h_SL1L463->SetBinContent(8,6645.238); h_SL1L463->SetBinContent(9,7116.667); h_SL1L463->SetBinContent(10,7016.667); h_SL1L463->SetBinContent(11,6316.667); h_SL1L463->SetBinContent(12,6916.667); h_SL1L463->SetBinContent(13,7285.714); h_SL1L463->SetBinContent(14,7178.571); h_SL1L463->SetBinContent(15,6497.619); h_SL1L463->SetBinContent(16,6954.762); h_SL1L463->SetBinContent(17,6945.238); h_SL1L463->SetBinContent(18,7083.333); h_SL1L463->SetBinContent(19,6228.571); h_SL1L463->SetBinContent(20,7109.524); h_SL1L463->SetBinContent(21,7407.143); h_SL1L463->SetBinContent(22,7080.952); h_SL1L463->SetBinContent(23,6659.524); h_SL1L463->SetBinContent(24,7030.952); h_SL1L463->SetBinContent(25,7359.524); h_SL1L463->SetBinContent(26,7430.952); h_SL1L463->SetBinContent(27,6714.286); h_SL1L463->SetBinContent(28,7119.047); h_SL1L463->SetBinContent(29,7516.667); h_SL1L463->SetBinContent(30,7700); h_SL1L463->SetBinContent(31,7190.476); h_SL1L463->SetBinContent(32,7473.81); h_SL1L463->SetBinContent(33,7947.619); h_SL1L463->SetBinContent(34,8185.714); h_SL1L463->SetBinContent(35,7485.714); h_SL1L463->SetBinContent(36,7280.952); h_SL1L463->SetBinContent(37,7947.619); h_SL1L463->SetBinContent(38,7597.619); h_SL1L463->SetBinContent(39,7057.143); h_SL1L463->SetBinContent(40,7490.476); h_SL1L463->SetBinContent(41,7807.143); h_SL1L463->SetBinContent(42,7535.714); h_SL1L463->SetBinContent(43,6876.19); h_SL1L463->SetBinContent(44,7254.762); h_SL1L463->SetBinContent(45,7476.19); h_SL1L463->SetBinContent(46,7635.714); h_SL1L463->SetBinContent(47,6359.524); h_SL1L463->SetBinContent(48,5640.476); h_SL1L463->SetBinContent(49,5757.143); h_SL1L463->SetBinContent(50,5392.857); h_SL1L463->SetBinContent(51,4954.762); h_SL1L463->SetBinContent(52,5223.81); h_SL1L463->SetBinContent(53,5797.619); h_SL1L463->SetBinContent(54,5666.667); h_SL1L463->SetBinContent(56,4854.762); h_SL1L463->SetBinContent(57,4690.476); h_SL1L463->SetBinContent(58,3850); h_SL1L463->SetBinContent(59,3009.524); h_SL1L463->SetMaximum(9413.572); 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 6123"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }