void RatesPerCell_Removing_noisy_cells_run_5372_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:32:43 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9495.263,67.5,85457.36); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5372",60,0,60); h_SL2L164->SetBinContent(1,391.4286); h_SL2L164->SetBinContent(2,374.2857); h_SL2L164->SetBinContent(3,484.2857); h_SL2L164->SetBinContent(4,471.4286); h_SL2L164->SetBinContent(5,485.7143); h_SL2L164->SetBinContent(6,512.8572); h_SL2L164->SetBinContent(7,530); h_SL2L164->SetBinContent(8,541.4286); h_SL2L164->SetBinContent(9,620); h_SL2L164->SetBinContent(10,698.5715); h_SL2L164->SetBinContent(11,758.5715); h_SL2L164->SetBinContent(12,794.2857); h_SL2L164->SetBinContent(13,861.4286); h_SL2L164->SetBinContent(14,967.1429); h_SL2L164->SetBinContent(15,887.1429); h_SL2L164->SetBinContent(16,1002.857); h_SL2L164->SetBinContent(17,945.7143); h_SL2L164->SetBinContent(18,1144.286); h_SL2L164->SetBinContent(19,1345.714); h_SL2L164->SetBinContent(20,1270); h_SL2L164->SetBinContent(21,1495.714); h_SL2L164->SetBinContent(22,1665.714); h_SL2L164->SetBinContent(23,1805.714); h_SL2L164->SetBinContent(24,1594.286); h_SL2L164->SetBinContent(25,2927.143); h_SL2L164->SetBinContent(26,9898.571); h_SL2L164->SetBinContent(27,16630); h_SL2L164->SetBinContent(28,17251.43); h_SL2L164->SetBinContent(29,21861.43); h_SL2L164->SetBinContent(30,18315.71); h_SL2L164->SetBinContent(31,16042.86); h_SL2L164->SetBinContent(32,13535.71); h_SL2L164->SetBinContent(33,14061.43); h_SL2L164->SetBinContent(34,8008.572); h_SL2L164->SetBinContent(36,1668.571); h_SL2L164->SetBinContent(37,1507.143); h_SL2L164->SetBinContent(38,1137.143); h_SL2L164->SetBinContent(39,998.5715); h_SL2L164->SetBinContent(40,621.4286); h_SL2L164->SetBinContent(41,752.8572); h_SL2L164->SetBinContent(42,801.4286); h_SL2L164->SetBinContent(43,782.8572); h_SL2L164->SetBinContent(44,714.2857); h_SL2L164->SetBinContent(45,708.5715); h_SL2L164->SetBinContent(46,677.1429); h_SL2L164->SetBinContent(47,585.7143); h_SL2L164->SetBinContent(48,507.1429); h_SL2L164->SetBinContent(49,565.7143); h_SL2L164->SetBinContent(50,545.7143); h_SL2L164->SetBinContent(51,544.2857); h_SL2L164->SetBinContent(52,492.8571); h_SL2L164->SetBinContent(53,512.8572); h_SL2L164->SetBinContent(54,492.8571); h_SL2L164->SetBinContent(55,410); h_SL2L164->SetBinContent(56,268.5714); h_SL2L164->SetBinContent(57,1050); h_SL2L164->SetMaximum(75962.1); 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,1012.857); h_SL2L265->SetBinContent(2,1030); h_SL2L265->SetBinContent(3,1150); h_SL2L265->SetBinContent(4,1370); h_SL2L265->SetBinContent(5,1424.286); h_SL2L265->SetBinContent(6,1521.429); h_SL2L265->SetBinContent(7,1557.143); h_SL2L265->SetBinContent(8,1711.429); h_SL2L265->SetBinContent(9,1760); h_SL2L265->SetBinContent(10,1910); h_SL2L265->SetBinContent(11,2158.572); h_SL2L265->SetBinContent(12,2262.857); h_SL2L265->SetBinContent(13,2538.572); h_SL2L265->SetBinContent(14,2678.572); h_SL2L265->SetBinContent(15,2925.714); h_SL2L265->SetBinContent(16,3232.857); h_SL2L265->SetBinContent(17,3168.572); h_SL2L265->SetBinContent(18,3485.714); h_SL2L265->SetBinContent(19,3647.143); h_SL2L265->SetBinContent(20,4307.143); h_SL2L265->SetBinContent(21,4214.286); h_SL2L265->SetBinContent(22,4560); h_SL2L265->SetBinContent(23,4852.857); h_SL2L265->SetBinContent(24,5235.714); h_SL2L265->SetBinContent(25,6112.857); h_SL2L265->SetBinContent(26,19574.29); h_SL2L265->SetBinContent(27,39317.14); h_SL2L265->SetBinContent(28,51714.29); h_SL2L265->SetBinContent(29,57002.86); h_SL2L265->SetBinContent(30,56074.29); h_SL2L265->SetBinContent(31,49500); h_SL2L265->SetBinContent(32,46045.71); h_SL2L265->SetBinContent(33,45875.71); h_SL2L265->SetBinContent(34,38888.57); h_SL2L265->SetBinContent(35,14287.14); h_SL2L265->SetBinContent(36,6487.143); h_SL2L265->SetBinContent(37,4792.857); h_SL2L265->SetBinContent(38,4025.714); h_SL2L265->SetBinContent(39,3352.857); h_SL2L265->SetBinContent(40,3115.714); h_SL2L265->SetBinContent(41,2754.286); h_SL2L265->SetBinContent(42,2760); h_SL2L265->SetBinContent(43,2380); h_SL2L265->SetBinContent(44,2275.714); h_SL2L265->SetBinContent(45,2085.714); h_SL2L265->SetBinContent(46,1955.714); h_SL2L265->SetBinContent(47,1807.143); h_SL2L265->SetBinContent(48,1670); h_SL2L265->SetBinContent(49,1721.429); h_SL2L265->SetBinContent(50,1582.857); h_SL2L265->SetBinContent(51,1450); h_SL2L265->SetBinContent(52,1468.571); h_SL2L265->SetBinContent(53,1397.143); h_SL2L265->SetBinContent(54,1350); h_SL2L265->SetBinContent(55,1197.143); h_SL2L265->SetBinContent(56,1084.286); h_SL2L265->SetBinContent(57,1105.714); h_SL2L265->SetMaximum(66054.36); 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,1011.429); h_SL2L366->SetBinContent(2,1088.571); h_SL2L366->SetBinContent(3,1295.714); h_SL2L366->SetBinContent(4,1434.286); h_SL2L366->SetBinContent(5,1411.429); h_SL2L366->SetBinContent(6,1454.286); h_SL2L366->SetBinContent(7,1638.571); h_SL2L366->SetBinContent(8,1694.286); h_SL2L366->SetBinContent(9,1862.857); h_SL2L366->SetBinContent(10,1960); h_SL2L366->SetBinContent(11,2232.857); h_SL2L366->SetBinContent(12,2298.572); h_SL2L366->SetBinContent(13,2651.429); h_SL2L366->SetBinContent(14,2701.429); h_SL2L366->SetBinContent(15,3050); h_SL2L366->SetBinContent(16,3128.572); h_SL2L366->SetBinContent(17,3315.714); h_SL2L366->SetBinContent(18,3547.143); h_SL2L366->SetBinContent(19,3867.143); h_SL2L366->SetBinContent(20,4171.429); h_SL2L366->SetBinContent(21,4451.429); h_SL2L366->SetBinContent(22,4621.429); h_SL2L366->SetBinContent(23,4937.143); h_SL2L366->SetBinContent(24,5444.286); h_SL2L366->SetBinContent(25,10234.29); h_SL2L366->SetBinContent(26,30448.57); h_SL2L366->SetBinContent(27,46408.57); h_SL2L366->SetBinContent(28,55225.71); h_SL2L366->SetBinContent(29,57438.57); h_SL2L366->SetBinContent(30,52910); h_SL2L366->SetBinContent(31,47035.71); h_SL2L366->SetBinContent(32,46411.43); h_SL2L366->SetBinContent(33,44797.14); h_SL2L366->SetBinContent(34,25705.71); h_SL2L366->SetBinContent(35,8575.715); h_SL2L366->SetBinContent(36,5280); h_SL2L366->SetBinContent(37,4452.857); h_SL2L366->SetBinContent(38,3647.143); h_SL2L366->SetBinContent(39,3164.286); h_SL2L366->SetBinContent(40,2905.714); h_SL2L366->SetBinContent(41,2681.429); h_SL2L366->SetBinContent(42,2447.143); h_SL2L366->SetBinContent(43,2254.286); h_SL2L366->SetBinContent(44,2200); h_SL2L366->SetBinContent(45,1992.857); h_SL2L366->SetBinContent(46,1912.857); h_SL2L366->SetBinContent(47,1718.571); h_SL2L366->SetBinContent(48,1751.429); h_SL2L366->SetBinContent(49,1588.571); h_SL2L366->SetBinContent(50,1538.571); h_SL2L366->SetBinContent(51,1387.143); h_SL2L366->SetBinContent(52,1415.714); h_SL2L366->SetBinContent(53,1347.143); h_SL2L366->SetBinContent(54,1272.857); h_SL2L366->SetBinContent(55,1172.857); h_SL2L366->SetBinContent(56,1125.714); h_SL2L366->SetBinContent(57,344.2857); h_SL2L366->SetMaximum(66054.36); 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,991.4286); h_SL2L467->SetBinContent(3,1152.857); h_SL2L467->SetBinContent(4,1311.429); h_SL2L467->SetBinContent(5,1404.286); h_SL2L467->SetBinContent(6,1450); h_SL2L467->SetBinContent(7,1517.143); h_SL2L467->SetBinContent(8,1588.571); h_SL2L467->SetBinContent(9,1715.714); h_SL2L467->SetBinContent(10,1877.143); h_SL2L467->SetBinContent(11,2125.714); h_SL2L467->SetBinContent(12,2154.286); h_SL2L467->SetBinContent(13,2472.857); h_SL2L467->SetBinContent(14,2611.429); h_SL2L467->SetBinContent(15,2815.714); h_SL2L467->SetBinContent(16,3095.714); h_SL2L467->SetBinContent(17,3095.714); h_SL2L467->SetBinContent(18,3405.714); h_SL2L467->SetBinContent(19,3518.572); h_SL2L467->SetBinContent(20,4138.571); h_SL2L467->SetBinContent(21,4195.714); h_SL2L467->SetBinContent(22,4530); h_SL2L467->SetBinContent(23,4772.857); h_SL2L467->SetBinContent(24,5058.572); h_SL2L467->SetBinContent(25,6050); h_SL2L467->SetBinContent(26,19520); h_SL2L467->SetBinContent(27,39351.43); h_SL2L467->SetBinContent(28,51702.86); h_SL2L467->SetBinContent(29,57332.86); h_SL2L467->SetBinContent(30,56560); h_SL2L467->SetBinContent(31,49472.86); h_SL2L467->SetBinContent(32,46171.43); h_SL2L467->SetBinContent(33,45961.43); h_SL2L467->SetBinContent(34,39081.43); h_SL2L467->SetBinContent(35,14331.43); h_SL2L467->SetBinContent(36,6321.429); h_SL2L467->SetBinContent(37,4695.714); h_SL2L467->SetBinContent(38,4030); h_SL2L467->SetBinContent(39,3318.572); h_SL2L467->SetBinContent(40,3040); h_SL2L467->SetBinContent(41,2682.857); h_SL2L467->SetBinContent(42,2577.143); h_SL2L467->SetBinContent(43,2272.857); h_SL2L467->SetBinContent(44,2262.857); h_SL2L467->SetBinContent(45,2034.286); h_SL2L467->SetBinContent(46,1954.286); h_SL2L467->SetBinContent(47,1721.429); h_SL2L467->SetBinContent(48,1655.714); h_SL2L467->SetBinContent(49,1642.857); h_SL2L467->SetBinContent(50,1547.143); h_SL2L467->SetBinContent(51,1415.714); h_SL2L467->SetBinContent(52,1387.143); h_SL2L467->SetBinContent(53,1332.857); h_SL2L467->SetBinContent(54,1337.143); h_SL2L467->SetBinContent(55,1191.429); h_SL2L467->SetBinContent(56,1062.857); h_SL2L467->SetBinContent(57,1104.286); h_SL2L467->SetMaximum(66054.36); 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 5372"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }