void RatesPerCell_Removing_noisy_cells_run_5183_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:17:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8836.313,67.5,79526.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 5183",60,0,60); h_SL2L164->SetBinContent(1,542.8572); h_SL2L164->SetBinContent(2,1991.429); h_SL2L164->SetBinContent(3,791.4286); h_SL2L164->SetBinContent(4,885.7143); h_SL2L164->SetBinContent(5,924.2858); h_SL2L164->SetBinContent(6,962.8572); h_SL2L164->SetBinContent(7,905.7143); h_SL2L164->SetBinContent(8,1071.429); h_SL2L164->SetBinContent(9,1257.143); h_SL2L164->SetBinContent(10,1310); h_SL2L164->SetBinContent(11,1390); h_SL2L164->SetBinContent(12,1541.429); h_SL2L164->SetBinContent(13,1668.571); h_SL2L164->SetBinContent(14,1782.857); h_SL2L164->SetBinContent(15,1911.429); h_SL2L164->SetBinContent(16,1992.857); h_SL2L164->SetBinContent(17,2234.286); h_SL2L164->SetBinContent(18,2317.143); h_SL2L164->SetBinContent(19,2505.714); h_SL2L164->SetBinContent(20,2677.143); h_SL2L164->SetBinContent(21,2980); h_SL2L164->SetBinContent(22,3034.286); h_SL2L164->SetBinContent(23,3328.572); h_SL2L164->SetBinContent(24,3787.143); h_SL2L164->SetBinContent(25,8695.715); h_SL2L164->SetBinContent(26,28394.29); h_SL2L164->SetBinContent(27,43888.57); h_SL2L164->SetBinContent(28,50778.57); h_SL2L164->SetBinContent(29,53452.86); h_SL2L164->SetBinContent(30,51578.57); h_SL2L164->SetBinContent(31,46828.57); h_SL2L164->SetBinContent(32,46854.29); h_SL2L164->SetBinContent(33,45551.43); h_SL2L164->SetBinContent(34,25590); h_SL2L164->SetBinContent(35,125.7143); h_SL2L164->SetBinContent(36,4217.143); h_SL2L164->SetBinContent(37,2982.857); h_SL2L164->SetBinContent(38,2374.286); h_SL2L164->SetBinContent(39,2264.286); h_SL2L164->SetBinContent(40,1637.143); h_SL2L164->SetBinContent(41,1507.143); h_SL2L164->SetBinContent(42,1648.571); h_SL2L164->SetBinContent(43,1447.143); h_SL2L164->SetBinContent(44,1298.571); h_SL2L164->SetBinContent(45,1315.714); h_SL2L164->SetBinContent(46,1088.571); h_SL2L164->SetBinContent(47,1014.286); h_SL2L164->SetBinContent(48,878.5715); h_SL2L164->SetBinContent(49,785.7143); h_SL2L164->SetBinContent(50,722.8572); h_SL2L164->SetBinContent(51,754.2857); h_SL2L164->SetBinContent(52,682.8572); h_SL2L164->SetBinContent(53,682.8572); h_SL2L164->SetBinContent(54,595.7143); h_SL2L164->SetBinContent(55,574.2857); h_SL2L164->SetBinContent(56,491.4286); h_SL2L164->SetBinContent(57,425.7143); h_SL2L164->SetMaximum(70690.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,545.7143); h_SL2L265->SetBinContent(2,732.8572); h_SL2L265->SetBinContent(3,740); h_SL2L265->SetBinContent(4,817.1429); h_SL2L265->SetBinContent(5,891.4286); h_SL2L265->SetBinContent(6,930); h_SL2L265->SetBinContent(7,934.2858); h_SL2L265->SetBinContent(8,1010); h_SL2L265->SetBinContent(9,1117.143); h_SL2L265->SetBinContent(10,1251.429); h_SL2L265->SetBinContent(11,1311.429); h_SL2L265->SetBinContent(12,1445.714); h_SL2L265->SetBinContent(13,1507.143); h_SL2L265->SetBinContent(14,1655.714); h_SL2L265->SetBinContent(15,1761.429); h_SL2L265->SetBinContent(16,1934.286); h_SL2L265->SetBinContent(17,2032.857); h_SL2L265->SetBinContent(18,2267.143); h_SL2L265->SetBinContent(19,2387.143); h_SL2L265->SetBinContent(20,2482.857); h_SL2L265->SetBinContent(21,2824.286); h_SL2L265->SetBinContent(22,2878.572); h_SL2L265->SetBinContent(23,3105.714); h_SL2L265->SetBinContent(24,3390); h_SL2L265->SetBinContent(25,4581.429); h_SL2L265->SetBinContent(26,17795.71); h_SL2L265->SetBinContent(27,37197.14); h_SL2L265->SetBinContent(28,48252.86); h_SL2L265->SetBinContent(29,53021.43); h_SL2L265->SetBinContent(30,53158.57); h_SL2L265->SetBinContent(31,48337.14); h_SL2L265->SetBinContent(32,46574.29); h_SL2L265->SetBinContent(33,46724.29); h_SL2L265->SetBinContent(34,39172.86); h_SL2L265->SetBinContent(35,13611.43); h_SL2L265->SetBinContent(36,5020); h_SL2L265->SetBinContent(37,3368.572); h_SL2L265->SetBinContent(38,2600); h_SL2L265->SetBinContent(39,2220); h_SL2L265->SetBinContent(40,1968.572); h_SL2L265->SetBinContent(41,1745.714); h_SL2L265->SetBinContent(42,1565.714); h_SL2L265->SetBinContent(43,1511.429); h_SL2L265->SetBinContent(44,1431.429); h_SL2L265->SetBinContent(45,1211.429); h_SL2L265->SetBinContent(46,1117.143); h_SL2L265->SetBinContent(47,1027.143); h_SL2L265->SetBinContent(48,944.2858); h_SL2L265->SetBinContent(49,23901.43); h_SL2L265->SetBinContent(50,674.2857); h_SL2L265->SetBinContent(51,715.7143); h_SL2L265->SetBinContent(52,702.8572); h_SL2L265->SetBinContent(53,620); h_SL2L265->SetBinContent(54,601.4286); h_SL2L265->SetBinContent(55,535.7143); h_SL2L265->SetBinContent(56,505.7143); h_SL2L265->SetBinContent(57,444.2857); h_SL2L265->SetMaximum(61470.79); 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,547.1429); h_SL2L366->SetBinContent(2,712.8572); h_SL2L366->SetBinContent(3,762.8572); h_SL2L366->SetBinContent(4,851.4286); h_SL2L366->SetBinContent(5,861.4286); h_SL2L366->SetBinContent(6,947.1429); h_SL2L366->SetBinContent(7,878.5715); h_SL2L366->SetBinContent(8,1064.286); h_SL2L366->SetBinContent(9,1185.714); h_SL2L366->SetBinContent(10,1210); h_SL2L366->SetBinContent(11,1282.857); h_SL2L366->SetBinContent(12,1452.857); h_SL2L366->SetBinContent(13,1517.143); h_SL2L366->SetBinContent(14,1690); h_SL2L366->SetBinContent(15,1831.429); h_SL2L366->SetBinContent(16,1882.857); h_SL2L366->SetBinContent(17,2101.429); h_SL2L366->SetBinContent(18,2258.572); h_SL2L366->SetBinContent(19,2431.429); h_SL2L366->SetBinContent(20,2652.857); h_SL2L366->SetBinContent(21,2837.143); h_SL2L366->SetBinContent(22,2930); h_SL2L366->SetBinContent(23,3267.143); h_SL2L366->SetBinContent(24,3675.714); h_SL2L366->SetBinContent(25,8567.143); h_SL2L366->SetBinContent(26,28557.14); h_SL2L366->SetBinContent(27,43827.14); h_SL2L366->SetBinContent(28,50938.57); h_SL2L366->SetBinContent(29,53218.57); h_SL2L366->SetBinContent(30,51704.29); h_SL2L366->SetBinContent(31,47001.43); h_SL2L366->SetBinContent(32,47034.29); h_SL2L366->SetBinContent(33,45532.86); h_SL2L366->SetBinContent(34,25657.14); h_SL2L366->SetBinContent(35,7167.143); h_SL2L366->SetBinContent(36,3984.286); h_SL2L366->SetBinContent(37,2830); h_SL2L366->SetBinContent(38,2265.714); h_SL2L366->SetBinContent(39,2114.286); h_SL2L366->SetBinContent(40,1750); h_SL2L366->SetBinContent(41,1601.429); h_SL2L366->SetBinContent(42,1498.571); h_SL2L366->SetBinContent(43,1398.571); h_SL2L366->SetBinContent(44,1277.143); h_SL2L366->SetBinContent(45,1174.286); h_SL2L366->SetBinContent(46,1027.143); h_SL2L366->SetBinContent(47,1002.857); h_SL2L366->SetBinContent(48,838.5715); h_SL2L366->SetBinContent(49,718.5715); h_SL2L366->SetBinContent(50,658.5715); h_SL2L366->SetBinContent(51,708.5715); h_SL2L366->SetBinContent(52,611.4286); h_SL2L366->SetBinContent(53,622.8572); h_SL2L366->SetBinContent(54,572.8572); h_SL2L366->SetBinContent(55,540); h_SL2L366->SetBinContent(56,472.8571); h_SL2L366->SetBinContent(57,400); h_SL2L366->SetMaximum(61470.79); 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,674.2857); h_SL2L467->SetBinContent(3,678.5715); h_SL2L467->SetBinContent(4,728.5715); h_SL2L467->SetBinContent(5,828.5715); h_SL2L467->SetBinContent(6,878.5715); h_SL2L467->SetBinContent(7,904.2857); h_SL2L467->SetBinContent(8,908.5715); h_SL2L467->SetBinContent(9,1031.429); h_SL2L467->SetBinContent(10,1157.143); h_SL2L467->SetBinContent(11,1238.571); h_SL2L467->SetBinContent(12,1338.571); h_SL2L467->SetBinContent(13,1452.857); h_SL2L467->SetBinContent(14,1570); h_SL2L467->SetBinContent(15,4014.286); h_SL2L467->SetBinContent(16,1777.143); h_SL2L467->SetBinContent(17,1894.286); h_SL2L467->SetBinContent(18,2108.572); h_SL2L467->SetBinContent(19,2254.286); h_SL2L467->SetBinContent(20,2408.572); h_SL2L467->SetBinContent(21,2685.714); h_SL2L467->SetBinContent(22,2771.429); h_SL2L467->SetBinContent(23,3065.714); h_SL2L467->SetBinContent(24,3321.429); h_SL2L467->SetBinContent(25,4338.571); h_SL2L467->SetBinContent(26,17690); h_SL2L467->SetBinContent(27,37222.86); h_SL2L467->SetBinContent(28,48007.14); h_SL2L467->SetBinContent(29,52985.71); h_SL2L467->SetBinContent(30,53374.29); h_SL2L467->SetBinContent(31,48232.86); h_SL2L467->SetBinContent(32,46577.14); h_SL2L467->SetBinContent(33,46664.29); h_SL2L467->SetBinContent(34,39421.43); h_SL2L467->SetBinContent(35,13430); h_SL2L467->SetBinContent(36,4845.714); h_SL2L467->SetBinContent(37,3275.714); h_SL2L467->SetBinContent(38,2528.572); h_SL2L467->SetBinContent(39,2102.857); h_SL2L467->SetBinContent(40,1867.143); h_SL2L467->SetBinContent(41,1578.571); h_SL2L467->SetBinContent(42,1464.286); h_SL2L467->SetBinContent(43,1422.857); h_SL2L467->SetBinContent(44,1270); h_SL2L467->SetBinContent(45,1171.429); h_SL2L467->SetBinContent(46,1118.571); h_SL2L467->SetBinContent(47,995.7143); h_SL2L467->SetBinContent(48,892.8572); h_SL2L467->SetBinContent(49,758.5715); h_SL2L467->SetBinContent(50,641.4286); h_SL2L467->SetBinContent(51,652.8572); h_SL2L467->SetBinContent(52,671.4286); h_SL2L467->SetBinContent(53,607.1429); h_SL2L467->SetBinContent(54,574.2857); h_SL2L467->SetBinContent(55,548.5714); h_SL2L467->SetBinContent(56,502.8571); h_SL2L467->SetBinContent(57,410); h_SL2L467->SetMaximum(61470.79); 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 5183"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }