void RatesPerCell_Removing_noisy_cells_run_7245_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:19:51 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-4394.869,67.5,39553.82); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7245",60,0,60); h_SL2L164->SetBinContent(1,5800); h_SL2L164->SetBinContent(2,6953.571); h_SL2L164->SetBinContent(3,8364.285); h_SL2L164->SetBinContent(4,8642.857); h_SL2L164->SetBinContent(5,8385.714); h_SL2L164->SetBinContent(6,8232.143); h_SL2L164->SetBinContent(7,7310.714); h_SL2L164->SetBinContent(8,7139.286); h_SL2L164->SetBinContent(9,7642.857); h_SL2L164->SetBinContent(10,7817.857); h_SL2L164->SetBinContent(11,8746.429); h_SL2L164->SetBinContent(12,8825); h_SL2L164->SetBinContent(13,8832.143); h_SL2L164->SetBinContent(14,9325); h_SL2L164->SetBinContent(15,9028.571); h_SL2L164->SetBinContent(16,9053.571); h_SL2L164->SetBinContent(17,8550); h_SL2L164->SetBinContent(18,8089.286); h_SL2L164->SetBinContent(19,7800); h_SL2L164->SetBinContent(20,6582.143); h_SL2L164->SetBinContent(21,5250); h_SL2L164->SetBinContent(22,5321.429); h_SL2L164->SetBinContent(23,5571.429); h_SL2L164->SetBinContent(24,4925); h_SL2L164->SetBinContent(25,5585.714); h_SL2L164->SetBinContent(26,9732.143); h_SL2L164->SetBinContent(27,14775); h_SL2L164->SetBinContent(28,17946.43); h_SL2L164->SetBinContent(29,18600); h_SL2L164->SetBinContent(30,16789.29); h_SL2L164->SetBinContent(31,12657.14); h_SL2L164->SetBinContent(32,11107.14); h_SL2L164->SetBinContent(33,10510.71); h_SL2L164->SetBinContent(34,7596.429); h_SL2L164->SetBinContent(36,3810.714); h_SL2L164->SetBinContent(37,5592.857); h_SL2L164->SetBinContent(38,4246.429); h_SL2L164->SetBinContent(39,4592.857); h_SL2L164->SetBinContent(40,15189.29); h_SL2L164->SetBinContent(41,26585.71); h_SL2L164->SetBinContent(42,5342.857); h_SL2L164->SetBinContent(43,5278.571); h_SL2L164->SetBinContent(44,4967.857); h_SL2L164->SetBinContent(45,2353.571); h_SL2L164->SetBinContent(46,2582.143); h_SL2L164->SetBinContent(47,2417.857); h_SL2L164->SetBinContent(48,2403.571); h_SL2L164->SetBinContent(49,2482.143); h_SL2L164->SetBinContent(50,2085.714); h_SL2L164->SetBinContent(51,2389.286); h_SL2L164->SetBinContent(52,2707.143); h_SL2L164->SetBinContent(53,3207.143); h_SL2L164->SetBinContent(54,3364.286); h_SL2L164->SetBinContent(55,3771.428); h_SL2L164->SetBinContent(56,3367.857); h_SL2L164->SetBinContent(57,3032.143); h_SL2L164->SetMaximum(35158.95); 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,4710.714); h_SL2L265->SetBinContent(2,6853.571); h_SL2L265->SetBinContent(3,7392.857); h_SL2L265->SetBinContent(4,8560.714); h_SL2L265->SetBinContent(5,8300); h_SL2L265->SetBinContent(6,7667.857); h_SL2L265->SetBinContent(7,7485.714); h_SL2L265->SetBinContent(8,6560.714); h_SL2L265->SetBinContent(9,7046.429); h_SL2L265->SetBinContent(10,7607.143); h_SL2L265->SetBinContent(11,8267.857); h_SL2L265->SetBinContent(12,8500); h_SL2L265->SetBinContent(13,8507.143); h_SL2L265->SetBinContent(14,8653.571); h_SL2L265->SetBinContent(15,8996.429); h_SL2L265->SetBinContent(16,8917.857); h_SL2L265->SetBinContent(17,8375); h_SL2L265->SetBinContent(18,8292.857); h_SL2L265->SetBinContent(19,7735.714); h_SL2L265->SetBinContent(20,7364.286); h_SL2L265->SetBinContent(21,5464.286); h_SL2L265->SetBinContent(22,5075); h_SL2L265->SetBinContent(23,5400); h_SL2L265->SetBinContent(24,5082.143); h_SL2L265->SetBinContent(25,4825); h_SL2L265->SetBinContent(26,7110.714); h_SL2L265->SetBinContent(27,11864.29); h_SL2L265->SetBinContent(28,17028.57); h_SL2L265->SetBinContent(29,18078.57); h_SL2L265->SetBinContent(30,18078.57); h_SL2L265->SetBinContent(31,14432.14); h_SL2L265->SetBinContent(32,11089.29); h_SL2L265->SetBinContent(33,10610.71); h_SL2L265->SetBinContent(34,9882.143); h_SL2L265->SetBinContent(35,4932.143); h_SL2L265->SetBinContent(36,3939.286); h_SL2L265->SetBinContent(37,3410.714); h_SL2L265->SetBinContent(38,3032.143); h_SL2L265->SetBinContent(39,3535.714); h_SL2L265->SetBinContent(40,3571.428); h_SL2L265->SetBinContent(41,3378.571); h_SL2L265->SetBinContent(42,3410.714); h_SL2L265->SetBinContent(43,2639.286); h_SL2L265->SetBinContent(44,2953.571); h_SL2L265->SetBinContent(45,2632.143); h_SL2L265->SetBinContent(46,2467.857); h_SL2L265->SetBinContent(47,2310.714); h_SL2L265->SetBinContent(48,2321.428); h_SL2L265->SetBinContent(49,2357.143); h_SL2L265->SetBinContent(50,2089.286); h_SL2L265->SetBinContent(51,2242.857); h_SL2L265->SetBinContent(52,2446.428); h_SL2L265->SetBinContent(53,2664.286); h_SL2L265->SetBinContent(54,3014.286); h_SL2L265->SetBinContent(55,3760.714); h_SL2L265->SetBinContent(56,3242.857); h_SL2L265->SetBinContent(57,3171.428); h_SL2L265->SetMaximum(30573.57); 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,5464.286); h_SL2L366->SetBinContent(2,6239.286); h_SL2L366->SetBinContent(3,8157.143); h_SL2L366->SetBinContent(4,7871.429); h_SL2L366->SetBinContent(5,7975); h_SL2L366->SetBinContent(6,7421.429); h_SL2L366->SetBinContent(7,6617.857); h_SL2L366->SetBinContent(8,6492.857); h_SL2L366->SetBinContent(9,7046.429); h_SL2L366->SetBinContent(10,7839.286); h_SL2L366->SetBinContent(11,8217.857); h_SL2L366->SetBinContent(12,7989.286); h_SL2L366->SetBinContent(13,8210.714); h_SL2L366->SetBinContent(14,8750); h_SL2L366->SetBinContent(15,8332.143); h_SL2L366->SetBinContent(16,8200); h_SL2L366->SetBinContent(17,8125); h_SL2L366->SetBinContent(18,7621.429); h_SL2L366->SetBinContent(19,6942.857); h_SL2L366->SetBinContent(20,6010.714); h_SL2L366->SetBinContent(21,5071.429); h_SL2L366->SetBinContent(22,5371.429); h_SL2L366->SetBinContent(23,5092.857); h_SL2L366->SetBinContent(24,5007.143); h_SL2L366->SetBinContent(25,5475); h_SL2L366->SetBinContent(26,9289.285); h_SL2L366->SetBinContent(27,14607.14); h_SL2L366->SetBinContent(28,17589.29); h_SL2L366->SetBinContent(29,18450); h_SL2L366->SetBinContent(30,16417.86); h_SL2L366->SetBinContent(31,12535.71); h_SL2L366->SetBinContent(32,10814.29); h_SL2L366->SetBinContent(33,10378.57); h_SL2L366->SetBinContent(34,7317.857); h_SL2L366->SetBinContent(35,4189.286); h_SL2L366->SetBinContent(36,3596.428); h_SL2L366->SetBinContent(37,3253.571); h_SL2L366->SetBinContent(38,2825); h_SL2L366->SetBinContent(39,2925); h_SL2L366->SetBinContent(40,3032.143); h_SL2L366->SetBinContent(41,2878.571); h_SL2L366->SetBinContent(42,2467.857); h_SL2L366->SetBinContent(43,2364.286); h_SL2L366->SetBinContent(44,2557.143); h_SL2L366->SetBinContent(45,2167.857); h_SL2L366->SetBinContent(46,2232.143); h_SL2L366->SetBinContent(47,2375); h_SL2L366->SetBinContent(48,2096.428); h_SL2L366->SetBinContent(49,2146.428); h_SL2L366->SetBinContent(50,2289.286); h_SL2L366->SetBinContent(51,2282.143); h_SL2L366->SetBinContent(52,2503.571); h_SL2L366->SetBinContent(53,2953.571); h_SL2L366->SetBinContent(54,3110.714); h_SL2L366->SetBinContent(55,3507.143); h_SL2L366->SetBinContent(56,3053.571); h_SL2L366->SetBinContent(57,3135.714); h_SL2L366->SetMaximum(30573.57); 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,6553.571); h_SL2L467->SetBinContent(3,7135.714); h_SL2L467->SetBinContent(4,7682.143); h_SL2L467->SetBinContent(5,7878.571); h_SL2L467->SetBinContent(6,7089.286); h_SL2L467->SetBinContent(7,7271.429); h_SL2L467->SetBinContent(8,6192.857); h_SL2L467->SetBinContent(9,6842.857); h_SL2L467->SetBinContent(10,7003.571); h_SL2L467->SetBinContent(11,7775); h_SL2L467->SetBinContent(12,7775); h_SL2L467->SetBinContent(13,8035.714); h_SL2L467->SetBinContent(14,7842.857); h_SL2L467->SetBinContent(15,8196.429); h_SL2L467->SetBinContent(16,8010.714); h_SL2L467->SetBinContent(17,7792.857); h_SL2L467->SetBinContent(18,7614.286); h_SL2L467->SetBinContent(19,7282.143); h_SL2L467->SetBinContent(20,6492.857); h_SL2L467->SetBinContent(21,5167.857); h_SL2L467->SetBinContent(22,5028.571); h_SL2L467->SetBinContent(23,5264.286); h_SL2L467->SetBinContent(24,4792.857); h_SL2L467->SetBinContent(25,4710.714); h_SL2L467->SetBinContent(26,6871.429); h_SL2L467->SetBinContent(27,11750); h_SL2L467->SetBinContent(28,16664.29); h_SL2L467->SetBinContent(29,18078.57); h_SL2L467->SetBinContent(30,17985.71); h_SL2L467->SetBinContent(31,14560.71); h_SL2L467->SetBinContent(32,11171.43); h_SL2L467->SetBinContent(33,10535.71); h_SL2L467->SetBinContent(34,9732.143); h_SL2L467->SetBinContent(35,5228.571); h_SL2L467->SetBinContent(36,3510.714); h_SL2L467->SetBinContent(37,3396.428); h_SL2L467->SetBinContent(38,2889.286); h_SL2L467->SetBinContent(39,2782.143); h_SL2L467->SetBinContent(40,2650); h_SL2L467->SetBinContent(41,2564.286); h_SL2L467->SetBinContent(42,2696.428); h_SL2L467->SetBinContent(43,2396.428); h_SL2L467->SetBinContent(44,2417.857); h_SL2L467->SetBinContent(45,2303.571); h_SL2L467->SetBinContent(46,2392.857); h_SL2L467->SetBinContent(47,2414.286); h_SL2L467->SetBinContent(48,2100); h_SL2L467->SetBinContent(49,2150); h_SL2L467->SetBinContent(50,2014.286); h_SL2L467->SetBinContent(51,1903.571); h_SL2L467->SetBinContent(52,2292.857); h_SL2L467->SetBinContent(53,2196.428); h_SL2L467->SetBinContent(54,2989.286); h_SL2L467->SetBinContent(55,3082.143); h_SL2L467->SetBinContent(56,3289.286); h_SL2L467->SetBinContent(57,2996.428); h_SL2L467->SetMaximum(30573.57); 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 7245"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }