void RatesPerCell_Removing_noisy_cells_run_4975_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:15:24 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9122.519,67.5,82102.67); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4975",60,0,60); h_SL2L164->SetBinContent(1,685.2198); h_SL2L164->SetBinContent(2,789.6408); h_SL2L164->SetBinContent(3,929.5512); h_SL2L164->SetBinContent(4,1008.038); h_SL2L164->SetBinContent(5,1079.016); h_SL2L164->SetBinContent(6,1053.082); h_SL2L164->SetBinContent(7,1143.853); h_SL2L164->SetBinContent(8,1208.69); h_SL2L164->SetBinContent(9,1342.458); h_SL2L164->SetBinContent(10,1428.451); h_SL2L164->SetBinContent(11,1584.741); h_SL2L164->SetBinContent(12,1751.952); h_SL2L164->SetBinContent(13,1846.135); h_SL2L164->SetBinContent(14,2050.199); h_SL2L164->SetBinContent(15,2159.398); h_SL2L164->SetBinContent(16,2248.122); h_SL2L164->SetBinContent(17,2463.106); h_SL2L164->SetBinContent(18,2633.046); h_SL2L164->SetBinContent(19,2888.98); h_SL2L164->SetBinContent(20,3125.804); h_SL2L164->SetBinContent(21,3252.747); h_SL2L164->SetBinContent(22,3527.79); h_SL2L164->SetBinContent(23,3897.7); h_SL2L164->SetBinContent(24,4248.5); h_SL2L164->SetBinContent(25,9085.987); h_SL2L164->SetBinContent(26,28923.24); h_SL2L164->SetBinContent(27,44275.16); h_SL2L164->SetBinContent(28,51990.71); h_SL2L164->SetBinContent(29,55184.08); h_SL2L164->SetBinContent(30,52493.03); h_SL2L164->SetBinContent(31,48773.46); h_SL2L164->SetBinContent(32,49488.71); h_SL2L164->SetBinContent(33,47975.62); h_SL2L164->SetBinContent(34,27357.61); h_SL2L164->SetBinContent(35,7.507389); h_SL2L164->SetBinContent(36,4810.188); h_SL2L164->SetBinContent(37,9575.333); h_SL2L164->SetBinContent(38,5806.624); h_SL2L164->SetBinContent(39,8213.766); h_SL2L164->SetBinContent(40,40902.3); h_SL2L164->SetBinContent(41,10251); h_SL2L164->SetBinContent(42,10852.95); h_SL2L164->SetBinContent(43,10914.38); h_SL2L164->SetBinContent(44,11037.23); h_SL2L164->SetBinContent(45,1435.276); h_SL2L164->SetBinContent(46,1304.238); h_SL2L164->SetBinContent(47,1205.277); h_SL2L164->SetBinContent(48,1114.506); h_SL2L164->SetBinContent(49,1049.669); h_SL2L164->SetBinContent(50,903.6166); h_SL2L164->SetBinContent(51,896.1092); h_SL2L164->SetBinContent(52,849.0174); h_SL2L164->SetBinContent(53,783.4984); h_SL2L164->SetBinContent(54,753.4688); h_SL2L164->SetBinContent(55,679.7599); h_SL2L164->SetBinContent(56,588.9888); h_SL2L164->SetBinContent(57,2768.179); h_SL2L164->SetMaximum(72980.15); 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,619.0183); h_SL2L265->SetBinContent(2,765.0712); h_SL2L265->SetBinContent(3,837.4151); h_SL2L265->SetBinContent(4,972.5481); h_SL2L265->SetBinContent(5,956.8508); h_SL2L265->SetBinContent(6,1050.352); h_SL2L265->SetBinContent(7,1128.838); h_SL2L265->SetBinContent(8,1091.301); h_SL2L265->SetBinContent(9,1229.847); h_SL2L265->SetBinContent(10,1334.268); h_SL2L265->SetBinContent(11,1529.46); h_SL2L265->SetBinContent(12,1585.424); h_SL2L265->SetBinContent(13,1735.572); h_SL2L265->SetBinContent(14,1905.512); h_SL2L265->SetBinContent(15,2005.838); h_SL2L265->SetBinContent(16,2140.288); h_SL2L265->SetBinContent(17,2327.291); h_SL2L265->SetBinContent(18,2557.972); h_SL2L265->SetBinContent(19,2613.254); h_SL2L265->SetBinContent(20,3040.492); h_SL2L265->SetBinContent(21,3070.522); h_SL2L265->SetBinContent(22,3474.556); h_SL2L265->SetBinContent(23,3613.101); h_SL2L265->SetBinContent(24,3992.566); h_SL2L265->SetBinContent(25,4823.156); h_SL2L265->SetBinContent(26,18309.84); h_SL2L265->SetBinContent(27,37606.56); h_SL2L265->SetBinContent(28,48703.16); h_SL2L265->SetBinContent(29,53793.17); h_SL2L265->SetBinContent(30,53911.92); h_SL2L265->SetBinContent(31,49793.78); h_SL2L265->SetBinContent(32,48651.97); h_SL2L265->SetBinContent(33,48890.16); h_SL2L265->SetBinContent(34,41372.54); h_SL2L265->SetBinContent(35,14339.11); h_SL2L265->SetBinContent(36,5371.195); h_SL2L265->SetBinContent(37,3692.27); h_SL2L265->SetBinContent(38,2893.757); h_SL2L265->SetBinContent(39,4510.576); h_SL2L265->SetBinContent(40,6212.705); h_SL2L265->SetBinContent(41,2525.213); h_SL2L265->SetBinContent(42,2800.938); h_SL2L265->SetBinContent(43,2080.229); h_SL2L265->SetBinContent(44,3225.447); h_SL2L265->SetBinContent(45,1458.481); h_SL2L265->SetBinContent(46,1359.52); h_SL2L265->SetBinContent(47,1199.135); h_SL2L265->SetBinContent(48,1108.364); h_SL2L265->SetBinContent(49,1061.272); h_SL2L265->SetBinContent(50,943.201); h_SL2L265->SetBinContent(51,881.7769); h_SL2L265->SetBinContent(52,803.2906); h_SL2L265->SetBinContent(53,759.6112); h_SL2L265->SetBinContent(54,752.1038); h_SL2L265->SetBinContent(55,690.6797); h_SL2L265->SetBinContent(56,615.6058); h_SL2L265->SetBinContent(57,575.339); h_SL2L265->SetMaximum(63461.69); 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,647.6829); h_SL2L366->SetBinContent(2,765.7537); h_SL2L366->SetBinContent(3,904.9816); h_SL2L366->SetBinContent(4,969.8181); h_SL2L366->SetBinContent(5,1021.687); h_SL2L366->SetBinContent(6,1018.275); h_SL2L366->SetBinContent(7,1113.823); h_SL2L366->SetBinContent(8,1140.441); h_SL2L366->SetBinContent(9,1287.176); h_SL2L366->SetBinContent(10,1396.374); h_SL2L366->SetBinContent(11,1493.288); h_SL2L366->SetBinContent(12,1635.246); h_SL2L366->SetBinContent(13,1737.619); h_SL2L366->SetBinContent(14,1966.936); h_SL2L366->SetBinContent(15,2104.116); h_SL2L366->SetBinContent(16,2136.876); h_SL2L366->SetBinContent(17,2400.999); h_SL2L366->SetBinContent(18,2578.447); h_SL2L366->SetBinContent(19,2842.57); h_SL2L366->SetBinContent(20,2947.674); h_SL2L366->SetBinContent(21,3208.385); h_SL2L366->SetBinContent(22,3362.628); h_SL2L366->SetBinContent(23,3782.359); h_SL2L366->SetBinContent(24,4160.458); h_SL2L366->SetBinContent(25,8950.172); h_SL2L366->SetBinContent(26,28809.95); h_SL2L366->SetBinContent(27,44115.46); h_SL2L366->SetBinContent(28,51692.46); h_SL2L366->SetBinContent(29,54485.21); h_SL2L366->SetBinContent(30,52049.41); h_SL2L366->SetBinContent(31,48602.15); h_SL2L366->SetBinContent(32,49337.88); h_SL2L366->SetBinContent(33,47769.51); h_SL2L366->SetBinContent(34,27445.65); h_SL2L366->SetBinContent(35,7654.807); h_SL2L366->SetBinContent(36,4256.007); h_SL2L366->SetBinContent(37,3150.373); h_SL2L366->SetBinContent(38,2727.229); h_SL2L366->SetBinContent(39,2367.557); h_SL2L366->SetBinContent(40,4463.484); h_SL2L366->SetBinContent(41,1928.034); h_SL2L366->SetBinContent(42,1792.901); h_SL2L366->SetBinContent(43,1678.925); h_SL2L366->SetBinContent(44,1468.036); h_SL2L366->SetBinContent(45,1369.075); h_SL2L366->SetBinContent(46,1225.069); h_SL2L366->SetBinContent(47,1115.871); h_SL2L366->SetBinContent(48,1029.877); h_SL2L366->SetBinContent(49,1009.403); h_SL2L366->SetBinContent(50,868.1271); h_SL2L366->SetBinContent(51,816.2579); h_SL2L366->SetBinContent(52,780.7684); h_SL2L366->SetBinContent(53,745.9614); h_SL2L366->SetBinContent(54,729.5817); h_SL2L366->SetBinContent(55,658.6027); h_SL2L366->SetBinContent(56,584.2113); h_SL2L366->SetBinContent(57,543.9445); h_SL2L366->SetMaximum(63461.69); 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.8517); h_SL2L467->SetBinContent(3,810.798); h_SL2L467->SetBinContent(4,900.8867); h_SL2L467->SetBinContent(5,896.7917); h_SL2L467->SetBinContent(6,978.6905); h_SL2L467->SetBinContent(7,1105.634); h_SL2L467->SetBinContent(8,1046.257); h_SL2L467->SetBinContent(9,1212.102); h_SL2L467->SetBinContent(10,1258.511); h_SL2L467->SetBinContent(11,1461.893); h_SL2L467->SetBinContent(12,1470.766); h_SL2L467->SetBinContent(13,1615.453); h_SL2L467->SetBinContent(14,1833.85); h_SL2L467->SetBinContent(15,1874.117); h_SL2L467->SetBinContent(16,2095.927); h_SL2L467->SetBinContent(17,2212.632); h_SL2L467->SetBinContent(18,2402.364); h_SL2L467->SetBinContent(19,2590.049); h_SL2L467->SetBinContent(20,2882.837); h_SL2L467->SetBinContent(21,3017.288); h_SL2L467->SetBinContent(22,3323.043); h_SL2L467->SetBinContent(23,3495.713); h_SL2L467->SetBinContent(24,3854.703); h_SL2L467->SetBinContent(25,4702.355); h_SL2L467->SetBinContent(26,18220.43); h_SL2L467->SetBinContent(27,37743.05); h_SL2L467->SetBinContent(28,48633.55); h_SL2L467->SetBinContent(29,53784.98); h_SL2L467->SetBinContent(30,54577.35); h_SL2L467->SetBinContent(31,49943.93); h_SL2L467->SetBinContent(32,48704.52); h_SL2L467->SetBinContent(33,49077.16); h_SL2L467->SetBinContent(34,41339.78); h_SL2L467->SetBinContent(35,14351.4); h_SL2L467->SetBinContent(36,5281.106); h_SL2L467->SetBinContent(37,3611.736); h_SL2L467->SetBinContent(38,2784.559); h_SL2L467->SetBinContent(39,2537.497); h_SL2L467->SetBinContent(40,2195.57); h_SL2L467->SetBinContent(41,1950.556); h_SL2L467->SetBinContent(42,1863.88); h_SL2L467->SetBinContent(43,1674.83); h_SL2L467->SetBinContent(44,1476.908); h_SL2L467->SetBinContent(45,1385.454); h_SL2L467->SetBinContent(46,1293.318); h_SL2L467->SetBinContent(47,1164.328); h_SL2L467->SetBinContent(48,1010.768); h_SL2L467->SetBinContent(49,1011.45); h_SL2L467->SetBinContent(50,888.6018); h_SL2L467->SetBinContent(51,834.6851); h_SL2L467->SetBinContent(52,766.4361); h_SL2L467->SetBinContent(53,752.7863); h_SL2L467->SetBinContent(54,688.6323); h_SL2L467->SetBinContent(55,668.8401); h_SL2L467->SetBinContent(56,609.4634); h_SL2L467->SetBinContent(57,577.3864); h_SL2L467->SetMaximum(63461.69); 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 4975"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }