void RatesPerCell_Removing_noisy_cells_run_6516_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:17:56 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10339.08,67.5,93051.68); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6516",60,0,60); h_SL2L164->SetBinContent(1,675.7143); h_SL2L164->SetBinContent(2,738.5715); h_SL2L164->SetBinContent(3,858.5715); h_SL2L164->SetBinContent(4,975.7143); h_SL2L164->SetBinContent(5,1011.429); h_SL2L164->SetBinContent(6,1092.857); h_SL2L164->SetBinContent(7,1050); h_SL2L164->SetBinContent(8,1211.429); h_SL2L164->SetBinContent(9,1302.857); h_SL2L164->SetBinContent(10,1322.857); h_SL2L164->SetBinContent(11,1535.714); h_SL2L164->SetBinContent(12,1614.286); h_SL2L164->SetBinContent(13,1811.429); h_SL2L164->SetBinContent(14,1862.857); h_SL2L164->SetBinContent(15,1935.714); h_SL2L164->SetBinContent(16,2011.429); h_SL2L164->SetBinContent(17,2237.143); h_SL2L164->SetBinContent(18,2254.286); h_SL2L164->SetBinContent(19,2595.714); h_SL2L164->SetBinContent(20,2694.286); h_SL2L164->SetBinContent(21,2745.714); h_SL2L164->SetBinContent(22,2931.429); h_SL2L164->SetBinContent(23,3232.857); h_SL2L164->SetBinContent(24,3768.572); h_SL2L164->SetBinContent(25,8121.429); h_SL2L164->SetBinContent(26,25841.43); h_SL2L164->SetBinContent(27,45644.29); h_SL2L164->SetBinContent(28,59104.29); h_SL2L164->SetBinContent(29,62542.86); h_SL2L164->SetBinContent(30,55054.29); h_SL2L164->SetBinContent(31,42982.86); h_SL2L164->SetBinContent(32,39437.14); h_SL2L164->SetBinContent(33,39088.57); h_SL2L164->SetBinContent(34,25274.29); h_SL2L164->SetBinContent(36,3867.143); h_SL2L164->SetBinContent(37,6544.286); h_SL2L164->SetBinContent(38,3664.286); h_SL2L164->SetBinContent(39,5850); h_SL2L164->SetBinContent(40,19891.43); h_SL2L164->SetBinContent(41,60504.29); h_SL2L164->SetBinContent(42,11717.14); h_SL2L164->SetBinContent(43,12195.71); h_SL2L164->SetBinContent(44,11868.57); h_SL2L164->SetBinContent(45,1314.286); h_SL2L164->SetBinContent(46,1207.143); h_SL2L164->SetBinContent(47,1142.857); h_SL2L164->SetBinContent(48,1041.429); h_SL2L164->SetBinContent(49,992.8572); h_SL2L164->SetBinContent(50,914.2858); h_SL2L164->SetBinContent(51,858.5715); h_SL2L164->SetBinContent(52,785.7143); h_SL2L164->SetBinContent(53,760); h_SL2L164->SetBinContent(54,682.8572); h_SL2L164->SetBinContent(55,645.7143); h_SL2L164->SetBinContent(56,567.1429); h_SL2L164->SetBinContent(57,558.5715); h_SL2L164->SetMaximum(82712.6); 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,674.2857); h_SL2L265->SetBinContent(2,671.4286); h_SL2L265->SetBinContent(3,777.1429); h_SL2L265->SetBinContent(4,891.4286); h_SL2L265->SetBinContent(5,930); h_SL2L265->SetBinContent(6,1025.714); h_SL2L265->SetBinContent(7,1038.571); h_SL2L265->SetBinContent(8,1105.714); h_SL2L265->SetBinContent(9,1204.286); h_SL2L265->SetBinContent(10,1320); h_SL2L265->SetBinContent(11,1421.429); h_SL2L265->SetBinContent(12,1555.714); h_SL2L265->SetBinContent(13,1682.857); h_SL2L265->SetBinContent(14,1822.857); h_SL2L265->SetBinContent(15,1842.857); h_SL2L265->SetBinContent(16,1907.143); h_SL2L265->SetBinContent(17,2070); h_SL2L265->SetBinContent(18,2158.572); h_SL2L265->SetBinContent(19,2361.429); h_SL2L265->SetBinContent(20,2695.714); h_SL2L265->SetBinContent(21,2628.572); h_SL2L265->SetBinContent(22,2871.429); h_SL2L265->SetBinContent(23,2972.857); h_SL2L265->SetBinContent(24,3450); h_SL2L265->SetBinContent(25,4381.429); h_SL2L265->SetBinContent(26,16281.43); h_SL2L265->SetBinContent(27,36031.43); h_SL2L265->SetBinContent(28,53275.71); h_SL2L265->SetBinContent(29,62258.57); h_SL2L265->SetBinContent(30,59762.86); h_SL2L265->SetBinContent(31,48155.71); h_SL2L265->SetBinContent(32,40158.57); h_SL2L265->SetBinContent(33,39512.86); h_SL2L265->SetBinContent(34,35712.86); h_SL2L265->SetBinContent(35,13784.29); h_SL2L265->SetBinContent(36,4841.429); h_SL2L265->SetBinContent(37,3367.143); h_SL2L265->SetBinContent(38,2777.143); h_SL2L265->SetBinContent(39,3335.714); h_SL2L265->SetBinContent(40,5308.572); h_SL2L265->SetBinContent(41,4974.286); h_SL2L265->SetBinContent(42,3561.429); h_SL2L265->SetBinContent(43,1755.714); h_SL2L265->SetBinContent(44,1951.429); h_SL2L265->SetBinContent(45,1324.286); h_SL2L265->SetBinContent(46,1314.286); h_SL2L265->SetBinContent(47,1134.286); h_SL2L265->SetBinContent(48,985.7143); h_SL2L265->SetBinContent(49,1040); h_SL2L265->SetBinContent(50,944.2858); h_SL2L265->SetBinContent(51,857.1429); h_SL2L265->SetBinContent(52,814.2857); h_SL2L265->SetBinContent(53,745.7143); h_SL2L265->SetBinContent(54,700); h_SL2L265->SetBinContent(55,645.7143); h_SL2L265->SetBinContent(56,655.7143); h_SL2L265->SetBinContent(57,545.7143); h_SL2L265->SetMaximum(71924.29); 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,637.1429); h_SL2L366->SetBinContent(2,721.4286); h_SL2L366->SetBinContent(3,828.5715); h_SL2L366->SetBinContent(4,871.4286); h_SL2L366->SetBinContent(5,957.1429); h_SL2L366->SetBinContent(6,1031.429); h_SL2L366->SetBinContent(7,1061.429); h_SL2L366->SetBinContent(8,1172.857); h_SL2L366->SetBinContent(9,1205.714); h_SL2L366->SetBinContent(10,1265.714); h_SL2L366->SetBinContent(11,1467.143); h_SL2L366->SetBinContent(12,1572.857); h_SL2L366->SetBinContent(13,1690); h_SL2L366->SetBinContent(14,1807.143); h_SL2L366->SetBinContent(15,1810); h_SL2L366->SetBinContent(16,1955.714); h_SL2L366->SetBinContent(17,2104.286); h_SL2L366->SetBinContent(18,2178.572); h_SL2L366->SetBinContent(19,2522.857); h_SL2L366->SetBinContent(20,2570); h_SL2L366->SetBinContent(21,2668.572); h_SL2L366->SetBinContent(22,2802.857); h_SL2L366->SetBinContent(23,3190); h_SL2L366->SetBinContent(24,3588.572); h_SL2L366->SetBinContent(25,8130); h_SL2L366->SetBinContent(26,25828.57); h_SL2L366->SetBinContent(27,45465.71); h_SL2L366->SetBinContent(28,59190); h_SL2L366->SetBinContent(29,62304.29); h_SL2L366->SetBinContent(30,54784.29); h_SL2L366->SetBinContent(31,43111.43); h_SL2L366->SetBinContent(32,39527.14); h_SL2L366->SetBinContent(33,39128.57); h_SL2L366->SetBinContent(34,25211.43); h_SL2L366->SetBinContent(35,7264.286); h_SL2L366->SetBinContent(36,3902.857); h_SL2L366->SetBinContent(37,2985.714); h_SL2L366->SetBinContent(38,2492.857); h_SL2L366->SetBinContent(39,2162.857); h_SL2L366->SetBinContent(40,4147.143); h_SL2L366->SetBinContent(41,2978.572); h_SL2L366->SetBinContent(42,1674.286); h_SL2L366->SetBinContent(43,1508.571); h_SL2L366->SetBinContent(44,1288.571); h_SL2L366->SetBinContent(45,1211.429); h_SL2L366->SetBinContent(46,1165.714); h_SL2L366->SetBinContent(47,1064.286); h_SL2L366->SetBinContent(48,1031.429); h_SL2L366->SetBinContent(49,932.8572); h_SL2L366->SetBinContent(50,900); h_SL2L366->SetBinContent(51,811.4286); h_SL2L366->SetBinContent(52,760); h_SL2L366->SetBinContent(53,757.1429); h_SL2L366->SetBinContent(54,624.2857); h_SL2L366->SetBinContent(55,654.2857); h_SL2L366->SetBinContent(56,578.5715); h_SL2L366->SetBinContent(57,565.7143); h_SL2L366->SetMaximum(71924.29); 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,652.8572); h_SL2L467->SetBinContent(3,722.8572); h_SL2L467->SetBinContent(4,838.5715); h_SL2L467->SetBinContent(5,930); h_SL2L467->SetBinContent(6,975.7143); h_SL2L467->SetBinContent(7,1017.143); h_SL2L467->SetBinContent(8,1115.714); h_SL2L467->SetBinContent(9,1138.571); h_SL2L467->SetBinContent(10,1227.143); h_SL2L467->SetBinContent(11,1344.286); h_SL2L467->SetBinContent(12,1468.571); h_SL2L467->SetBinContent(13,1620); h_SL2L467->SetBinContent(14,1700); h_SL2L467->SetBinContent(15,1742.857); h_SL2L467->SetBinContent(16,1852.857); h_SL2L467->SetBinContent(17,1990); h_SL2L467->SetBinContent(18,2038.572); h_SL2L467->SetBinContent(19,2282.857); h_SL2L467->SetBinContent(20,2565.714); h_SL2L467->SetBinContent(21,2505.714); h_SL2L467->SetBinContent(22,2678.572); h_SL2L467->SetBinContent(23,2831.429); h_SL2L467->SetBinContent(24,3310); h_SL2L467->SetBinContent(25,4218.571); h_SL2L467->SetBinContent(26,16307.14); h_SL2L467->SetBinContent(27,35962.86); h_SL2L467->SetBinContent(28,53032.86); h_SL2L467->SetBinContent(29,62218.57); h_SL2L467->SetBinContent(30,59984.29); h_SL2L467->SetBinContent(31,48148.57); h_SL2L467->SetBinContent(32,40284.29); h_SL2L467->SetBinContent(33,39440); h_SL2L467->SetBinContent(34,35447.14); h_SL2L467->SetBinContent(35,13698.57); h_SL2L467->SetBinContent(36,4771.429); h_SL2L467->SetBinContent(37,3242.857); h_SL2L467->SetBinContent(38,2685.714); h_SL2L467->SetBinContent(39,2241.429); h_SL2L467->SetBinContent(40,2017.143); h_SL2L467->SetBinContent(41,1858.572); h_SL2L467->SetBinContent(42,2540); h_SL2L467->SetBinContent(43,1511.429); h_SL2L467->SetBinContent(44,1377.143); h_SL2L467->SetBinContent(45,1260); h_SL2L467->SetBinContent(46,1208.571); h_SL2L467->SetBinContent(47,1132.857); h_SL2L467->SetBinContent(48,932.8572); h_SL2L467->SetBinContent(49,967.1429); h_SL2L467->SetBinContent(50,932.8572); h_SL2L467->SetBinContent(51,832.8572); h_SL2L467->SetBinContent(52,797.1429); h_SL2L467->SetBinContent(53,727.1429); h_SL2L467->SetBinContent(54,635.7143); h_SL2L467->SetBinContent(55,642.8572); h_SL2L467->SetBinContent(56,610); h_SL2L467->SetBinContent(57,551.4286); h_SL2L467->SetMaximum(71924.29); 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 6516"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }