void RatesPerCell_Removing_noisy_cells_run_5579_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:46:14 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9700.826,67.5,87307.43); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5579",60,0,60); h_SL2L164->SetBinContent(1,732.1428); h_SL2L164->SetBinContent(2,939.2857); h_SL2L164->SetBinContent(3,1003.571); h_SL2L164->SetBinContent(4,1175); h_SL2L164->SetBinContent(5,1228.571); h_SL2L164->SetBinContent(6,1289.286); h_SL2L164->SetBinContent(7,1214.286); h_SL2L164->SetBinContent(8,1414.286); h_SL2L164->SetBinContent(9,1478.571); h_SL2L164->SetBinContent(10,1667.857); h_SL2L164->SetBinContent(11,1792.857); h_SL2L164->SetBinContent(12,1992.857); h_SL2L164->SetBinContent(13,2217.857); h_SL2L164->SetBinContent(14,2385.714); h_SL2L164->SetBinContent(15,2667.857); h_SL2L164->SetBinContent(16,2746.428); h_SL2L164->SetBinContent(17,2882.143); h_SL2L164->SetBinContent(18,2996.428); h_SL2L164->SetBinContent(19,3264.286); h_SL2L164->SetBinContent(20,3628.571); h_SL2L164->SetBinContent(21,3575); h_SL2L164->SetBinContent(22,4003.571); h_SL2L164->SetBinContent(23,4339.286); h_SL2L164->SetBinContent(24,4775); h_SL2L164->SetBinContent(25,9921.429); h_SL2L164->SetBinContent(26,32864.29); h_SL2L164->SetBinContent(27,50114.29); h_SL2L164->SetBinContent(28,58378.57); h_SL2L164->SetBinContent(29,58289.29); h_SL2L164->SetBinContent(30,52492.86); h_SL2L164->SetBinContent(31,44289.29); h_SL2L164->SetBinContent(32,41957.14); h_SL2L164->SetBinContent(33,39403.57); h_SL2L164->SetBinContent(34,22053.57); h_SL2L164->SetBinContent(36,4285.714); h_SL2L164->SetBinContent(37,3421.428); h_SL2L164->SetBinContent(38,2757.143); h_SL2L164->SetBinContent(39,2482.143); h_SL2L164->SetBinContent(40,1967.857); h_SL2L164->SetBinContent(41,1864.286); h_SL2L164->SetBinContent(42,1900); h_SL2L164->SetBinContent(43,1603.571); h_SL2L164->SetBinContent(44,1539.286); h_SL2L164->SetBinContent(45,1400); h_SL2L164->SetBinContent(46,1410.714); h_SL2L164->SetBinContent(47,1275); h_SL2L164->SetBinContent(48,1275); h_SL2L164->SetBinContent(49,1125); h_SL2L164->SetBinContent(50,1078.571); h_SL2L164->SetBinContent(51,1050); h_SL2L164->SetBinContent(52,1042.857); h_SL2L164->SetBinContent(53,1067.857); h_SL2L164->SetBinContent(54,982.1428); h_SL2L164->SetBinContent(55,907.1428); h_SL2L164->SetBinContent(56,846.4286); h_SL2L164->SetBinContent(57,835.7143); h_SL2L164->SetMaximum(77606.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,689.2857); h_SL2L265->SetBinContent(2,939.2857); h_SL2L265->SetBinContent(3,982.1428); h_SL2L265->SetBinContent(4,985.7143); h_SL2L265->SetBinContent(5,1096.429); h_SL2L265->SetBinContent(6,1228.571); h_SL2L265->SetBinContent(7,1228.571); h_SL2L265->SetBinContent(8,1232.143); h_SL2L265->SetBinContent(9,1364.286); h_SL2L265->SetBinContent(10,1632.143); h_SL2L265->SetBinContent(11,1650); h_SL2L265->SetBinContent(12,1800); h_SL2L265->SetBinContent(13,2053.571); h_SL2L265->SetBinContent(14,2307.143); h_SL2L265->SetBinContent(15,2596.428); h_SL2L265->SetBinContent(16,2585.714); h_SL2L265->SetBinContent(17,2560.714); h_SL2L265->SetBinContent(18,2864.286); h_SL2L265->SetBinContent(19,2842.857); h_SL2L265->SetBinContent(20,3482.143); h_SL2L265->SetBinContent(21,3403.571); h_SL2L265->SetBinContent(22,3746.428); h_SL2L265->SetBinContent(23,4178.571); h_SL2L265->SetBinContent(24,4425); h_SL2L265->SetBinContent(25,5296.429); h_SL2L265->SetBinContent(26,20757.14); h_SL2L265->SetBinContent(27,42789.29); h_SL2L265->SetBinContent(28,55292.86); h_SL2L265->SetBinContent(29,58682.14); h_SL2L265->SetBinContent(30,56710.71); h_SL2L265->SetBinContent(31,47392.86); h_SL2L265->SetBinContent(32,42617.86); h_SL2L265->SetBinContent(33,41228.57); h_SL2L265->SetBinContent(34,32717.86); h_SL2L265->SetBinContent(35,11785.71); h_SL2L265->SetBinContent(36,5057.143); h_SL2L265->SetBinContent(37,3632.143); h_SL2L265->SetBinContent(38,3017.857); h_SL2L265->SetBinContent(39,2525); h_SL2L265->SetBinContent(40,2303.571); h_SL2L265->SetBinContent(41,2267.857); h_SL2L265->SetBinContent(42,1796.429); h_SL2L265->SetBinContent(43,1714.286); h_SL2L265->SetBinContent(44,1546.429); h_SL2L265->SetBinContent(45,1392.857); h_SL2L265->SetBinContent(46,1421.429); h_SL2L265->SetBinContent(47,1360.714); h_SL2L265->SetBinContent(48,1228.571); h_SL2L265->SetBinContent(49,1121.429); h_SL2L265->SetBinContent(50,1121.429); h_SL2L265->SetBinContent(51,1057.143); h_SL2L265->SetBinContent(52,1046.429); h_SL2L265->SetBinContent(53,967.8571); h_SL2L265->SetBinContent(54,946.4286); h_SL2L265->SetBinContent(55,942.8571); h_SL2L265->SetBinContent(56,921.4286); h_SL2L265->SetBinContent(57,803.5714); h_SL2L265->SetMaximum(67484.46); 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,753.5714); h_SL2L366->SetBinContent(2,992.8571); h_SL2L366->SetBinContent(3,939.2857); h_SL2L366->SetBinContent(4,1017.857); h_SL2L366->SetBinContent(5,1114.286); h_SL2L366->SetBinContent(6,1239.286); h_SL2L366->SetBinContent(7,1139.286); h_SL2L366->SetBinContent(8,1342.857); h_SL2L366->SetBinContent(9,1346.429); h_SL2L366->SetBinContent(10,1553.571); h_SL2L366->SetBinContent(11,1689.286); h_SL2L366->SetBinContent(12,1925); h_SL2L366->SetBinContent(13,2139.286); h_SL2L366->SetBinContent(14,2350); h_SL2L366->SetBinContent(15,2546.428); h_SL2L366->SetBinContent(16,2525); h_SL2L366->SetBinContent(17,2885.714); h_SL2L366->SetBinContent(18,2757.143); h_SL2L366->SetBinContent(19,3192.857); h_SL2L366->SetBinContent(20,3378.571); h_SL2L366->SetBinContent(21,3614.286); h_SL2L366->SetBinContent(22,3921.428); h_SL2L366->SetBinContent(23,4278.571); h_SL2L366->SetBinContent(24,4503.571); h_SL2L366->SetBinContent(25,9885.714); h_SL2L366->SetBinContent(26,32821.43); h_SL2L366->SetBinContent(27,50071.43); h_SL2L366->SetBinContent(28,58271.43); h_SL2L366->SetBinContent(29,58175); h_SL2L366->SetBinContent(30,52103.57); h_SL2L366->SetBinContent(31,44325); h_SL2L366->SetBinContent(32,41885.71); h_SL2L366->SetBinContent(33,39032.14); h_SL2L366->SetBinContent(34,21857.14); h_SL2L366->SetBinContent(35,6764.286); h_SL2L366->SetBinContent(36,4285.714); h_SL2L366->SetBinContent(37,3239.286); h_SL2L366->SetBinContent(38,2632.143); h_SL2L366->SetBinContent(39,2471.428); h_SL2L366->SetBinContent(40,2153.571); h_SL2L366->SetBinContent(41,1932.143); h_SL2L366->SetBinContent(42,1771.429); h_SL2L366->SetBinContent(43,1635.714); h_SL2L366->SetBinContent(44,1492.857); h_SL2L366->SetBinContent(45,1325); h_SL2L366->SetBinContent(46,1389.286); h_SL2L366->SetBinContent(47,1167.857); h_SL2L366->SetBinContent(48,1275); h_SL2L366->SetBinContent(49,1100); h_SL2L366->SetBinContent(50,1014.286); h_SL2L366->SetBinContent(51,985.7143); h_SL2L366->SetBinContent(52,1003.571); h_SL2L366->SetBinContent(53,989.2857); h_SL2L366->SetBinContent(54,964.2857); h_SL2L366->SetBinContent(55,885.7143); h_SL2L366->SetBinContent(56,882.1428); h_SL2L366->SetBinContent(57,821.4286); h_SL2L366->SetMaximum(67484.46); 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,896.4286); h_SL2L467->SetBinContent(3,917.8571); h_SL2L467->SetBinContent(4,928.5714); h_SL2L467->SetBinContent(5,1110.714); h_SL2L467->SetBinContent(6,1139.286); h_SL2L467->SetBinContent(7,1200); h_SL2L467->SetBinContent(8,1192.857); h_SL2L467->SetBinContent(9,1371.429); h_SL2L467->SetBinContent(10,1450); h_SL2L467->SetBinContent(11,1621.429); h_SL2L467->SetBinContent(12,1742.857); h_SL2L467->SetBinContent(13,2078.571); h_SL2L467->SetBinContent(14,2089.286); h_SL2L467->SetBinContent(15,2496.428); h_SL2L467->SetBinContent(16,2475); h_SL2L467->SetBinContent(17,2596.428); h_SL2L467->SetBinContent(18,2828.571); h_SL2L467->SetBinContent(19,2785.714); h_SL2L467->SetBinContent(20,3450); h_SL2L467->SetBinContent(21,3300); h_SL2L467->SetBinContent(22,3721.428); h_SL2L467->SetBinContent(23,4010.714); h_SL2L467->SetBinContent(24,4325); h_SL2L467->SetBinContent(25,5150); h_SL2L467->SetBinContent(26,20400); h_SL2L467->SetBinContent(27,42967.86); h_SL2L467->SetBinContent(28,55464.29); h_SL2L467->SetBinContent(29,58446.43); h_SL2L467->SetBinContent(30,56989.29); h_SL2L467->SetBinContent(31,47507.14); h_SL2L467->SetBinContent(32,42964.29); h_SL2L467->SetBinContent(33,40935.71); h_SL2L467->SetBinContent(34,32650); h_SL2L467->SetBinContent(35,11814.29); h_SL2L467->SetBinContent(36,5032.143); h_SL2L467->SetBinContent(37,3607.143); h_SL2L467->SetBinContent(38,2825); h_SL2L467->SetBinContent(39,2521.428); h_SL2L467->SetBinContent(40,2178.571); h_SL2L467->SetBinContent(41,2017.857); h_SL2L467->SetBinContent(42,1710.714); h_SL2L467->SetBinContent(43,1514.286); h_SL2L467->SetBinContent(44,1532.143); h_SL2L467->SetBinContent(45,1260.714); h_SL2L467->SetBinContent(46,1314.286); h_SL2L467->SetBinContent(47,1296.429); h_SL2L467->SetBinContent(48,1185.714); h_SL2L467->SetBinContent(49,1117.857); h_SL2L467->SetBinContent(50,1078.571); h_SL2L467->SetBinContent(51,1025); h_SL2L467->SetBinContent(52,1067.857); h_SL2L467->SetBinContent(53,1014.286); h_SL2L467->SetBinContent(54,892.8571); h_SL2L467->SetBinContent(55,892.8571); h_SL2L467->SetBinContent(56,860.7143); h_SL2L467->SetBinContent(57,800); h_SL2L467->SetMaximum(67484.46); 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 5579"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }