void RatesPerCell_Removing_noisy_cells_run_5491_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:56:03 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18127.31,67.5,163145.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5491",60,0,60); h_SL2L164->SetBinContent(1,652.7524); h_SL2L164->SetBinContent(2,897.0983); h_SL2L164->SetBinContent(3,956.4394); h_SL2L164->SetBinContent(4,1005.309); h_SL2L164->SetBinContent(5,994.8366); h_SL2L164->SetBinContent(6,980.874); h_SL2L164->SetBinContent(7,1015.781); h_SL2L164->SetBinContent(8,1050.687); h_SL2L164->SetBinContent(9,1211.257); h_SL2L164->SetBinContent(10,1308.995); h_SL2L164->SetBinContent(11,1406.734); h_SL2L164->SetBinContent(12,1546.36); h_SL2L164->SetBinContent(13,1584.757); h_SL2L164->SetBinContent(14,1692.968); h_SL2L164->SetBinContent(15,1905.897); h_SL2L164->SetBinContent(16,1902.407); h_SL2L164->SetBinContent(17,2139.771); h_SL2L164->SetBinContent(18,2279.397); h_SL2L164->SetBinContent(19,2624.972); h_SL2L164->SetBinContent(20,2593.556); h_SL2L164->SetBinContent(21,2970.547); h_SL2L164->SetBinContent(22,3288.197); h_SL2L164->SetBinContent(23,3696.603); h_SL2L164->SetBinContent(24,4094.538); h_SL2L164->SetBinContent(25,9993.744); h_SL2L164->SetBinContent(26,36260.92); h_SL2L164->SetBinContent(27,81213.57); h_SL2L164->SetBinContent(28,109655.4); h_SL2L164->SetBinContent(29,79789.38); h_SL2L164->SetBinContent(30,38735.8); h_SL2L164->SetBinContent(31,19694.27); h_SL2L164->SetBinContent(32,13850.92); h_SL2L164->SetBinContent(33,10555.74); h_SL2L164->SetBinContent(34,6318.085); h_SL2L164->SetBinContent(36,2694.785); h_SL2L164->SetBinContent(37,2153.734); h_SL2L164->SetBinContent(38,1895.426); h_SL2L164->SetBinContent(39,1668.533); h_SL2L164->SetBinContent(40,1239.182); h_SL2L164->SetBinContent(41,1127.481); h_SL2L164->SetBinContent(42,1127.481); h_SL2L164->SetBinContent(43,1068.14); h_SL2L164->SetBinContent(44,1043.706); h_SL2L164->SetBinContent(45,928.5142); h_SL2L164->SetBinContent(46,925.0235); h_SL2L164->SetBinContent(47,893.6076); h_SL2L164->SetBinContent(48,750.4908); h_SL2L164->SetBinContent(49,628.3179); h_SL2L164->SetBinContent(50,753.9814); h_SL2L164->SetBinContent(51,698.1309); h_SL2L164->SetBinContent(52,694.6403); h_SL2L164->SetBinContent(53,596.902); h_SL2L164->SetBinContent(54,600.3926); h_SL2L164->SetBinContent(55,575.958); h_SL2L164->SetBinContent(56,694.6403); h_SL2L164->SetBinContent(57,467.7477); h_SL2L164->SetMaximum(145018.4); 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,701.6216); h_SL2L265->SetBinContent(2,733.0375); h_SL2L265->SetBinContent(3,942.4767); h_SL2L265->SetBinContent(4,1064.65); h_SL2L265->SetBinContent(5,973.8926); h_SL2L265->SetBinContent(6,932.0048); h_SL2L265->SetBinContent(7,970.402); h_SL2L265->SetBinContent(8,1012.29); h_SL2L265->SetBinContent(9,1047.196); h_SL2L265->SetBinContent(10,1214.748); h_SL2L265->SetBinContent(11,1375.318); h_SL2L265->SetBinContent(12,1375.318); h_SL2L265->SetBinContent(13,1476.547); h_SL2L265->SetBinContent(14,1619.664); h_SL2L265->SetBinContent(15,1703.439); h_SL2L265->SetBinContent(16,1797.687); h_SL2L265->SetBinContent(17,2007.126); h_SL2L265->SetBinContent(18,2213.075); h_SL2L265->SetBinContent(19,2394.589); h_SL2L265->SetBinContent(20,2488.837); h_SL2L265->SetBinContent(21,2652.897); h_SL2L265->SetBinContent(22,2981.019); h_SL2L265->SetBinContent(23,3319.613); h_SL2L265->SetBinContent(24,3717.547); h_SL2L265->SetBinContent(25,4928.805); h_SL2L265->SetBinContent(26,21209.22); h_SL2L265->SetBinContent(27,55602.64); h_SL2L265->SetBinContent(28,102984.8); h_SL2L265->SetBinContent(29,99881.59); h_SL2L265->SetBinContent(30,55920.29); h_SL2L265->SetBinContent(31,27101.44); h_SL2L265->SetBinContent(32,16060.5); h_SL2L265->SetBinContent(33,12287.1); h_SL2L265->SetBinContent(34,8433.422); h_SL2L265->SetBinContent(35,4331.902); h_SL2L265->SetBinContent(36,2768.089); h_SL2L265->SetBinContent(37,2370.155); h_SL2L265->SetBinContent(38,2017.598); h_SL2L265->SetBinContent(39,1689.477); h_SL2L265->SetBinContent(40,1507.963); h_SL2L265->SetBinContent(41,1378.809); h_SL2L265->SetBinContent(42,1096.066); h_SL2L265->SetBinContent(43,991.3459); h_SL2L265->SetBinContent(44,1033.234); h_SL2L265->SetBinContent(45,1036.724); h_SL2L265->SetBinContent(46,851.7197); h_SL2L265->SetBinContent(47,841.2478); h_SL2L265->SetBinContent(48,820.3038); h_SL2L265->SetBinContent(49,659.7338); h_SL2L265->SetBinContent(50,652.7524); h_SL2L265->SetBinContent(51,705.1122); h_SL2L265->SetBinContent(52,600.3926); h_SL2L265->SetBinContent(53,638.7898); h_SL2L265->SetBinContent(54,527.0889); h_SL2L265->SetBinContent(55,638.7898); h_SL2L265->SetBinContent(56,589.9207); h_SL2L265->SetBinContent(57,527.0889); h_SL2L265->SetMaximum(126103.7); 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,694.6403); h_SL2L366->SetBinContent(2,865.6824); h_SL2L366->SetBinContent(3,897.0983); h_SL2L366->SetBinContent(4,1001.818); h_SL2L366->SetBinContent(5,991.3459); h_SL2L366->SetBinContent(6,949.4581); h_SL2L366->SetBinContent(7,945.9674); h_SL2L366->SetBinContent(8,966.9114); h_SL2L366->SetBinContent(9,1082.103); h_SL2L366->SetBinContent(10,1326.449); h_SL2L366->SetBinContent(11,1193.804); h_SL2L366->SetBinContent(12,1452.112); h_SL2L366->SetBinContent(13,1424.187); h_SL2L366->SetBinContent(14,1553.341); h_SL2L366->SetBinContent(15,1759.29); h_SL2L366->SetBinContent(16,1867.5); h_SL2L366->SetBinContent(17,2108.355); h_SL2L366->SetBinContent(18,2307.323); h_SL2L366->SetBinContent(19,2446.949); h_SL2L366->SetBinContent(20,2481.855); h_SL2L366->SetBinContent(21,2796.014); h_SL2L366->SetBinContent(22,3061.304); h_SL2L366->SetBinContent(23,3469.711); h_SL2L366->SetBinContent(24,3961.893); h_SL2L366->SetBinContent(25,9780.814); h_SL2L366->SetBinContent(26,36142.24); h_SL2L366->SetBinContent(27,81545.19); h_SL2L366->SetBinContent(28,109110.9); h_SL2L366->SetBinContent(29,79147.1); h_SL2L366->SetBinContent(30,38355.31); h_SL2L366->SetBinContent(31,19558.14); h_SL2L366->SetBinContent(32,13613.55); h_SL2L366->SetBinContent(33,10489.42); h_SL2L366->SetBinContent(34,6370.445); h_SL2L366->SetBinContent(35,3221.874); h_SL2L366->SetBinContent(36,2621.482); h_SL2L366->SetBinContent(37,1993.164); h_SL2L366->SetBinContent(38,1748.818); h_SL2L366->SetBinContent(39,1546.36); h_SL2L366->SetBinContent(40,1483.528); h_SL2L366->SetBinContent(41,1165.879); h_SL2L366->SetBinContent(42,1019.271); h_SL2L366->SetBinContent(43,928.5142); h_SL2L366->SetBinContent(44,1001.818); h_SL2L366->SetBinContent(45,907.5703); h_SL2L366->SetBinContent(46,893.6076); h_SL2L366->SetBinContent(47,788.8879); h_SL2L366->SetBinContent(48,750.4908); h_SL2L366->SetBinContent(49,610.8646); h_SL2L366->SetBinContent(50,642.2805); h_SL2L366->SetBinContent(51,712.0936); h_SL2L366->SetBinContent(52,673.6964); h_SL2L366->SetBinContent(53,572.4673); h_SL2L366->SetBinContent(54,537.5609); h_SL2L366->SetBinContent(55,555.0141); h_SL2L366->SetBinContent(56,575.958); h_SL2L366->SetBinContent(57,488.6917); h_SL2L366->SetMaximum(126103.7); 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,726.0562); h_SL2L467->SetBinContent(3,918.0422); h_SL2L467->SetBinContent(4,991.3459); h_SL2L467->SetBinContent(5,945.9674); h_SL2L467->SetBinContent(6,966.9114); h_SL2L467->SetBinContent(7,959.9301); h_SL2L467->SetBinContent(8,1036.724); h_SL2L467->SetBinContent(9,973.8926); h_SL2L467->SetBinContent(10,1169.369); h_SL2L467->SetBinContent(11,1158.897); h_SL2L467->SetBinContent(12,1298.524); h_SL2L467->SetBinContent(13,1305.505); h_SL2L467->SetBinContent(14,1556.832); h_SL2L467->SetBinContent(15,1595.229); h_SL2L467->SetBinContent(16,1713.911); h_SL2L467->SetBinContent(17,1857.028); h_SL2L467->SetBinContent(18,2069.958); h_SL2L467->SetBinContent(19,2261.944); h_SL2L467->SetBinContent(20,2331.757); h_SL2L467->SetBinContent(21,2621.482); h_SL2L467->SetBinContent(22,2827.43); h_SL2L467->SetBinContent(23,3183.477); h_SL2L467->SetBinContent(24,3581.412); h_SL2L467->SetBinContent(25,4687.949); h_SL2L467->SetBinContent(26,21272.05); h_SL2L467->SetBinContent(27,55840); h_SL2L467->SetBinContent(28,102953.4); h_SL2L467->SetBinContent(29,99878.1); h_SL2L467->SetBinContent(30,56297.28); h_SL2L467->SetBinContent(31,26825.68); h_SL2L467->SetBinContent(32,15872.01); h_SL2L467->SetBinContent(33,12091.63); h_SL2L467->SetBinContent(34,8503.235); h_SL2L467->SetBinContent(35,4108.5); h_SL2L467->SetBinContent(36,2579.594); h_SL2L467->SetBinContent(37,2282.888); h_SL2L467->SetBinContent(38,1895.426); h_SL2L467->SetBinContent(39,1595.229); h_SL2L467->SetBinContent(40,1452.112); h_SL2L467->SetBinContent(41,1225.22); h_SL2L467->SetBinContent(42,1036.724); h_SL2L467->SetBinContent(43,963.4207); h_SL2L467->SetBinContent(44,897.0983); h_SL2L467->SetBinContent(45,935.4955); h_SL2L467->SetBinContent(46,858.701); h_SL2L467->SetBinContent(47,834.2665); h_SL2L467->SetBinContent(48,740.0188); h_SL2L467->SetBinContent(49,645.7711); h_SL2L467->SetBinContent(50,600.3926); h_SL2L467->SetBinContent(51,645.7711); h_SL2L467->SetBinContent(52,541.0515); h_SL2L467->SetBinContent(53,645.7711); h_SL2L467->SetBinContent(54,530.5795); h_SL2L467->SetBinContent(55,548.0328); h_SL2L467->SetBinContent(56,555.0141); h_SL2L467->SetBinContent(57,523.5982); h_SL2L467->SetMaximum(126103.7); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 5491"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }