void RatesPerCell_Removing_noisy_cells_run_4977_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:08:47 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9131.863,67.5,82186.76); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4977",60,0,60); h_SL2L164->SetBinContent(1,657.8572); h_SL2L164->SetBinContent(2,772.1429); h_SL2L164->SetBinContent(3,927.1429); h_SL2L164->SetBinContent(4,976.4286); h_SL2L164->SetBinContent(5,993.5715); h_SL2L164->SetBinContent(6,1064.286); h_SL2L164->SetBinContent(7,1087.857); h_SL2L164->SetBinContent(8,1165.714); h_SL2L164->SetBinContent(9,1307.857); h_SL2L164->SetBinContent(10,1468.571); h_SL2L164->SetBinContent(11,1532.857); h_SL2L164->SetBinContent(12,1719.286); h_SL2L164->SetBinContent(13,1851.429); h_SL2L164->SetBinContent(14,1922.857); h_SL2L164->SetBinContent(15,2078.572); h_SL2L164->SetBinContent(16,2277.143); h_SL2L164->SetBinContent(17,2358.572); h_SL2L164->SetBinContent(18,2632.857); h_SL2L164->SetBinContent(19,2879.286); h_SL2L164->SetBinContent(20,3034.286); h_SL2L164->SetBinContent(21,3305); h_SL2L164->SetBinContent(22,3453.572); h_SL2L164->SetBinContent(23,3865); h_SL2L164->SetBinContent(24,4215.714); h_SL2L164->SetBinContent(25,9139.286); h_SL2L164->SetBinContent(26,28958.57); h_SL2L164->SetBinContent(27,44263.57); h_SL2L164->SetBinContent(28,52331.43); h_SL2L164->SetBinContent(29,55240.71); h_SL2L164->SetBinContent(30,52922.86); h_SL2L164->SetBinContent(31,48637.14); h_SL2L164->SetBinContent(32,49187.86); h_SL2L164->SetBinContent(33,48069.29); h_SL2L164->SetBinContent(34,27146.43); h_SL2L164->SetBinContent(35,2.142857); h_SL2L164->SetBinContent(36,4707.857); h_SL2L164->SetBinContent(37,9087.857); h_SL2L164->SetBinContent(38,5457.143); h_SL2L164->SetBinContent(39,7461.429); h_SL2L164->SetBinContent(40,33917.14); h_SL2L164->SetBinContent(41,9437.144); h_SL2L164->SetBinContent(42,10007.14); h_SL2L164->SetBinContent(43,9932.857); h_SL2L164->SetBinContent(44,10111.43); h_SL2L164->SetBinContent(45,1505.714); h_SL2L164->SetBinContent(46,1318.571); h_SL2L164->SetBinContent(47,1203.571); h_SL2L164->SetBinContent(48,1087.143); h_SL2L164->SetBinContent(49,1032.857); h_SL2L164->SetBinContent(50,946.4286); h_SL2L164->SetBinContent(51,908.5715); h_SL2L164->SetBinContent(52,831.4286); h_SL2L164->SetBinContent(53,794.2857); h_SL2L164->SetBinContent(54,722.1429); h_SL2L164->SetBinContent(55,633.5715); h_SL2L164->SetBinContent(56,570.7143); h_SL2L164->SetBinContent(57,2784.286); h_SL2L164->SetMaximum(73054.9); 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,569.2857); h_SL2L265->SetBinContent(2,712.8572); h_SL2L265->SetBinContent(3,817.8572); h_SL2L265->SetBinContent(4,911.4286); h_SL2L265->SetBinContent(5,960.7143); h_SL2L265->SetBinContent(6,1006.429); h_SL2L265->SetBinContent(7,1033.571); h_SL2L265->SetBinContent(8,1105); h_SL2L265->SetBinContent(9,1245.714); h_SL2L265->SetBinContent(10,1326.429); h_SL2L265->SetBinContent(11,1428.571); h_SL2L265->SetBinContent(12,1559.286); h_SL2L265->SetBinContent(13,1763.571); h_SL2L265->SetBinContent(14,1872.857); h_SL2L265->SetBinContent(15,1974.286); h_SL2L265->SetBinContent(16,2170); h_SL2L265->SetBinContent(17,2225.714); h_SL2L265->SetBinContent(18,2470.714); h_SL2L265->SetBinContent(19,2645.714); h_SL2L265->SetBinContent(20,2953.572); h_SL2L265->SetBinContent(21,3108.572); h_SL2L265->SetBinContent(22,3330); h_SL2L265->SetBinContent(23,3528.572); h_SL2L265->SetBinContent(24,3903.572); h_SL2L265->SetBinContent(25,4784.286); h_SL2L265->SetBinContent(26,18304.29); h_SL2L265->SetBinContent(27,37550); h_SL2L265->SetBinContent(28,48831.43); h_SL2L265->SetBinContent(29,53965.71); h_SL2L265->SetBinContent(30,54182.86); h_SL2L265->SetBinContent(31,49778.57); h_SL2L265->SetBinContent(32,48710); h_SL2L265->SetBinContent(33,49117.14); h_SL2L265->SetBinContent(34,41466.43); h_SL2L265->SetBinContent(35,14118.57); h_SL2L265->SetBinContent(36,5349.286); h_SL2L265->SetBinContent(37,3692.857); h_SL2L265->SetBinContent(38,3047.143); h_SL2L265->SetBinContent(39,4275.714); h_SL2L265->SetBinContent(40,5741.429); h_SL2L265->SetBinContent(41,2384.286); h_SL2L265->SetBinContent(42,2657.857); h_SL2L265->SetBinContent(43,1941.429); h_SL2L265->SetBinContent(44,3026.429); h_SL2L265->SetBinContent(45,1472.857); h_SL2L265->SetBinContent(46,1368.571); h_SL2L265->SetBinContent(47,1211.429); h_SL2L265->SetBinContent(48,1115.714); h_SL2L265->SetBinContent(49,1032.857); h_SL2L265->SetBinContent(50,931.4286); h_SL2L265->SetBinContent(51,884.2857); h_SL2L265->SetBinContent(52,849.2857); h_SL2L265->SetBinContent(53,779.2857); h_SL2L265->SetBinContent(54,748.5715); h_SL2L265->SetBinContent(55,705); h_SL2L265->SetBinContent(56,595.7143); h_SL2L265->SetBinContent(57,559.2857); h_SL2L265->SetMaximum(63526.82); 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,627.8572); h_SL2L366->SetBinContent(2,753.5715); h_SL2L366->SetBinContent(3,885); h_SL2L366->SetBinContent(4,889.2857); h_SL2L366->SetBinContent(5,935.7143); h_SL2L366->SetBinContent(6,992.1429); h_SL2L366->SetBinContent(7,1047.857); h_SL2L366->SetBinContent(8,1131.429); h_SL2L366->SetBinContent(9,1250.714); h_SL2L366->SetBinContent(10,1367.143); h_SL2L366->SetBinContent(11,1454.286); h_SL2L366->SetBinContent(12,1610.714); h_SL2L366->SetBinContent(13,1746.429); h_SL2L366->SetBinContent(14,1845); h_SL2L366->SetBinContent(15,2045.714); h_SL2L366->SetBinContent(16,2168.572); h_SL2L366->SetBinContent(17,2240.714); h_SL2L366->SetBinContent(18,2434.286); h_SL2L366->SetBinContent(19,2738.572); h_SL2L366->SetBinContent(20,2947.143); h_SL2L366->SetBinContent(21,3156.429); h_SL2L366->SetBinContent(22,3335.714); h_SL2L366->SetBinContent(23,3692.857); h_SL2L366->SetBinContent(24,4060.714); h_SL2L366->SetBinContent(25,8955); h_SL2L366->SetBinContent(26,28895.71); h_SL2L366->SetBinContent(27,44084.29); h_SL2L366->SetBinContent(28,52042.14); h_SL2L366->SetBinContent(29,54335); h_SL2L366->SetBinContent(30,52663.57); h_SL2L366->SetBinContent(31,48667.86); h_SL2L366->SetBinContent(32,49172.14); h_SL2L366->SetBinContent(33,47876.43); h_SL2L366->SetBinContent(34,27150.71); h_SL2L366->SetBinContent(35,7588.572); h_SL2L366->SetBinContent(36,4327.857); h_SL2L366->SetBinContent(37,3232.857); h_SL2L366->SetBinContent(38,2676.429); h_SL2L366->SetBinContent(39,2391.429); h_SL2L366->SetBinContent(40,3965.714); h_SL2L366->SetBinContent(41,1882.143); h_SL2L366->SetBinContent(42,1760); h_SL2L366->SetBinContent(43,1585); h_SL2L366->SetBinContent(44,1487.857); h_SL2L366->SetBinContent(45,1382.143); h_SL2L366->SetBinContent(46,1256.429); h_SL2L366->SetBinContent(47,1163.571); h_SL2L366->SetBinContent(48,1015.714); h_SL2L366->SetBinContent(49,991.4286); h_SL2L366->SetBinContent(50,877.8572); h_SL2L366->SetBinContent(51,821.4286); h_SL2L366->SetBinContent(52,777.1429); h_SL2L366->SetBinContent(53,728.5715); h_SL2L366->SetBinContent(54,696.4286); h_SL2L366->SetBinContent(55,607.1429); h_SL2L366->SetBinContent(56,540.7143); h_SL2L366->SetBinContent(57,512.8572); h_SL2L366->SetMaximum(63526.82); 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,662.8572); h_SL2L467->SetBinContent(3,819.2857); h_SL2L467->SetBinContent(4,855.7143); h_SL2L467->SetBinContent(5,904.2857); h_SL2L467->SetBinContent(6,933.5715); h_SL2L467->SetBinContent(7,984.2858); h_SL2L467->SetBinContent(8,1065.714); h_SL2L467->SetBinContent(9,1164.286); h_SL2L467->SetBinContent(10,1220.714); h_SL2L467->SetBinContent(11,1365); h_SL2L467->SetBinContent(12,1483.571); h_SL2L467->SetBinContent(13,1630.714); h_SL2L467->SetBinContent(14,1767.857); h_SL2L467->SetBinContent(15,1840); h_SL2L467->SetBinContent(16,2060); h_SL2L467->SetBinContent(17,2136.429); h_SL2L467->SetBinContent(18,2285); h_SL2L467->SetBinContent(19,2540.714); h_SL2L467->SetBinContent(20,2922.143); h_SL2L467->SetBinContent(21,2965); h_SL2L467->SetBinContent(22,3198.572); h_SL2L467->SetBinContent(23,3405.714); h_SL2L467->SetBinContent(24,3737.143); h_SL2L467->SetBinContent(25,4593.572); h_SL2L467->SetBinContent(26,18283.57); h_SL2L467->SetBinContent(27,37774.29); h_SL2L467->SetBinContent(28,48592.14); h_SL2L467->SetBinContent(29,53834.29); h_SL2L467->SetBinContent(30,54732.86); h_SL2L467->SetBinContent(31,49952.14); h_SL2L467->SetBinContent(32,48867.14); h_SL2L467->SetBinContent(33,49237.14); h_SL2L467->SetBinContent(34,41553.57); h_SL2L467->SetBinContent(35,14087.14); h_SL2L467->SetBinContent(36,5176.429); h_SL2L467->SetBinContent(37,3590.714); h_SL2L467->SetBinContent(38,2862.857); h_SL2L467->SetBinContent(39,2481.429); h_SL2L467->SetBinContent(40,2173.572); h_SL2L467->SetBinContent(41,1980.714); h_SL2L467->SetBinContent(42,1808.571); h_SL2L467->SetBinContent(43,1590.714); h_SL2L467->SetBinContent(44,1518.571); h_SL2L467->SetBinContent(45,1395.714); h_SL2L467->SetBinContent(46,1280.714); h_SL2L467->SetBinContent(47,1175.714); h_SL2L467->SetBinContent(48,1007.857); h_SL2L467->SetBinContent(49,982.1429); h_SL2L467->SetBinContent(50,872.1429); h_SL2L467->SetBinContent(51,828.5715); h_SL2L467->SetBinContent(52,782.1429); h_SL2L467->SetBinContent(53,708.5715); h_SL2L467->SetBinContent(54,692.8572); h_SL2L467->SetBinContent(55,653.5715); h_SL2L467->SetBinContent(56,574.2857); h_SL2L467->SetBinContent(57,527.1429); h_SL2L467->SetMaximum(63526.82); 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 4977"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }