void RatesPerCell_Removing_noisy_cells_run_5489_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:11:58 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18178.2,67.5,163603.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5489",60,0,60); h_SL2L164->SetBinContent(1,755.7143); h_SL2L164->SetBinContent(2,881.4286); h_SL2L164->SetBinContent(3,980); h_SL2L164->SetBinContent(4,1060); h_SL2L164->SetBinContent(5,1020); h_SL2L164->SetBinContent(6,1022.857); h_SL2L164->SetBinContent(7,1061.429); h_SL2L164->SetBinContent(8,1080); h_SL2L164->SetBinContent(9,1151.429); h_SL2L164->SetBinContent(10,1262.857); h_SL2L164->SetBinContent(11,1297.143); h_SL2L164->SetBinContent(12,1497.143); h_SL2L164->SetBinContent(13,1532.857); h_SL2L164->SetBinContent(14,1687.143); h_SL2L164->SetBinContent(15,1844.286); h_SL2L164->SetBinContent(16,2045.714); h_SL2L164->SetBinContent(17,2171.429); h_SL2L164->SetBinContent(18,2267.143); h_SL2L164->SetBinContent(19,2660); h_SL2L164->SetBinContent(20,2661.429); h_SL2L164->SetBinContent(21,2868.572); h_SL2L164->SetBinContent(22,3258.572); h_SL2L164->SetBinContent(23,3458.572); h_SL2L164->SetBinContent(24,4098.571); h_SL2L164->SetBinContent(25,9638.571); h_SL2L164->SetBinContent(26,36102.86); h_SL2L164->SetBinContent(27,80884.29); h_SL2L164->SetBinContent(28,109962.9); h_SL2L164->SetBinContent(29,79480); h_SL2L164->SetBinContent(30,39158.57); h_SL2L164->SetBinContent(31,20310); h_SL2L164->SetBinContent(32,13892.86); h_SL2L164->SetBinContent(33,10587.14); h_SL2L164->SetBinContent(34,6488.572); h_SL2L164->SetBinContent(36,2480); h_SL2L164->SetBinContent(37,2231.429); h_SL2L164->SetBinContent(38,1858.572); h_SL2L164->SetBinContent(39,1618.571); h_SL2L164->SetBinContent(40,1278.571); h_SL2L164->SetBinContent(41,1272.857); h_SL2L164->SetBinContent(42,1264.286); h_SL2L164->SetBinContent(43,1141.429); h_SL2L164->SetBinContent(44,1118.571); h_SL2L164->SetBinContent(45,1001.429); h_SL2L164->SetBinContent(46,1008.571); h_SL2L164->SetBinContent(47,902.8572); h_SL2L164->SetBinContent(48,817.1429); h_SL2L164->SetBinContent(49,821.4286); h_SL2L164->SetBinContent(50,765.7143); h_SL2L164->SetBinContent(51,741.4286); h_SL2L164->SetBinContent(52,602.8572); h_SL2L164->SetBinContent(53,630); h_SL2L164->SetBinContent(54,610); h_SL2L164->SetBinContent(55,625.7143); h_SL2L164->SetBinContent(56,530); h_SL2L164->SetBinContent(57,447.1429); h_SL2L164->SetMaximum(145425.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,758.5715); h_SL2L265->SetBinContent(2,824.2857); h_SL2L265->SetBinContent(3,878.5715); h_SL2L265->SetBinContent(4,967.1429); h_SL2L265->SetBinContent(5,1040); h_SL2L265->SetBinContent(6,964.2858); h_SL2L265->SetBinContent(7,1075.714); h_SL2L265->SetBinContent(8,1055.714); h_SL2L265->SetBinContent(9,1138.571); h_SL2L265->SetBinContent(10,1121.429); h_SL2L265->SetBinContent(11,1247.143); h_SL2L265->SetBinContent(12,1374.286); h_SL2L265->SetBinContent(13,1502.857); h_SL2L265->SetBinContent(14,1665.714); h_SL2L265->SetBinContent(15,1722.857); h_SL2L265->SetBinContent(16,1881.429); h_SL2L265->SetBinContent(17,2030); h_SL2L265->SetBinContent(18,2140); h_SL2L265->SetBinContent(19,2367.143); h_SL2L265->SetBinContent(20,2655.714); h_SL2L265->SetBinContent(21,2732.857); h_SL2L265->SetBinContent(22,2914.286); h_SL2L265->SetBinContent(23,3180); h_SL2L265->SetBinContent(24,3605.714); h_SL2L265->SetBinContent(25,4857.143); h_SL2L265->SetBinContent(26,20515.71); h_SL2L265->SetBinContent(27,55961.43); h_SL2L265->SetBinContent(28,102482.9); h_SL2L265->SetBinContent(29,100044.3); h_SL2L265->SetBinContent(30,56111.43); h_SL2L265->SetBinContent(31,27248.57); h_SL2L265->SetBinContent(32,16267.14); h_SL2L265->SetBinContent(33,12062.86); h_SL2L265->SetBinContent(34,8632.857); h_SL2L265->SetBinContent(35,4272.857); h_SL2L265->SetBinContent(36,2711.429); h_SL2L265->SetBinContent(37,2315.714); h_SL2L265->SetBinContent(38,1934.286); h_SL2L265->SetBinContent(39,1698.571); h_SL2L265->SetBinContent(40,1507.143); h_SL2L265->SetBinContent(41,1341.429); h_SL2L265->SetBinContent(42,1254.286); h_SL2L265->SetBinContent(43,1202.857); h_SL2L265->SetBinContent(44,1064.286); h_SL2L265->SetBinContent(45,1044.286); h_SL2L265->SetBinContent(46,948.5715); h_SL2L265->SetBinContent(47,861.4286); h_SL2L265->SetBinContent(48,821.4286); h_SL2L265->SetBinContent(49,832.8572); h_SL2L265->SetBinContent(50,777.1429); h_SL2L265->SetBinContent(51,730); h_SL2L265->SetBinContent(52,671.4286); h_SL2L265->SetBinContent(53,630); h_SL2L265->SetBinContent(54,612.8572); h_SL2L265->SetBinContent(55,584.2857); h_SL2L265->SetBinContent(56,592.8572); h_SL2L265->SetBinContent(57,475.7143); h_SL2L265->SetMaximum(126457.3); 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,772.8572); h_SL2L366->SetBinContent(2,901.4286); h_SL2L366->SetBinContent(3,932.8572); h_SL2L366->SetBinContent(4,1004.286); h_SL2L366->SetBinContent(5,944.2858); h_SL2L366->SetBinContent(6,1027.143); h_SL2L366->SetBinContent(7,1074.286); h_SL2L366->SetBinContent(8,1015.714); h_SL2L366->SetBinContent(9,1132.857); h_SL2L366->SetBinContent(10,1172.857); h_SL2L366->SetBinContent(11,1245.714); h_SL2L366->SetBinContent(12,1372.857); h_SL2L366->SetBinContent(13,1497.143); h_SL2L366->SetBinContent(14,1627.143); h_SL2L366->SetBinContent(15,1738.571); h_SL2L366->SetBinContent(16,1895.714); h_SL2L366->SetBinContent(17,2054.286); h_SL2L366->SetBinContent(18,2130); h_SL2L366->SetBinContent(19,2511.429); h_SL2L366->SetBinContent(20,2564.286); h_SL2L366->SetBinContent(21,2817.143); h_SL2L366->SetBinContent(22,2990); h_SL2L366->SetBinContent(23,3271.429); h_SL2L366->SetBinContent(24,3991.429); h_SL2L366->SetBinContent(25,9492.857); h_SL2L366->SetBinContent(26,35975.71); h_SL2L366->SetBinContent(27,80590); h_SL2L366->SetBinContent(28,109944.3); h_SL2L366->SetBinContent(29,78948.57); h_SL2L366->SetBinContent(30,38807.14); h_SL2L366->SetBinContent(31,20311.43); h_SL2L366->SetBinContent(32,13782.86); h_SL2L366->SetBinContent(33,10374.29); h_SL2L366->SetBinContent(34,6468.572); h_SL2L366->SetBinContent(35,3080); h_SL2L366->SetBinContent(36,2448.572); h_SL2L366->SetBinContent(37,2122.857); h_SL2L366->SetBinContent(38,1750); h_SL2L366->SetBinContent(39,1508.571); h_SL2L366->SetBinContent(40,1412.857); h_SL2L366->SetBinContent(41,1288.571); h_SL2L366->SetBinContent(42,1177.143); h_SL2L366->SetBinContent(43,1064.286); h_SL2L366->SetBinContent(44,998.5715); h_SL2L366->SetBinContent(45,980); h_SL2L366->SetBinContent(46,928.5715); h_SL2L366->SetBinContent(47,858.5715); h_SL2L366->SetBinContent(48,775.7143); h_SL2L366->SetBinContent(49,811.4286); h_SL2L366->SetBinContent(50,704.2857); h_SL2L366->SetBinContent(51,714.2857); h_SL2L366->SetBinContent(52,608.5715); h_SL2L366->SetBinContent(53,650); h_SL2L366->SetBinContent(54,581.4286); h_SL2L366->SetBinContent(55,544.2857); h_SL2L366->SetBinContent(56,511.4286); h_SL2L366->SetBinContent(57,461.4286); h_SL2L366->SetMaximum(126457.3); 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,852.8572); h_SL2L467->SetBinContent(3,868.5715); h_SL2L467->SetBinContent(4,945.7143); h_SL2L467->SetBinContent(5,935.7143); h_SL2L467->SetBinContent(6,917.1429); h_SL2L467->SetBinContent(7,1018.571); h_SL2L467->SetBinContent(8,1004.286); h_SL2L467->SetBinContent(9,1057.143); h_SL2L467->SetBinContent(10,1114.286); h_SL2L467->SetBinContent(11,1164.286); h_SL2L467->SetBinContent(12,1268.571); h_SL2L467->SetBinContent(13,1335.714); h_SL2L467->SetBinContent(14,1582.857); h_SL2L467->SetBinContent(15,1604.286); h_SL2L467->SetBinContent(16,1790); h_SL2L467->SetBinContent(17,1894.286); h_SL2L467->SetBinContent(18,2052.857); h_SL2L467->SetBinContent(19,2295.714); h_SL2L467->SetBinContent(20,2515.714); h_SL2L467->SetBinContent(21,2590); h_SL2L467->SetBinContent(22,2875.714); h_SL2L467->SetBinContent(23,3070); h_SL2L467->SetBinContent(24,3512.857); h_SL2L467->SetBinContent(25,4782.857); h_SL2L467->SetBinContent(26,20412.86); h_SL2L467->SetBinContent(27,56192.86); h_SL2L467->SetBinContent(28,102421.4); h_SL2L467->SetBinContent(29,100180); h_SL2L467->SetBinContent(30,56571.43); h_SL2L467->SetBinContent(31,27218.57); h_SL2L467->SetBinContent(32,16354.29); h_SL2L467->SetBinContent(33,11881.43); h_SL2L467->SetBinContent(34,8580); h_SL2L467->SetBinContent(35,4168.571); h_SL2L467->SetBinContent(36,2558.572); h_SL2L467->SetBinContent(37,2302.857); h_SL2L467->SetBinContent(38,1875.714); h_SL2L467->SetBinContent(39,1657.143); h_SL2L467->SetBinContent(40,1420); h_SL2L467->SetBinContent(41,1330); h_SL2L467->SetBinContent(42,1175.714); h_SL2L467->SetBinContent(43,1147.143); h_SL2L467->SetBinContent(44,967.1429); h_SL2L467->SetBinContent(45,965.7143); h_SL2L467->SetBinContent(46,932.8572); h_SL2L467->SetBinContent(47,854.2857); h_SL2L467->SetBinContent(48,801.4286); h_SL2L467->SetBinContent(49,750); h_SL2L467->SetBinContent(50,750); h_SL2L467->SetBinContent(51,728.5715); h_SL2L467->SetBinContent(52,650); h_SL2L467->SetBinContent(53,608.5715); h_SL2L467->SetBinContent(54,600); h_SL2L467->SetBinContent(55,605.7143); h_SL2L467->SetBinContent(56,547.1429); h_SL2L467->SetBinContent(57,484.2857); h_SL2L467->SetMaximum(126457.3); 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 5489"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }