void RatesPerCell_Removing_noisy_cells_run_6612_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:02:52 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13054.94,67.5,117494.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6612",60,0,60); h_SL2L164->SetBinContent(1,740); h_SL2L164->SetBinContent(2,860); h_SL2L164->SetBinContent(3,1027.143); h_SL2L164->SetBinContent(4,1098.571); h_SL2L164->SetBinContent(5,1121.429); h_SL2L164->SetBinContent(6,1328.571); h_SL2L164->SetBinContent(7,1224.286); h_SL2L164->SetBinContent(8,1342.857); h_SL2L164->SetBinContent(9,1374.286); h_SL2L164->SetBinContent(10,1594.286); h_SL2L164->SetBinContent(11,1622.857); h_SL2L164->SetBinContent(12,1717.143); h_SL2L164->SetBinContent(13,1752.857); h_SL2L164->SetBinContent(14,2012.857); h_SL2L164->SetBinContent(15,2062.857); h_SL2L164->SetBinContent(16,2184.286); h_SL2L164->SetBinContent(17,2214.286); h_SL2L164->SetBinContent(18,2377.143); h_SL2L164->SetBinContent(19,2711.429); h_SL2L164->SetBinContent(20,2700); h_SL2L164->SetBinContent(21,2644.286); h_SL2L164->SetBinContent(22,3018.572); h_SL2L164->SetBinContent(23,3364.286); h_SL2L164->SetBinContent(24,3701.429); h_SL2L164->SetBinContent(25,9015.715); h_SL2L164->SetBinContent(26,27207.14); h_SL2L164->SetBinContent(27,41944.29); h_SL2L164->SetBinContent(28,50422.86); h_SL2L164->SetBinContent(29,53464.29); h_SL2L164->SetBinContent(30,51905.71); h_SL2L164->SetBinContent(31,50452.86); h_SL2L164->SetBinContent(32,50097.14); h_SL2L164->SetBinContent(33,48327.14); h_SL2L164->SetBinContent(34,26765.71); h_SL2L164->SetBinContent(36,3875.714); h_SL2L164->SetBinContent(37,8274.286); h_SL2L164->SetBinContent(38,5117.143); h_SL2L164->SetBinContent(39,6624.286); h_SL2L164->SetBinContent(40,74978.57); h_SL2L164->SetBinContent(41,78971.43); h_SL2L164->SetBinContent(42,13264.29); h_SL2L164->SetBinContent(43,13152.86); h_SL2L164->SetBinContent(44,13491.43); h_SL2L164->SetBinContent(45,1418.571); h_SL2L164->SetBinContent(46,1305.714); h_SL2L164->SetBinContent(47,1171.429); h_SL2L164->SetBinContent(48,1124.286); h_SL2L164->SetBinContent(49,1057.143); h_SL2L164->SetBinContent(50,988.5715); h_SL2L164->SetBinContent(51,928.5715); h_SL2L164->SetBinContent(52,824.2857); h_SL2L164->SetBinContent(53,777.1429); h_SL2L164->SetBinContent(54,710); h_SL2L164->SetBinContent(55,654.2857); h_SL2L164->SetBinContent(56,617.1429); h_SL2L164->SetBinContent(57,6525.714); h_SL2L164->SetMaximum(104439.5); 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,685.7143); h_SL2L265->SetBinContent(2,852.8572); h_SL2L265->SetBinContent(3,924.2858); h_SL2L265->SetBinContent(4,1021.429); h_SL2L265->SetBinContent(5,1050); h_SL2L265->SetBinContent(6,1215.714); h_SL2L265->SetBinContent(7,1197.143); h_SL2L265->SetBinContent(8,1345.714); h_SL2L265->SetBinContent(9,1351.429); h_SL2L265->SetBinContent(10,1447.143); h_SL2L265->SetBinContent(11,1592.857); h_SL2L265->SetBinContent(12,1630); h_SL2L265->SetBinContent(13,1698.571); h_SL2L265->SetBinContent(14,1858.572); h_SL2L265->SetBinContent(15,1998.572); h_SL2L265->SetBinContent(16,2064.286); h_SL2L265->SetBinContent(17,2171.429); h_SL2L265->SetBinContent(18,2282.857); h_SL2L265->SetBinContent(19,2481.429); h_SL2L265->SetBinContent(20,2810); h_SL2L265->SetBinContent(21,2598.572); h_SL2L265->SetBinContent(22,2700); h_SL2L265->SetBinContent(23,3091.429); h_SL2L265->SetBinContent(24,3445.714); h_SL2L265->SetBinContent(25,4561.429); h_SL2L265->SetBinContent(26,17945.71); h_SL2L265->SetBinContent(27,34795.71); h_SL2L265->SetBinContent(28,47312.86); h_SL2L265->SetBinContent(29,52300); h_SL2L265->SetBinContent(30,52621.43); h_SL2L265->SetBinContent(31,50674.29); h_SL2L265->SetBinContent(32,50154.29); h_SL2L265->SetBinContent(33,50497.14); h_SL2L265->SetBinContent(34,40432.86); h_SL2L265->SetBinContent(35,14284.29); h_SL2L265->SetBinContent(36,4934.286); h_SL2L265->SetBinContent(37,3375.714); h_SL2L265->SetBinContent(38,2677.143); h_SL2L265->SetBinContent(39,3680); h_SL2L265->SetBinContent(40,5192.857); h_SL2L265->SetBinContent(41,4238.571); h_SL2L265->SetBinContent(42,3711.429); h_SL2L265->SetBinContent(43,2600); h_SL2L265->SetBinContent(44,3487.143); h_SL2L265->SetBinContent(45,1517.143); h_SL2L265->SetBinContent(46,1350); h_SL2L265->SetBinContent(47,1170); h_SL2L265->SetBinContent(48,1077.143); h_SL2L265->SetBinContent(49,1082.857); h_SL2L265->SetBinContent(50,954.2858); h_SL2L265->SetBinContent(51,920); h_SL2L265->SetBinContent(52,872.8572); h_SL2L265->SetBinContent(53,784.2857); h_SL2L265->SetBinContent(54,765.7143); h_SL2L265->SetBinContent(55,650); h_SL2L265->SetBinContent(56,637.1429); h_SL2L265->SetBinContent(57,612.8572); h_SL2L265->SetMaximum(90817.14); 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,764.2857); h_SL2L366->SetBinContent(2,865.7143); h_SL2L366->SetBinContent(3,987.1429); h_SL2L366->SetBinContent(4,1052.857); h_SL2L366->SetBinContent(5,1128.571); h_SL2L366->SetBinContent(6,1248.571); h_SL2L366->SetBinContent(7,1280); h_SL2L366->SetBinContent(8,1350); h_SL2L366->SetBinContent(9,1361.429); h_SL2L366->SetBinContent(10,1501.429); h_SL2L366->SetBinContent(11,1558.571); h_SL2L366->SetBinContent(12,1718.571); h_SL2L366->SetBinContent(13,1684.286); h_SL2L366->SetBinContent(14,1952.857); h_SL2L366->SetBinContent(15,2022.857); h_SL2L366->SetBinContent(16,2071.429); h_SL2L366->SetBinContent(17,2207.143); h_SL2L366->SetBinContent(18,2341.429); h_SL2L366->SetBinContent(19,2600); h_SL2L366->SetBinContent(20,2628.572); h_SL2L366->SetBinContent(21,2604.286); h_SL2L366->SetBinContent(22,2871.429); h_SL2L366->SetBinContent(23,3177.143); h_SL2L366->SetBinContent(24,3640); h_SL2L366->SetBinContent(25,8875.715); h_SL2L366->SetBinContent(26,27261.43); h_SL2L366->SetBinContent(27,41672.86); h_SL2L366->SetBinContent(28,50421.43); h_SL2L366->SetBinContent(29,53211.43); h_SL2L366->SetBinContent(30,51691.43); h_SL2L366->SetBinContent(31,50701.43); h_SL2L366->SetBinContent(32,50215.71); h_SL2L366->SetBinContent(33,48528.57); h_SL2L366->SetBinContent(34,26788.57); h_SL2L366->SetBinContent(35,7251.429); h_SL2L366->SetBinContent(36,3915.714); h_SL2L366->SetBinContent(37,2791.429); h_SL2L366->SetBinContent(38,2492.857); h_SL2L366->SetBinContent(39,2155.714); h_SL2L366->SetBinContent(40,3765.714); h_SL2L366->SetBinContent(41,2384.286); h_SL2L366->SetBinContent(42,1861.429); h_SL2L366->SetBinContent(43,1537.143); h_SL2L366->SetBinContent(44,1467.143); h_SL2L366->SetBinContent(45,1375.714); h_SL2L366->SetBinContent(46,1200); h_SL2L366->SetBinContent(47,1127.143); h_SL2L366->SetBinContent(48,1091.429); h_SL2L366->SetBinContent(49,1010); h_SL2L366->SetBinContent(50,945.7143); h_SL2L366->SetBinContent(51,878.5715); h_SL2L366->SetBinContent(52,802.8572); h_SL2L366->SetBinContent(53,775.7143); h_SL2L366->SetBinContent(54,720); h_SL2L366->SetBinContent(55,621.4286); h_SL2L366->SetBinContent(56,595.7143); h_SL2L366->SetBinContent(57,668.5715); h_SL2L366->SetMaximum(90817.14); 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,834.2857); h_SL2L467->SetBinContent(3,928.5715); h_SL2L467->SetBinContent(4,987.1429); h_SL2L467->SetBinContent(5,1051.429); h_SL2L467->SetBinContent(6,1135.714); h_SL2L467->SetBinContent(7,1238.571); h_SL2L467->SetBinContent(8,1318.571); h_SL2L467->SetBinContent(9,1320); h_SL2L467->SetBinContent(10,1361.429); h_SL2L467->SetBinContent(11,1497.143); h_SL2L467->SetBinContent(12,1595.714); h_SL2L467->SetBinContent(13,1652.857); h_SL2L467->SetBinContent(14,1827.143); h_SL2L467->SetBinContent(15,1900); h_SL2L467->SetBinContent(16,1994.286); h_SL2L467->SetBinContent(17,2158.572); h_SL2L467->SetBinContent(18,2174.286); h_SL2L467->SetBinContent(19,2450); h_SL2L467->SetBinContent(20,2687.143); h_SL2L467->SetBinContent(21,2512.857); h_SL2L467->SetBinContent(22,2654.286); h_SL2L467->SetBinContent(23,2995.714); h_SL2L467->SetBinContent(24,3282.857); h_SL2L467->SetBinContent(25,4497.143); h_SL2L467->SetBinContent(26,17968.57); h_SL2L467->SetBinContent(27,34968.57); h_SL2L467->SetBinContent(28,47398.57); h_SL2L467->SetBinContent(29,52422.86); h_SL2L467->SetBinContent(30,53258.57); h_SL2L467->SetBinContent(31,50701.43); h_SL2L467->SetBinContent(32,50292.86); h_SL2L467->SetBinContent(33,50495.71); h_SL2L467->SetBinContent(34,40442.86); h_SL2L467->SetBinContent(35,14202.86); h_SL2L467->SetBinContent(36,4878.572); h_SL2L467->SetBinContent(37,3270); h_SL2L467->SetBinContent(38,2611.429); h_SL2L467->SetBinContent(39,2265.714); h_SL2L467->SetBinContent(40,1952.857); h_SL2L467->SetBinContent(41,1814.286); h_SL2L467->SetBinContent(42,2242.857); h_SL2L467->SetBinContent(43,1684.286); h_SL2L467->SetBinContent(44,1385.714); h_SL2L467->SetBinContent(45,1452.857); h_SL2L467->SetBinContent(46,1245.714); h_SL2L467->SetBinContent(47,1130); h_SL2L467->SetBinContent(48,1080); h_SL2L467->SetBinContent(49,1058.571); h_SL2L467->SetBinContent(50,952.8572); h_SL2L467->SetBinContent(51,888.5715); h_SL2L467->SetBinContent(52,794.2857); h_SL2L467->SetBinContent(53,737.1429); h_SL2L467->SetBinContent(54,747.1429); h_SL2L467->SetBinContent(55,660); h_SL2L467->SetBinContent(56,605.7143); h_SL2L467->SetBinContent(57,602.8572); h_SL2L467->SetMaximum(90817.14); 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 6612"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }