void RatesPerCell_Removing_noisy_cells_run_5421_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:24:27 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9599.194,67.5,86392.74); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5421",60,0,60); h_SL2L164->SetBinContent(1,800); h_SL2L164->SetBinContent(2,875.7143); h_SL2L164->SetBinContent(3,931.4286); h_SL2L164->SetBinContent(4,1048.571); h_SL2L164->SetBinContent(5,1077.143); h_SL2L164->SetBinContent(6,1141.429); h_SL2L164->SetBinContent(7,1152.857); h_SL2L164->SetBinContent(8,1234.286); h_SL2L164->SetBinContent(9,1390); h_SL2L164->SetBinContent(10,1550); h_SL2L164->SetBinContent(11,1542.857); h_SL2L164->SetBinContent(12,1815.714); h_SL2L164->SetBinContent(13,1975.714); h_SL2L164->SetBinContent(14,2140); h_SL2L164->SetBinContent(15,2235.714); h_SL2L164->SetBinContent(16,2414.286); h_SL2L164->SetBinContent(17,2611.429); h_SL2L164->SetBinContent(18,2834.286); h_SL2L164->SetBinContent(19,3071.429); h_SL2L164->SetBinContent(20,3274.286); h_SL2L164->SetBinContent(21,3680); h_SL2L164->SetBinContent(22,3817.143); h_SL2L164->SetBinContent(23,4221.429); h_SL2L164->SetBinContent(24,4372.857); h_SL2L164->SetBinContent(25,9092.857); h_SL2L164->SetBinContent(26,31772.86); h_SL2L164->SetBinContent(27,47537.14); h_SL2L164->SetBinContent(28,55791.43); h_SL2L164->SetBinContent(29,58067.14); h_SL2L164->SetBinContent(30,51587.14); h_SL2L164->SetBinContent(31,44487.14); h_SL2L164->SetBinContent(32,42964.29); h_SL2L164->SetBinContent(33,42911.43); h_SL2L164->SetBinContent(34,26605.71); h_SL2L164->SetBinContent(36,4625.714); h_SL2L164->SetBinContent(37,3630); h_SL2L164->SetBinContent(38,2965.714); h_SL2L164->SetBinContent(39,2570); h_SL2L164->SetBinContent(40,1968.572); h_SL2L164->SetBinContent(41,1980); h_SL2L164->SetBinContent(42,1922.857); h_SL2L164->SetBinContent(43,1745.714); h_SL2L164->SetBinContent(44,1588.571); h_SL2L164->SetBinContent(45,1622.857); h_SL2L164->SetBinContent(46,1424.286); h_SL2L164->SetBinContent(47,1371.429); h_SL2L164->SetBinContent(48,1198.571); h_SL2L164->SetBinContent(49,1207.143); h_SL2L164->SetBinContent(50,1055.714); h_SL2L164->SetBinContent(51,1010); h_SL2L164->SetBinContent(52,998.5715); h_SL2L164->SetBinContent(53,1028.571); h_SL2L164->SetBinContent(54,951.4286); h_SL2L164->SetBinContent(55,840); h_SL2L164->SetBinContent(56,782.8572); h_SL2L164->SetBinContent(57,727.1429); h_SL2L164->SetMaximum(76793.55); 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,720); h_SL2L265->SetBinContent(2,797.1429); h_SL2L265->SetBinContent(3,887.1429); h_SL2L265->SetBinContent(4,1011.429); h_SL2L265->SetBinContent(5,1020); h_SL2L265->SetBinContent(6,1102.857); h_SL2L265->SetBinContent(7,1122.857); h_SL2L265->SetBinContent(8,1164.286); h_SL2L265->SetBinContent(9,1288.571); h_SL2L265->SetBinContent(10,1344.286); h_SL2L265->SetBinContent(11,1521.429); h_SL2L265->SetBinContent(12,1662.857); h_SL2L265->SetBinContent(13,1817.143); h_SL2L265->SetBinContent(14,2024.286); h_SL2L265->SetBinContent(15,2185.714); h_SL2L265->SetBinContent(16,2365.714); h_SL2L265->SetBinContent(17,2348.572); h_SL2L265->SetBinContent(18,2738.572); h_SL2L265->SetBinContent(19,2901.429); h_SL2L265->SetBinContent(20,3185.714); h_SL2L265->SetBinContent(21,3430); h_SL2L265->SetBinContent(22,3670); h_SL2L265->SetBinContent(23,3945.714); h_SL2L265->SetBinContent(24,4232.857); h_SL2L265->SetBinContent(25,4881.429); h_SL2L265->SetBinContent(26,19348.57); h_SL2L265->SetBinContent(27,41002.86); h_SL2L265->SetBinContent(28,52130); h_SL2L265->SetBinContent(29,57651.43); h_SL2L265->SetBinContent(30,55434.29); h_SL2L265->SetBinContent(31,46717.14); h_SL2L265->SetBinContent(32,43072.86); h_SL2L265->SetBinContent(33,42822.86); h_SL2L265->SetBinContent(34,38162.86); h_SL2L265->SetBinContent(35,14565.71); h_SL2L265->SetBinContent(36,5445.714); h_SL2L265->SetBinContent(37,3881.429); h_SL2L265->SetBinContent(38,3180); h_SL2L265->SetBinContent(39,2754.286); h_SL2L265->SetBinContent(40,2305.714); h_SL2L265->SetBinContent(41,2144.286); h_SL2L265->SetBinContent(42,2052.857); h_SL2L265->SetBinContent(43,1752.857); h_SL2L265->SetBinContent(44,1700); h_SL2L265->SetBinContent(45,1544.286); h_SL2L265->SetBinContent(46,1508.571); h_SL2L265->SetBinContent(47,1402.857); h_SL2L265->SetBinContent(48,1307.143); h_SL2L265->SetBinContent(49,1187.143); h_SL2L265->SetBinContent(50,1127.143); h_SL2L265->SetBinContent(51,994.2858); h_SL2L265->SetBinContent(52,1000); h_SL2L265->SetBinContent(53,1014.286); h_SL2L265->SetBinContent(54,971.4286); h_SL2L265->SetBinContent(55,907.1429); h_SL2L265->SetBinContent(56,841.4286); h_SL2L265->SetBinContent(57,747.1429); h_SL2L265->SetMaximum(66777.22); 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,782.8572); h_SL2L366->SetBinContent(2,832.8572); h_SL2L366->SetBinContent(3,897.1429); h_SL2L366->SetBinContent(4,995.7143); h_SL2L366->SetBinContent(5,1045.714); h_SL2L366->SetBinContent(6,1132.857); h_SL2L366->SetBinContent(7,1098.571); h_SL2L366->SetBinContent(8,1164.286); h_SL2L366->SetBinContent(9,1348.571); h_SL2L366->SetBinContent(10,1517.143); h_SL2L366->SetBinContent(11,1495.714); h_SL2L366->SetBinContent(12,1715.714); h_SL2L366->SetBinContent(13,1860); h_SL2L366->SetBinContent(14,2004.286); h_SL2L366->SetBinContent(15,2214.286); h_SL2L366->SetBinContent(16,2248.572); h_SL2L366->SetBinContent(17,2448.572); h_SL2L366->SetBinContent(18,2680); h_SL2L366->SetBinContent(19,2977.143); h_SL2L366->SetBinContent(20,3155.714); h_SL2L366->SetBinContent(21,3495.714); h_SL2L366->SetBinContent(22,3707.143); h_SL2L366->SetBinContent(23,4015.714); h_SL2L366->SetBinContent(24,4264.286); h_SL2L366->SetBinContent(25,8950); h_SL2L366->SetBinContent(26,31762.86); h_SL2L366->SetBinContent(27,47341.43); h_SL2L366->SetBinContent(28,55537.14); h_SL2L366->SetBinContent(29,57637.14); h_SL2L366->SetBinContent(30,51372.86); h_SL2L366->SetBinContent(31,44290); h_SL2L366->SetBinContent(32,42975.71); h_SL2L366->SetBinContent(33,42600); h_SL2L366->SetBinContent(34,26557.14); h_SL2L366->SetBinContent(35,7858.572); h_SL2L366->SetBinContent(36,4372.857); h_SL2L366->SetBinContent(37,3371.429); h_SL2L366->SetBinContent(38,2822.857); h_SL2L366->SetBinContent(39,2440); h_SL2L366->SetBinContent(40,2194.286); h_SL2L366->SetBinContent(41,1977.143); h_SL2L366->SetBinContent(42,1865.714); h_SL2L366->SetBinContent(43,1675.714); h_SL2L366->SetBinContent(44,1575.714); h_SL2L366->SetBinContent(45,1520); h_SL2L366->SetBinContent(46,1352.857); h_SL2L366->SetBinContent(47,1328.571); h_SL2L366->SetBinContent(48,1200); h_SL2L366->SetBinContent(49,1152.857); h_SL2L366->SetBinContent(50,1005.714); h_SL2L366->SetBinContent(51,995.7143); h_SL2L366->SetBinContent(52,1018.571); h_SL2L366->SetBinContent(53,971.4286); h_SL2L366->SetBinContent(54,901.4286); h_SL2L366->SetBinContent(55,808.5715); h_SL2L366->SetBinContent(56,775.7143); h_SL2L366->SetBinContent(57,735.7143); h_SL2L366->SetMaximum(66777.22); 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,808.5715); h_SL2L467->SetBinContent(3,881.4286); h_SL2L467->SetBinContent(4,961.4286); h_SL2L467->SetBinContent(5,930); h_SL2L467->SetBinContent(6,1104.286); h_SL2L467->SetBinContent(7,1091.429); h_SL2L467->SetBinContent(8,1082.857); h_SL2L467->SetBinContent(9,1235.714); h_SL2L467->SetBinContent(10,1365.714); h_SL2L467->SetBinContent(11,1461.429); h_SL2L467->SetBinContent(12,1535.714); h_SL2L467->SetBinContent(13,1675.714); h_SL2L467->SetBinContent(14,1955.714); h_SL2L467->SetBinContent(15,2018.572); h_SL2L467->SetBinContent(16,2210); h_SL2L467->SetBinContent(17,2262.857); h_SL2L467->SetBinContent(18,2582.857); h_SL2L467->SetBinContent(19,2705.714); h_SL2L467->SetBinContent(20,3102.857); h_SL2L467->SetBinContent(21,3234.286); h_SL2L467->SetBinContent(22,3431.429); h_SL2L467->SetBinContent(23,3750); h_SL2L467->SetBinContent(24,3987.143); h_SL2L467->SetBinContent(25,4760); h_SL2L467->SetBinContent(26,19157.14); h_SL2L467->SetBinContent(27,41054.29); h_SL2L467->SetBinContent(28,52190); h_SL2L467->SetBinContent(29,57628.57); h_SL2L467->SetBinContent(30,55804.29); h_SL2L467->SetBinContent(31,46847.14); h_SL2L467->SetBinContent(32,43297.14); h_SL2L467->SetBinContent(33,42901.43); h_SL2L467->SetBinContent(34,38194.29); h_SL2L467->SetBinContent(35,14418.57); h_SL2L467->SetBinContent(36,5242.857); h_SL2L467->SetBinContent(37,3747.143); h_SL2L467->SetBinContent(38,2981.429); h_SL2L467->SetBinContent(39,2585.714); h_SL2L467->SetBinContent(40,2115.714); h_SL2L467->SetBinContent(41,2047.143); h_SL2L467->SetBinContent(42,1904.286); h_SL2L467->SetBinContent(43,1684.286); h_SL2L467->SetBinContent(44,1681.429); h_SL2L467->SetBinContent(45,1402.857); h_SL2L467->SetBinContent(46,1420); h_SL2L467->SetBinContent(47,1292.857); h_SL2L467->SetBinContent(48,1238.571); h_SL2L467->SetBinContent(49,1128.571); h_SL2L467->SetBinContent(50,1052.857); h_SL2L467->SetBinContent(51,964.2858); h_SL2L467->SetBinContent(52,938.5715); h_SL2L467->SetBinContent(53,992.8572); h_SL2L467->SetBinContent(54,915.7143); h_SL2L467->SetBinContent(55,838.5715); h_SL2L467->SetBinContent(56,804.2857); h_SL2L467->SetBinContent(57,707.1429); h_SL2L467->SetMaximum(66777.22); 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 5421"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }