void RatesPerCell_Removing_noisy_cells_run_5674_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:41:02 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9586.832,67.5,86281.48); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5674",60,0,60); h_SL2L164->SetBinContent(1,671.4286); h_SL2L164->SetBinContent(2,817.1429); h_SL2L164->SetBinContent(3,915.7143); h_SL2L164->SetBinContent(4,1040); h_SL2L164->SetBinContent(5,1060); h_SL2L164->SetBinContent(6,1110); h_SL2L164->SetBinContent(7,1112.857); h_SL2L164->SetBinContent(8,1190); h_SL2L164->SetBinContent(9,1404.286); h_SL2L164->SetBinContent(10,1468.571); h_SL2L164->SetBinContent(11,1650); h_SL2L164->SetBinContent(12,1774.286); h_SL2L164->SetBinContent(13,1897.143); h_SL2L164->SetBinContent(14,2081.429); h_SL2L164->SetBinContent(15,2175.714); h_SL2L164->SetBinContent(16,2315.714); h_SL2L164->SetBinContent(17,2605.714); h_SL2L164->SetBinContent(18,2770); h_SL2L164->SetBinContent(19,2980); h_SL2L164->SetBinContent(20,3145.714); h_SL2L164->SetBinContent(21,3230); h_SL2L164->SetBinContent(22,3641.429); h_SL2L164->SetBinContent(23,3832.857); h_SL2L164->SetBinContent(24,4260); h_SL2L164->SetBinContent(25,9565.715); h_SL2L164->SetBinContent(26,32144.29); h_SL2L164->SetBinContent(27,49248.57); h_SL2L164->SetBinContent(28,57041.43); h_SL2L164->SetBinContent(29,57992.86); h_SL2L164->SetBinContent(30,52397.14); h_SL2L164->SetBinContent(31,44727.14); h_SL2L164->SetBinContent(32,42351.43); h_SL2L164->SetBinContent(33,39552.86); h_SL2L164->SetBinContent(34,21714.29); h_SL2L164->SetBinContent(36,3905.714); h_SL2L164->SetBinContent(37,3105.714); h_SL2L164->SetBinContent(38,2638.572); h_SL2L164->SetBinContent(39,2260); h_SL2L164->SetBinContent(40,1637.143); h_SL2L164->SetBinContent(41,1798.571); h_SL2L164->SetBinContent(42,1705.714); h_SL2L164->SetBinContent(43,1552.857); h_SL2L164->SetBinContent(44,1482.857); h_SL2L164->SetBinContent(45,1395.714); h_SL2L164->SetBinContent(46,1258.571); h_SL2L164->SetBinContent(47,1244.286); h_SL2L164->SetBinContent(48,1154.286); h_SL2L164->SetBinContent(49,1135.714); h_SL2L164->SetBinContent(50,978.5715); h_SL2L164->SetBinContent(51,950); h_SL2L164->SetBinContent(52,931.4286); h_SL2L164->SetBinContent(53,915.7143); h_SL2L164->SetBinContent(54,794.2857); h_SL2L164->SetBinContent(55,748.5715); h_SL2L164->SetBinContent(56,727.1429); h_SL2L164->SetBinContent(57,705.7143); h_SL2L164->SetMaximum(76694.65); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,628.5715); h_SL2L265->SetBinContent(2,738.5715); h_SL2L265->SetBinContent(3,845.7143); h_SL2L265->SetBinContent(4,945.7143); h_SL2L265->SetBinContent(5,1040); h_SL2L265->SetBinContent(6,1157.143); h_SL2L265->SetBinContent(7,1081.429); h_SL2L265->SetBinContent(8,1105.714); h_SL2L265->SetBinContent(9,1267.143); h_SL2L265->SetBinContent(10,1437.143); h_SL2L265->SetBinContent(11,1467.143); h_SL2L265->SetBinContent(12,1654.286); h_SL2L265->SetBinContent(13,1727.143); h_SL2L265->SetBinContent(14,1974.286); h_SL2L265->SetBinContent(15,2094.286); h_SL2L265->SetBinContent(16,2164.286); h_SL2L265->SetBinContent(17,2471.429); h_SL2L265->SetBinContent(18,2620); h_SL2L265->SetBinContent(19,2735.714); h_SL2L265->SetBinContent(20,2982.857); h_SL2L265->SetBinContent(21,3144.286); h_SL2L265->SetBinContent(22,3352.857); h_SL2L265->SetBinContent(23,3582.857); h_SL2L265->SetBinContent(24,4101.429); h_SL2L265->SetBinContent(25,4768.572); h_SL2L265->SetBinContent(26,19847.14); h_SL2L265->SetBinContent(27,42150); h_SL2L265->SetBinContent(28,53897.14); h_SL2L265->SetBinContent(29,57898.57); h_SL2L265->SetBinContent(30,55564.29); h_SL2L265->SetBinContent(31,47600); h_SL2L265->SetBinContent(32,42852.86); h_SL2L265->SetBinContent(33,41627.14); h_SL2L265->SetBinContent(34,33100); h_SL2L265->SetBinContent(35,11741.43); h_SL2L265->SetBinContent(36,4715.714); h_SL2L265->SetBinContent(37,3465.714); h_SL2L265->SetBinContent(38,2734.286); h_SL2L265->SetBinContent(39,2431.429); h_SL2L265->SetBinContent(40,2057.143); h_SL2L265->SetBinContent(41,1822.857); h_SL2L265->SetBinContent(42,1784.286); h_SL2L265->SetBinContent(43,1625.714); h_SL2L265->SetBinContent(44,1445.714); h_SL2L265->SetBinContent(45,1385.714); h_SL2L265->SetBinContent(46,1335.714); h_SL2L265->SetBinContent(47,1178.571); h_SL2L265->SetBinContent(48,1214.286); h_SL2L265->SetBinContent(49,1134.286); h_SL2L265->SetBinContent(50,1052.857); h_SL2L265->SetBinContent(51,948.5715); h_SL2L265->SetBinContent(52,872.8572); h_SL2L265->SetBinContent(53,875.7143); h_SL2L265->SetBinContent(54,870); h_SL2L265->SetBinContent(55,768.5715); h_SL2L265->SetBinContent(56,717.1429); h_SL2L265->SetBinContent(57,744.2857); h_SL2L265->SetMaximum(66691.79); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,655.7143); h_SL2L366->SetBinContent(2,772.8572); h_SL2L366->SetBinContent(3,895.7143); h_SL2L366->SetBinContent(4,988.5715); h_SL2L366->SetBinContent(5,1027.143); h_SL2L366->SetBinContent(6,1085.714); h_SL2L366->SetBinContent(7,1090); h_SL2L366->SetBinContent(8,1175.714); h_SL2L366->SetBinContent(9,1317.143); h_SL2L366->SetBinContent(10,1415.714); h_SL2L366->SetBinContent(11,1545.714); h_SL2L366->SetBinContent(12,1688.571); h_SL2L366->SetBinContent(13,1811.429); h_SL2L366->SetBinContent(14,2000); h_SL2L366->SetBinContent(15,2068.572); h_SL2L366->SetBinContent(16,2202.857); h_SL2L366->SetBinContent(17,2561.429); h_SL2L366->SetBinContent(18,2642.857); h_SL2L366->SetBinContent(19,2835.714); h_SL2L366->SetBinContent(20,3017.143); h_SL2L366->SetBinContent(21,3131.429); h_SL2L366->SetBinContent(22,3587.143); h_SL2L366->SetBinContent(23,3671.429); h_SL2L366->SetBinContent(24,3990); h_SL2L366->SetBinContent(25,9332.857); h_SL2L366->SetBinContent(26,31947.14); h_SL2L366->SetBinContent(27,49034.29); h_SL2L366->SetBinContent(28,56737.14); h_SL2L366->SetBinContent(29,57444.29); h_SL2L366->SetBinContent(30,52094.29); h_SL2L366->SetBinContent(31,44477.14); h_SL2L366->SetBinContent(32,42202.86); h_SL2L366->SetBinContent(33,39087.14); h_SL2L366->SetBinContent(34,21581.43); h_SL2L366->SetBinContent(35,6502.857); h_SL2L366->SetBinContent(36,3875.714); h_SL2L366->SetBinContent(37,2920); h_SL2L366->SetBinContent(38,2484.286); h_SL2L366->SetBinContent(39,2151.429); h_SL2L366->SetBinContent(40,1842.857); h_SL2L366->SetBinContent(41,1770); h_SL2L366->SetBinContent(42,1575.714); h_SL2L366->SetBinContent(43,1494.286); h_SL2L366->SetBinContent(44,1380); h_SL2L366->SetBinContent(45,1285.714); h_SL2L366->SetBinContent(46,1207.143); h_SL2L366->SetBinContent(47,1215.714); h_SL2L366->SetBinContent(48,1112.857); h_SL2L366->SetBinContent(49,1124.286); h_SL2L366->SetBinContent(50,895.7143); h_SL2L366->SetBinContent(51,868.5715); h_SL2L366->SetBinContent(52,854.2857); h_SL2L366->SetBinContent(53,875.7143); h_SL2L366->SetBinContent(54,734.2857); h_SL2L366->SetBinContent(55,725.7143); h_SL2L366->SetBinContent(56,760); h_SL2L366->SetBinContent(57,684.2857); h_SL2L366->SetMaximum(66691.79); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,717.1429); h_SL2L467->SetBinContent(3,797.1429); h_SL2L467->SetBinContent(4,955.7143); h_SL2L467->SetBinContent(5,1004.286); h_SL2L467->SetBinContent(6,1077.143); h_SL2L467->SetBinContent(7,1040); h_SL2L467->SetBinContent(8,1107.143); h_SL2L467->SetBinContent(9,1217.143); h_SL2L467->SetBinContent(10,1377.143); h_SL2L467->SetBinContent(11,1432.857); h_SL2L467->SetBinContent(12,1512.857); h_SL2L467->SetBinContent(13,1654.286); h_SL2L467->SetBinContent(14,1910); h_SL2L467->SetBinContent(15,1950); h_SL2L467->SetBinContent(16,2085.714); h_SL2L467->SetBinContent(17,2330); h_SL2L467->SetBinContent(18,2541.429); h_SL2L467->SetBinContent(19,2740); h_SL2L467->SetBinContent(20,2894.286); h_SL2L467->SetBinContent(21,3050); h_SL2L467->SetBinContent(22,3297.143); h_SL2L467->SetBinContent(23,3515.714); h_SL2L467->SetBinContent(24,3874.286); h_SL2L467->SetBinContent(25,4545.714); h_SL2L467->SetBinContent(26,19824.29); h_SL2L467->SetBinContent(27,42038.57); h_SL2L467->SetBinContent(28,53874.29); h_SL2L467->SetBinContent(29,57920); h_SL2L467->SetBinContent(30,55990); h_SL2L467->SetBinContent(31,47671.43); h_SL2L467->SetBinContent(32,42950); h_SL2L467->SetBinContent(33,41490); h_SL2L467->SetBinContent(34,32951.43); h_SL2L467->SetBinContent(35,11548.57); h_SL2L467->SetBinContent(36,4547.143); h_SL2L467->SetBinContent(37,3331.429); h_SL2L467->SetBinContent(38,2604.286); h_SL2L467->SetBinContent(39,2345.714); h_SL2L467->SetBinContent(40,1948.572); h_SL2L467->SetBinContent(41,1788.571); h_SL2L467->SetBinContent(42,1624.286); h_SL2L467->SetBinContent(43,1502.857); h_SL2L467->SetBinContent(44,1335.714); h_SL2L467->SetBinContent(45,1311.429); h_SL2L467->SetBinContent(46,1258.571); h_SL2L467->SetBinContent(47,1122.857); h_SL2L467->SetBinContent(48,1168.571); h_SL2L467->SetBinContent(49,1104.286); h_SL2L467->SetBinContent(50,994.2858); h_SL2L467->SetBinContent(51,897.1429); h_SL2L467->SetBinContent(52,885.7143); h_SL2L467->SetBinContent(53,882.8572); h_SL2L467->SetBinContent(54,845.7143); h_SL2L467->SetBinContent(55,711.4286); h_SL2L467->SetBinContent(56,708.5715); h_SL2L467->SetBinContent(57,730); h_SL2L467->SetMaximum(66691.79); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 5674"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }