void RatesPerCell_Removing_noisy_cells_run_6550_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:17:31 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12408.36,67.5,111675.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6550",60,0,60); h_SL2L164->SetBinContent(1,627.1429); h_SL2L164->SetBinContent(2,720); h_SL2L164->SetBinContent(3,897.1429); h_SL2L164->SetBinContent(4,962.8572); h_SL2L164->SetBinContent(5,967.1429); h_SL2L164->SetBinContent(6,941.4286); h_SL2L164->SetBinContent(7,954.2858); h_SL2L164->SetBinContent(8,1074.286); h_SL2L164->SetBinContent(9,1140); h_SL2L164->SetBinContent(10,1238.571); h_SL2L164->SetBinContent(11,1355.714); h_SL2L164->SetBinContent(12,1440); h_SL2L164->SetBinContent(13,1598.571); h_SL2L164->SetBinContent(14,1802.857); h_SL2L164->SetBinContent(15,1772.857); h_SL2L164->SetBinContent(16,1870); h_SL2L164->SetBinContent(17,1970); h_SL2L164->SetBinContent(18,2061.429); h_SL2L164->SetBinContent(19,2240); h_SL2L164->SetBinContent(20,2370); h_SL2L164->SetBinContent(21,2421.429); h_SL2L164->SetBinContent(22,2581.429); h_SL2L164->SetBinContent(23,2871.429); h_SL2L164->SetBinContent(24,3345.714); h_SL2L164->SetBinContent(25,8332.857); h_SL2L164->SetBinContent(26,26220); h_SL2L164->SetBinContent(27,40072.86); h_SL2L164->SetBinContent(28,48337.14); h_SL2L164->SetBinContent(29,51577.14); h_SL2L164->SetBinContent(30,51268.57); h_SL2L164->SetBinContent(31,49995.71); h_SL2L164->SetBinContent(32,51280); h_SL2L164->SetBinContent(33,49731.43); h_SL2L164->SetBinContent(34,28218.57); h_SL2L164->SetBinContent(36,3558.572); h_SL2L164->SetBinContent(37,8381.429); h_SL2L164->SetBinContent(38,4738.572); h_SL2L164->SetBinContent(39,6478.572); h_SL2L164->SetBinContent(40,48278.57); h_SL2L164->SetBinContent(41,75060); h_SL2L164->SetBinContent(42,13600); h_SL2L164->SetBinContent(43,13664.29); h_SL2L164->SetBinContent(44,14068.57); h_SL2L164->SetBinContent(45,1258.571); h_SL2L164->SetBinContent(46,1102.857); h_SL2L164->SetBinContent(47,1025.714); h_SL2L164->SetBinContent(48,962.8572); h_SL2L164->SetBinContent(49,885.7143); h_SL2L164->SetBinContent(50,828.5715); h_SL2L164->SetBinContent(51,798.5715); h_SL2L164->SetBinContent(52,737.1429); h_SL2L164->SetBinContent(53,677.1429); h_SL2L164->SetBinContent(54,652.8572); h_SL2L164->SetBinContent(55,608.5715); h_SL2L164->SetBinContent(56,558.5715); h_SL2L164->SetBinContent(57,5871.429); h_SL2L164->SetMaximum(99266.85); 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,554.2857); h_SL2L265->SetBinContent(2,708.5715); h_SL2L265->SetBinContent(3,794.2857); h_SL2L265->SetBinContent(4,940); h_SL2L265->SetBinContent(5,887.1429); h_SL2L265->SetBinContent(6,948.5715); h_SL2L265->SetBinContent(7,1008.571); h_SL2L265->SetBinContent(8,977.1429); h_SL2L265->SetBinContent(9,1092.857); h_SL2L265->SetBinContent(10,1150); h_SL2L265->SetBinContent(11,1272.857); h_SL2L265->SetBinContent(12,1388.571); h_SL2L265->SetBinContent(13,1458.571); h_SL2L265->SetBinContent(14,1701.429); h_SL2L265->SetBinContent(15,1762.857); h_SL2L265->SetBinContent(16,1801.429); h_SL2L265->SetBinContent(17,1872.857); h_SL2L265->SetBinContent(18,1962.857); h_SL2L265->SetBinContent(19,2034.286); h_SL2L265->SetBinContent(20,2342.857); h_SL2L265->SetBinContent(21,2347.143); h_SL2L265->SetBinContent(22,2498.572); h_SL2L265->SetBinContent(23,2604.286); h_SL2L265->SetBinContent(24,3064.286); h_SL2L265->SetBinContent(25,4200); h_SL2L265->SetBinContent(26,17100); h_SL2L265->SetBinContent(27,33638.57); h_SL2L265->SetBinContent(28,45018.57); h_SL2L265->SetBinContent(29,50012.86); h_SL2L265->SetBinContent(30,51881.43); h_SL2L265->SetBinContent(31,50051.43); h_SL2L265->SetBinContent(32,50254.29); h_SL2L265->SetBinContent(33,51935.71); h_SL2L265->SetBinContent(34,42082.86); h_SL2L265->SetBinContent(35,14788.57); h_SL2L265->SetBinContent(36,4725.714); h_SL2L265->SetBinContent(37,2981.429); h_SL2L265->SetBinContent(38,2534.286); h_SL2L265->SetBinContent(39,3438.572); h_SL2L265->SetBinContent(40,5040); h_SL2L265->SetBinContent(41,3334.286); h_SL2L265->SetBinContent(42,3411.429); h_SL2L265->SetBinContent(43,2225.714); h_SL2L265->SetBinContent(44,3315.714); h_SL2L265->SetBinContent(45,1260); h_SL2L265->SetBinContent(46,1168.571); h_SL2L265->SetBinContent(47,1027.143); h_SL2L265->SetBinContent(48,978.5715); h_SL2L265->SetBinContent(49,901.4286); h_SL2L265->SetBinContent(50,792.8572); h_SL2L265->SetBinContent(51,765.7143); h_SL2L265->SetBinContent(52,770); h_SL2L265->SetBinContent(53,697.1429); h_SL2L265->SetBinContent(54,590); h_SL2L265->SetBinContent(55,637.1429); h_SL2L265->SetBinContent(56,588.5715); h_SL2L265->SetBinContent(57,531.4286); h_SL2L265->SetMaximum(86319); 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,648.5715); h_SL2L366->SetBinContent(2,710); h_SL2L366->SetBinContent(3,895.7143); h_SL2L366->SetBinContent(4,914.2858); h_SL2L366->SetBinContent(5,905.7143); h_SL2L366->SetBinContent(6,911.4286); h_SL2L366->SetBinContent(7,914.2858); h_SL2L366->SetBinContent(8,1001.429); h_SL2L366->SetBinContent(9,1088.571); h_SL2L366->SetBinContent(10,1144.286); h_SL2L366->SetBinContent(11,1332.857); h_SL2L366->SetBinContent(12,1364.286); h_SL2L366->SetBinContent(13,1538.571); h_SL2L366->SetBinContent(14,1777.143); h_SL2L366->SetBinContent(15,1732.857); h_SL2L366->SetBinContent(16,1794.286); h_SL2L366->SetBinContent(17,1918.572); h_SL2L366->SetBinContent(18,1965.714); h_SL2L366->SetBinContent(19,2180); h_SL2L366->SetBinContent(20,2221.429); h_SL2L366->SetBinContent(21,2384.286); h_SL2L366->SetBinContent(22,2480); h_SL2L366->SetBinContent(23,2815.714); h_SL2L366->SetBinContent(24,3242.857); h_SL2L366->SetBinContent(25,8255.715); h_SL2L366->SetBinContent(26,26358.57); h_SL2L366->SetBinContent(27,39822.86); h_SL2L366->SetBinContent(28,48204.29); h_SL2L366->SetBinContent(29,51320); h_SL2L366->SetBinContent(30,51094.29); h_SL2L366->SetBinContent(31,50277.14); h_SL2L366->SetBinContent(32,51378.57); h_SL2L366->SetBinContent(33,49660); h_SL2L366->SetBinContent(34,28337.14); h_SL2L366->SetBinContent(35,7248.572); h_SL2L366->SetBinContent(36,3527.143); h_SL2L366->SetBinContent(37,2665.714); h_SL2L366->SetBinContent(38,2242.857); h_SL2L366->SetBinContent(39,1928.572); h_SL2L366->SetBinContent(40,3570); h_SL2L366->SetBinContent(41,2187.143); h_SL2L366->SetBinContent(42,1568.571); h_SL2L366->SetBinContent(43,1414.286); h_SL2L366->SetBinContent(44,1301.429); h_SL2L366->SetBinContent(45,1244.286); h_SL2L366->SetBinContent(46,1097.143); h_SL2L366->SetBinContent(47,1020); h_SL2L366->SetBinContent(48,940); h_SL2L366->SetBinContent(49,800); h_SL2L366->SetBinContent(50,808.5715); h_SL2L366->SetBinContent(51,695.7143); h_SL2L366->SetBinContent(52,687.1429); h_SL2L366->SetBinContent(53,628.5715); h_SL2L366->SetBinContent(54,588.5715); h_SL2L366->SetBinContent(55,595.7143); h_SL2L366->SetBinContent(56,564.2857); h_SL2L366->SetBinContent(57,557.1429); h_SL2L366->SetMaximum(86319); 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,688.5715); h_SL2L467->SetBinContent(3,782.8572); h_SL2L467->SetBinContent(4,870); h_SL2L467->SetBinContent(5,835.7143); h_SL2L467->SetBinContent(6,882.8572); h_SL2L467->SetBinContent(7,907.1429); h_SL2L467->SetBinContent(8,917.1429); h_SL2L467->SetBinContent(9,1014.286); h_SL2L467->SetBinContent(10,1142.857); h_SL2L467->SetBinContent(11,1234.286); h_SL2L467->SetBinContent(12,1288.571); h_SL2L467->SetBinContent(13,1447.143); h_SL2L467->SetBinContent(14,1567.143); h_SL2L467->SetBinContent(15,1681.429); h_SL2L467->SetBinContent(16,1735.714); h_SL2L467->SetBinContent(17,1814.286); h_SL2L467->SetBinContent(18,1832.857); h_SL2L467->SetBinContent(19,1975.714); h_SL2L467->SetBinContent(20,2230); h_SL2L467->SetBinContent(21,2181.429); h_SL2L467->SetBinContent(22,2331.429); h_SL2L467->SetBinContent(23,2574.286); h_SL2L467->SetBinContent(24,2954.286); h_SL2L467->SetBinContent(25,4017.143); h_SL2L467->SetBinContent(26,16970); h_SL2L467->SetBinContent(27,33752.86); h_SL2L467->SetBinContent(28,44882.86); h_SL2L467->SetBinContent(29,50007.14); h_SL2L467->SetBinContent(30,52387.14); h_SL2L467->SetBinContent(31,50217.14); h_SL2L467->SetBinContent(32,50460); h_SL2L467->SetBinContent(33,52080); h_SL2L467->SetBinContent(34,41907.14); h_SL2L467->SetBinContent(35,14771.43); h_SL2L467->SetBinContent(36,4614.286); h_SL2L467->SetBinContent(37,2962.857); h_SL2L467->SetBinContent(38,2360); h_SL2L467->SetBinContent(39,1992.857); h_SL2L467->SetBinContent(40,1774.286); h_SL2L467->SetBinContent(41,1598.571); h_SL2L467->SetBinContent(42,2107.143); h_SL2L467->SetBinContent(43,1472.857); h_SL2L467->SetBinContent(44,1210); h_SL2L467->SetBinContent(45,1191.429); h_SL2L467->SetBinContent(46,1168.571); h_SL2L467->SetBinContent(47,964.2858); h_SL2L467->SetBinContent(48,931.4286); h_SL2L467->SetBinContent(49,852.8572); h_SL2L467->SetBinContent(50,757.1429); h_SL2L467->SetBinContent(51,754.2857); h_SL2L467->SetBinContent(52,701.4286); h_SL2L467->SetBinContent(53,660); h_SL2L467->SetBinContent(54,561.4286); h_SL2L467->SetBinContent(55,611.4286); h_SL2L467->SetBinContent(56,557.1429); h_SL2L467->SetBinContent(57,491.4286); h_SL2L467->SetMaximum(86319); 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 6550"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }