void RatesPerCell_Removing_noisy_cells_run_4992_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:11:01 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8859.313,67.5,79733.81); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4992",60,0,60); h_SL2L164->SetBinContent(1,677.8572); h_SL2L164->SetBinContent(2,788.5715); h_SL2L164->SetBinContent(3,1003.571); h_SL2L164->SetBinContent(4,1061.429); h_SL2L164->SetBinContent(5,1037.857); h_SL2L164->SetBinContent(6,1184.286); h_SL2L164->SetBinContent(7,1152.857); h_SL2L164->SetBinContent(8,1315.714); h_SL2L164->SetBinContent(9,1391.429); h_SL2L164->SetBinContent(10,1483.571); h_SL2L164->SetBinContent(11,1632.857); h_SL2L164->SetBinContent(12,1743.571); h_SL2L164->SetBinContent(13,1910); h_SL2L164->SetBinContent(14,2060); h_SL2L164->SetBinContent(15,2184.286); h_SL2L164->SetBinContent(16,2342.857); h_SL2L164->SetBinContent(17,2438.572); h_SL2L164->SetBinContent(18,2695.714); h_SL2L164->SetBinContent(19,3010); h_SL2L164->SetBinContent(20,3052.143); h_SL2L164->SetBinContent(21,3245); h_SL2L164->SetBinContent(22,3558.572); h_SL2L164->SetBinContent(23,3903.572); h_SL2L164->SetBinContent(24,4338.571); h_SL2L164->SetBinContent(25,8950); h_SL2L164->SetBinContent(26,28307.14); h_SL2L164->SetBinContent(27,43683.57); h_SL2L164->SetBinContent(28,50922.86); h_SL2L164->SetBinContent(29,53592.14); h_SL2L164->SetBinContent(30,50873.57); h_SL2L164->SetBinContent(31,47422.86); h_SL2L164->SetBinContent(32,48290); h_SL2L164->SetBinContent(33,46648.57); h_SL2L164->SetBinContent(34,26340.71); h_SL2L164->SetBinContent(35,0.7142857); h_SL2L164->SetBinContent(36,4395.714); h_SL2L164->SetBinContent(37,5080.714); h_SL2L164->SetBinContent(38,3313.572); h_SL2L164->SetBinContent(39,4260.714); h_SL2L164->SetBinContent(40,12225.71); h_SL2L164->SetBinContent(41,5549.286); h_SL2L164->SetBinContent(42,6195); h_SL2L164->SetBinContent(43,6572.857); h_SL2L164->SetBinContent(44,6164.286); h_SL2L164->SetBinContent(45,1438.571); h_SL2L164->SetBinContent(46,1345); h_SL2L164->SetBinContent(47,1278.571); h_SL2L164->SetBinContent(48,1172.857); h_SL2L164->SetBinContent(49,1062.857); h_SL2L164->SetBinContent(50,987.1429); h_SL2L164->SetBinContent(51,841.4286); h_SL2L164->SetBinContent(52,803.5715); h_SL2L164->SetBinContent(53,773.5715); h_SL2L164->SetBinContent(54,805); h_SL2L164->SetBinContent(55,693.5715); h_SL2L164->SetBinContent(56,567.1429); h_SL2L164->SetBinContent(57,521.4286); h_SL2L164->SetMaximum(70874.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,648.5715); h_SL2L265->SetBinContent(2,745); h_SL2L265->SetBinContent(3,845.7143); h_SL2L265->SetBinContent(4,1020); h_SL2L265->SetBinContent(5,1012.857); h_SL2L265->SetBinContent(6,1105.714); h_SL2L265->SetBinContent(7,1133.571); h_SL2L265->SetBinContent(8,1212.857); h_SL2L265->SetBinContent(9,1293.571); h_SL2L265->SetBinContent(10,1421.429); h_SL2L265->SetBinContent(11,1512.857); h_SL2L265->SetBinContent(12,1681.429); h_SL2L265->SetBinContent(13,1734.286); h_SL2L265->SetBinContent(14,1970); h_SL2L265->SetBinContent(15,2000); h_SL2L265->SetBinContent(16,2201.429); h_SL2L265->SetBinContent(17,2347.143); h_SL2L265->SetBinContent(18,2535); h_SL2L265->SetBinContent(19,2815.714); h_SL2L265->SetBinContent(20,2989.286); h_SL2L265->SetBinContent(21,3123.572); h_SL2L265->SetBinContent(22,3374.286); h_SL2L265->SetBinContent(23,3745.714); h_SL2L265->SetBinContent(24,4011.429); h_SL2L265->SetBinContent(25,4809.286); h_SL2L265->SetBinContent(26,18100.71); h_SL2L265->SetBinContent(27,37103.57); h_SL2L265->SetBinContent(28,47944.29); h_SL2L265->SetBinContent(29,52707.86); h_SL2L265->SetBinContent(30,52652.86); h_SL2L265->SetBinContent(31,48337.14); h_SL2L265->SetBinContent(32,47557.14); h_SL2L265->SetBinContent(33,47972.14); h_SL2L265->SetBinContent(34,40077.14); h_SL2L265->SetBinContent(35,13920.71); h_SL2L265->SetBinContent(36,5268.572); h_SL2L265->SetBinContent(37,3715.714); h_SL2L265->SetBinContent(38,3088.572); h_SL2L265->SetBinContent(39,3077.857); h_SL2L265->SetBinContent(40,3955); h_SL2L265->SetBinContent(41,2165); h_SL2L265->SetBinContent(42,2050); h_SL2L265->SetBinContent(43,1752.857); h_SL2L265->SetBinContent(44,1733.571); h_SL2L265->SetBinContent(45,1435.714); h_SL2L265->SetBinContent(46,1391.429); h_SL2L265->SetBinContent(47,1276.429); h_SL2L265->SetBinContent(48,1218.571); h_SL2L265->SetBinContent(49,1120.714); h_SL2L265->SetBinContent(50,1026.429); h_SL2L265->SetBinContent(51,907.8572); h_SL2L265->SetBinContent(52,806.4286); h_SL2L265->SetBinContent(53,798.5715); h_SL2L265->SetBinContent(54,725.7143); h_SL2L265->SetBinContent(55,736.4286); h_SL2L265->SetBinContent(56,640); h_SL2L265->SetBinContent(57,550); h_SL2L265->SetMaximum(61630.97); 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,650.7143); h_SL2L366->SetBinContent(2,763.5715); h_SL2L366->SetBinContent(3,915.7143); h_SL2L366->SetBinContent(4,1000.714); h_SL2L366->SetBinContent(5,993.5715); h_SL2L366->SetBinContent(6,1147.857); h_SL2L366->SetBinContent(7,1130.714); h_SL2L366->SetBinContent(8,1236.429); h_SL2L366->SetBinContent(9,1344.286); h_SL2L366->SetBinContent(10,1392.857); h_SL2L366->SetBinContent(11,1545.714); h_SL2L366->SetBinContent(12,1627.143); h_SL2L366->SetBinContent(13,1824.286); h_SL2L366->SetBinContent(14,1955); h_SL2L366->SetBinContent(15,2053.572); h_SL2L366->SetBinContent(16,2232.857); h_SL2L366->SetBinContent(17,2324.286); h_SL2L366->SetBinContent(18,2577.857); h_SL2L366->SetBinContent(19,2902.857); h_SL2L366->SetBinContent(20,2937.857); h_SL2L366->SetBinContent(21,3180); h_SL2L366->SetBinContent(22,3472.143); h_SL2L366->SetBinContent(23,3799.286); h_SL2L366->SetBinContent(24,4164.286); h_SL2L366->SetBinContent(25,8882.144); h_SL2L366->SetBinContent(26,28287.14); h_SL2L366->SetBinContent(27,43631.43); h_SL2L366->SetBinContent(28,50927.14); h_SL2L366->SetBinContent(29,53428.57); h_SL2L366->SetBinContent(30,50640.71); h_SL2L366->SetBinContent(31,47218.57); h_SL2L366->SetBinContent(32,48245); h_SL2L366->SetBinContent(33,46497.14); h_SL2L366->SetBinContent(34,26439.29); h_SL2L366->SetBinContent(35,7467.857); h_SL2L366->SetBinContent(36,4270.714); h_SL2L366->SetBinContent(37,3269.286); h_SL2L366->SetBinContent(38,2750.714); h_SL2L366->SetBinContent(39,2422.857); h_SL2L366->SetBinContent(40,3275); h_SL2L366->SetBinContent(41,1982.857); h_SL2L366->SetBinContent(42,1827.857); h_SL2L366->SetBinContent(43,1622.857); h_SL2L366->SetBinContent(44,1441.429); h_SL2L366->SetBinContent(45,1382.143); h_SL2L366->SetBinContent(46,1325.714); h_SL2L366->SetBinContent(47,1177.143); h_SL2L366->SetBinContent(48,1127.143); h_SL2L366->SetBinContent(49,1047.143); h_SL2L366->SetBinContent(50,958.5715); h_SL2L366->SetBinContent(51,809.2857); h_SL2L366->SetBinContent(52,781.4286); h_SL2L366->SetBinContent(53,730.7143); h_SL2L366->SetBinContent(54,777.8572); h_SL2L366->SetBinContent(55,653.5715); h_SL2L366->SetBinContent(56,583.5715); h_SL2L366->SetBinContent(57,529.2857); h_SL2L366->SetMaximum(61630.97); 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,732.8572); h_SL2L467->SetBinContent(3,845); h_SL2L467->SetBinContent(4,984.2858); h_SL2L467->SetBinContent(5,934.2858); h_SL2L467->SetBinContent(6,1034.286); h_SL2L467->SetBinContent(7,1085.714); h_SL2L467->SetBinContent(8,1142.857); h_SL2L467->SetBinContent(9,1238.571); h_SL2L467->SetBinContent(10,1322.143); h_SL2L467->SetBinContent(11,1446.429); h_SL2L467->SetBinContent(12,1595); h_SL2L467->SetBinContent(13,1612.857); h_SL2L467->SetBinContent(14,1910.714); h_SL2L467->SetBinContent(15,1948.572); h_SL2L467->SetBinContent(16,2082.143); h_SL2L467->SetBinContent(17,2271.429); h_SL2L467->SetBinContent(18,2381.429); h_SL2L467->SetBinContent(19,2714.286); h_SL2L467->SetBinContent(20,2805); h_SL2L467->SetBinContent(21,3017.143); h_SL2L467->SetBinContent(22,3265.714); h_SL2L467->SetBinContent(23,3581.429); h_SL2L467->SetBinContent(24,3827.857); h_SL2L467->SetBinContent(25,4672.143); h_SL2L467->SetBinContent(26,17990.71); h_SL2L467->SetBinContent(27,37092.14); h_SL2L467->SetBinContent(28,47827.86); h_SL2L467->SetBinContent(29,52637.14); h_SL2L467->SetBinContent(30,52886.43); h_SL2L467->SetBinContent(31,48197.14); h_SL2L467->SetBinContent(32,47786.43); h_SL2L467->SetBinContent(33,47996.43); h_SL2L467->SetBinContent(34,40237.14); h_SL2L467->SetBinContent(35,13931.43); h_SL2L467->SetBinContent(36,5142.857); h_SL2L467->SetBinContent(37,3649.286); h_SL2L467->SetBinContent(38,2910.714); h_SL2L467->SetBinContent(39,2550.714); h_SL2L467->SetBinContent(40,2200.714); h_SL2L467->SetBinContent(41,2033.572); h_SL2L467->SetBinContent(42,1884.286); h_SL2L467->SetBinContent(43,1695); h_SL2L467->SetBinContent(44,1542.857); h_SL2L467->SetBinContent(45,1355); h_SL2L467->SetBinContent(46,1295); h_SL2L467->SetBinContent(47,1222.857); h_SL2L467->SetBinContent(48,1117.143); h_SL2L467->SetBinContent(49,1046.429); h_SL2L467->SetBinContent(50,978.5715); h_SL2L467->SetBinContent(51,875); h_SL2L467->SetBinContent(52,760); h_SL2L467->SetBinContent(53,751.4286); h_SL2L467->SetBinContent(54,713.5715); h_SL2L467->SetBinContent(55,727.8572); h_SL2L467->SetBinContent(56,615.7143); h_SL2L467->SetBinContent(57,535.7143); h_SL2L467->SetMaximum(61630.97); 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 4992"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }