void RatesPerCell_Removing_noisy_cells_run_5361_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:34:48 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9021.032,67.5,81189.28); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5361",60,0,60); h_SL2L164->SetBinContent(1,744.2857); h_SL2L164->SetBinContent(2,817.1429); h_SL2L164->SetBinContent(3,984.2858); h_SL2L164->SetBinContent(4,1065.714); h_SL2L164->SetBinContent(5,1057.143); h_SL2L164->SetBinContent(6,1150); h_SL2L164->SetBinContent(7,1172.857); h_SL2L164->SetBinContent(8,1231.429); h_SL2L164->SetBinContent(9,1318.571); h_SL2L164->SetBinContent(10,1511.429); h_SL2L164->SetBinContent(11,1600); h_SL2L164->SetBinContent(12,1685.714); h_SL2L164->SetBinContent(13,1910); h_SL2L164->SetBinContent(14,1967.143); h_SL2L164->SetBinContent(15,2134.286); h_SL2L164->SetBinContent(16,2271.429); h_SL2L164->SetBinContent(17,2372.857); h_SL2L164->SetBinContent(18,2554.286); h_SL2L164->SetBinContent(19,2801.429); h_SL2L164->SetBinContent(20,3031.429); h_SL2L164->SetBinContent(21,3265.714); h_SL2L164->SetBinContent(22,3494.286); h_SL2L164->SetBinContent(23,3814.286); h_SL2L164->SetBinContent(24,4055.714); h_SL2L164->SetBinContent(25,8548.571); h_SL2L164->SetBinContent(26,27748.57); h_SL2L164->SetBinContent(27,42710); h_SL2L164->SetBinContent(28,47948.57); h_SL2L164->SetBinContent(29,51285.71); h_SL2L164->SetBinContent(30,47655.71); h_SL2L164->SetBinContent(31,44017.14); h_SL2L164->SetBinContent(32,42268.57); h_SL2L164->SetBinContent(33,41520); h_SL2L164->SetBinContent(34,24310); h_SL2L164->SetBinContent(35,14.28572); h_SL2L164->SetBinContent(36,4158.571); h_SL2L164->SetBinContent(37,3218.572); h_SL2L164->SetBinContent(38,2772.857); h_SL2L164->SetBinContent(39,2505.714); h_SL2L164->SetBinContent(40,1721.429); h_SL2L164->SetBinContent(41,1704.286); h_SL2L164->SetBinContent(42,1855.714); h_SL2L164->SetBinContent(43,1657.143); h_SL2L164->SetBinContent(44,1475.714); h_SL2L164->SetBinContent(45,1580); h_SL2L164->SetBinContent(46,1357.143); h_SL2L164->SetBinContent(47,1310); h_SL2L164->SetBinContent(48,1278.571); h_SL2L164->SetBinContent(49,1198.571); h_SL2L164->SetBinContent(50,1137.143); h_SL2L164->SetBinContent(51,1091.429); h_SL2L164->SetBinContent(52,1072.857); h_SL2L164->SetBinContent(53,981.4286); h_SL2L164->SetBinContent(54,977.1429); h_SL2L164->SetBinContent(55,888.5715); h_SL2L164->SetBinContent(56,817.1429); h_SL2L164->SetBinContent(57,878.5715); h_SL2L164->SetMaximum(72168.25); 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,681.4286); h_SL2L265->SetBinContent(2,910); h_SL2L265->SetBinContent(3,944.2858); h_SL2L265->SetBinContent(4,1148.571); h_SL2L265->SetBinContent(5,1071.429); h_SL2L265->SetBinContent(6,1190); h_SL2L265->SetBinContent(7,1247.143); h_SL2L265->SetBinContent(8,1298.571); h_SL2L265->SetBinContent(9,1375.714); h_SL2L265->SetBinContent(10,1445.714); h_SL2L265->SetBinContent(11,1640); h_SL2L265->SetBinContent(12,1798.571); h_SL2L265->SetBinContent(13,1991.429); h_SL2L265->SetBinContent(14,2042.857); h_SL2L265->SetBinContent(15,2222.857); h_SL2L265->SetBinContent(16,2404.286); h_SL2L265->SetBinContent(17,2540); h_SL2L265->SetBinContent(18,2681.429); h_SL2L265->SetBinContent(19,2944.286); h_SL2L265->SetBinContent(20,3111.429); h_SL2L265->SetBinContent(21,3470); h_SL2L265->SetBinContent(22,3450); h_SL2L265->SetBinContent(23,3985.714); h_SL2L265->SetBinContent(24,4157.143); h_SL2L265->SetBinContent(25,5074.286); h_SL2L265->SetBinContent(26,19010); h_SL2L265->SetBinContent(27,38927.14); h_SL2L265->SetBinContent(28,49885.71); h_SL2L265->SetBinContent(29,53594.29); h_SL2L265->SetBinContent(30,54085.71); h_SL2L265->SetBinContent(31,48641.43); h_SL2L265->SetBinContent(32,46947.14); h_SL2L265->SetBinContent(33,46361.43); h_SL2L265->SetBinContent(34,39765.71); h_SL2L265->SetBinContent(35,14275.71); h_SL2L265->SetBinContent(36,5622.857); h_SL2L265->SetBinContent(37,3981.429); h_SL2L265->SetBinContent(38,3211.429); h_SL2L265->SetBinContent(39,2904.286); h_SL2L265->SetBinContent(40,2588.572); h_SL2L265->SetBinContent(41,2232.857); h_SL2L265->SetBinContent(42,2147.143); h_SL2L265->SetBinContent(43,1895.714); h_SL2L265->SetBinContent(44,1670); h_SL2L265->SetBinContent(45,1571.429); h_SL2L265->SetBinContent(46,1587.143); h_SL2L265->SetBinContent(47,1444.286); h_SL2L265->SetBinContent(48,1324.286); h_SL2L265->SetBinContent(49,1231.429); h_SL2L265->SetBinContent(50,1221.429); h_SL2L265->SetBinContent(51,1165.714); h_SL2L265->SetBinContent(52,1134.286); h_SL2L265->SetBinContent(53,1070); h_SL2L265->SetBinContent(54,1025.714); h_SL2L265->SetBinContent(55,987.1429); h_SL2L265->SetBinContent(56,900); h_SL2L265->SetBinContent(57,924.2858); h_SL2L265->SetMaximum(62755.5); 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,784.2857); h_SL2L366->SetBinContent(2,908.5715); h_SL2L366->SetBinContent(3,1082.857); h_SL2L366->SetBinContent(4,1112.857); h_SL2L366->SetBinContent(5,1114.286); h_SL2L366->SetBinContent(6,1211.429); h_SL2L366->SetBinContent(7,1244.286); h_SL2L366->SetBinContent(8,1297.143); h_SL2L366->SetBinContent(9,1397.143); h_SL2L366->SetBinContent(10,1540); h_SL2L366->SetBinContent(11,1682.857); h_SL2L366->SetBinContent(12,1828.572); h_SL2L366->SetBinContent(13,1967.143); h_SL2L366->SetBinContent(14,2118.572); h_SL2L366->SetBinContent(15,2305.714); h_SL2L366->SetBinContent(16,2421.429); h_SL2L366->SetBinContent(17,2522.857); h_SL2L366->SetBinContent(18,2752.857); h_SL2L366->SetBinContent(19,3007.143); h_SL2L366->SetBinContent(20,3217.143); h_SL2L366->SetBinContent(21,3341.429); h_SL2L366->SetBinContent(22,3658.572); h_SL2L366->SetBinContent(23,4031.429); h_SL2L366->SetBinContent(24,4348.571); h_SL2L366->SetBinContent(25,9275.715); h_SL2L366->SetBinContent(26,30041.43); h_SL2L366->SetBinContent(27,45447.14); h_SL2L366->SetBinContent(28,52327.14); h_SL2L366->SetBinContent(29,54570); h_SL2L366->SetBinContent(30,51405.71); h_SL2L366->SetBinContent(31,47574.29); h_SL2L366->SetBinContent(32,46750); h_SL2L366->SetBinContent(33,45357.14); h_SL2L366->SetBinContent(34,26767.14); h_SL2L366->SetBinContent(35,7790); h_SL2L366->SetBinContent(36,4554.286); h_SL2L366->SetBinContent(37,3460); h_SL2L366->SetBinContent(38,2931.429); h_SL2L366->SetBinContent(39,2658.572); h_SL2L366->SetBinContent(40,2347.143); h_SL2L366->SetBinContent(41,2118.572); h_SL2L366->SetBinContent(42,1948.572); h_SL2L366->SetBinContent(43,1727.143); h_SL2L366->SetBinContent(44,1614.286); h_SL2L366->SetBinContent(45,1620); h_SL2L366->SetBinContent(46,1390); h_SL2L366->SetBinContent(47,1375.714); h_SL2L366->SetBinContent(48,1312.857); h_SL2L366->SetBinContent(49,1220); h_SL2L366->SetBinContent(50,1205.714); h_SL2L366->SetBinContent(51,1102.857); h_SL2L366->SetBinContent(52,1108.571); h_SL2L366->SetBinContent(53,1005.714); h_SL2L366->SetBinContent(54,988.5715); h_SL2L366->SetBinContent(55,895.7143); h_SL2L366->SetBinContent(56,954.2858); h_SL2L366->SetBinContent(57,798.5715); h_SL2L366->SetMaximum(62755.5); 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,872.8572); h_SL2L467->SetBinContent(3,975.7143); h_SL2L467->SetBinContent(4,1054.286); h_SL2L467->SetBinContent(5,1080); h_SL2L467->SetBinContent(6,1120); h_SL2L467->SetBinContent(7,1158.571); h_SL2L467->SetBinContent(8,1271.429); h_SL2L467->SetBinContent(9,1314.286); h_SL2L467->SetBinContent(10,1417.143); h_SL2L467->SetBinContent(11,1615.714); h_SL2L467->SetBinContent(12,1781.429); h_SL2L467->SetBinContent(13,1885.714); h_SL2L467->SetBinContent(14,1964.286); h_SL2L467->SetBinContent(15,2094.286); h_SL2L467->SetBinContent(16,2335.714); h_SL2L467->SetBinContent(17,2458.572); h_SL2L467->SetBinContent(18,2605.714); h_SL2L467->SetBinContent(19,2810); h_SL2L467->SetBinContent(20,3032.857); h_SL2L467->SetBinContent(21,3308.572); h_SL2L467->SetBinContent(22,3321.429); h_SL2L467->SetBinContent(23,3818.572); h_SL2L467->SetBinContent(24,4051.429); h_SL2L467->SetBinContent(25,4808.572); h_SL2L467->SetBinContent(26,19005.71); h_SL2L467->SetBinContent(27,39104.29); h_SL2L467->SetBinContent(28,49702.86); h_SL2L467->SetBinContent(29,53578.57); h_SL2L467->SetBinContent(30,54191.43); h_SL2L467->SetBinContent(31,48674.29); h_SL2L467->SetBinContent(32,46948.57); h_SL2L467->SetBinContent(33,46477.14); h_SL2L467->SetBinContent(34,39817.14); h_SL2L467->SetBinContent(35,14131.43); h_SL2L467->SetBinContent(36,5352.857); h_SL2L467->SetBinContent(37,3881.429); h_SL2L467->SetBinContent(38,3152.857); h_SL2L467->SetBinContent(39,2750); h_SL2L467->SetBinContent(40,2414.286); h_SL2L467->SetBinContent(41,2107.143); h_SL2L467->SetBinContent(42,1982.857); h_SL2L467->SetBinContent(43,1845.714); h_SL2L467->SetBinContent(44,1631.429); h_SL2L467->SetBinContent(45,1561.429); h_SL2L467->SetBinContent(46,1470); h_SL2L467->SetBinContent(47,1371.429); h_SL2L467->SetBinContent(48,1322.857); h_SL2L467->SetBinContent(49,1262.857); h_SL2L467->SetBinContent(50,1272.857); h_SL2L467->SetBinContent(51,1112.857); h_SL2L467->SetBinContent(52,1090); h_SL2L467->SetBinContent(53,1030); h_SL2L467->SetBinContent(54,958.5715); h_SL2L467->SetBinContent(55,960); h_SL2L467->SetBinContent(56,875.7143); h_SL2L467->SetBinContent(57,882.8572); h_SL2L467->SetMaximum(62755.5); 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 5361"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }