void RatesPerCell_Removing_noisy_cells_run_5398_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:31:18 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8681.494,67.5,78133.44); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5398",60,0,60); h_SL2L164->SetBinContent(1,735.7143); h_SL2L164->SetBinContent(2,877.1429); h_SL2L164->SetBinContent(3,1014.286); h_SL2L164->SetBinContent(4,1060); h_SL2L164->SetBinContent(5,1087.143); h_SL2L164->SetBinContent(6,1101.429); h_SL2L164->SetBinContent(7,1091.429); h_SL2L164->SetBinContent(8,1291.429); h_SL2L164->SetBinContent(9,1448.571); h_SL2L164->SetBinContent(10,1461.429); h_SL2L164->SetBinContent(11,1648.571); h_SL2L164->SetBinContent(12,1734.286); h_SL2L164->SetBinContent(13,1920); h_SL2L164->SetBinContent(14,2110); h_SL2L164->SetBinContent(15,2160); h_SL2L164->SetBinContent(16,2444.286); h_SL2L164->SetBinContent(17,2515.714); h_SL2L164->SetBinContent(18,2670); h_SL2L164->SetBinContent(19,2887.143); h_SL2L164->SetBinContent(20,3021.429); h_SL2L164->SetBinContent(21,3218.572); h_SL2L164->SetBinContent(22,3511.429); h_SL2L164->SetBinContent(23,3840); h_SL2L164->SetBinContent(24,4127.143); h_SL2L164->SetBinContent(25,8897.144); h_SL2L164->SetBinContent(26,28831.43); h_SL2L164->SetBinContent(27,43848.57); h_SL2L164->SetBinContent(28,49804.29); h_SL2L164->SetBinContent(29,52515.71); h_SL2L164->SetBinContent(30,50444.29); h_SL2L164->SetBinContent(31,46430); h_SL2L164->SetBinContent(32,46528.57); h_SL2L164->SetBinContent(33,44421.43); h_SL2L164->SetBinContent(34,25651.43); h_SL2L164->SetBinContent(36,4411.429); h_SL2L164->SetBinContent(37,3281.429); h_SL2L164->SetBinContent(38,2822.857); h_SL2L164->SetBinContent(39,2437.143); h_SL2L164->SetBinContent(40,1748.571); h_SL2L164->SetBinContent(41,1860); h_SL2L164->SetBinContent(42,1870); h_SL2L164->SetBinContent(43,1710); h_SL2L164->SetBinContent(44,1604.286); h_SL2L164->SetBinContent(45,1485.714); h_SL2L164->SetBinContent(46,1434.286); h_SL2L164->SetBinContent(47,1348.571); h_SL2L164->SetBinContent(48,1247.143); h_SL2L164->SetBinContent(49,1100); h_SL2L164->SetBinContent(50,1008.571); h_SL2L164->SetBinContent(51,1024.286); h_SL2L164->SetBinContent(52,1007.143); h_SL2L164->SetBinContent(53,984.2858); h_SL2L164->SetBinContent(54,1017.143); h_SL2L164->SetBinContent(55,922.8572); h_SL2L164->SetBinContent(56,784.2857); h_SL2L164->SetBinContent(57,772.8572); h_SL2L164->SetMaximum(69451.95); 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,700); h_SL2L265->SetBinContent(2,790); h_SL2L265->SetBinContent(3,911.4286); h_SL2L265->SetBinContent(4,1061.429); h_SL2L265->SetBinContent(5,1025.714); h_SL2L265->SetBinContent(6,1095.714); h_SL2L265->SetBinContent(7,1021.429); h_SL2L265->SetBinContent(8,1161.429); h_SL2L265->SetBinContent(9,1358.571); h_SL2L265->SetBinContent(10,1365.714); h_SL2L265->SetBinContent(11,1430); h_SL2L265->SetBinContent(12,1635.714); h_SL2L265->SetBinContent(13,1768.571); h_SL2L265->SetBinContent(14,1937.143); h_SL2L265->SetBinContent(15,2170); h_SL2L265->SetBinContent(16,2231.429); h_SL2L265->SetBinContent(17,2348.572); h_SL2L265->SetBinContent(18,2551.429); h_SL2L265->SetBinContent(19,2705.714); h_SL2L265->SetBinContent(20,2961.429); h_SL2L265->SetBinContent(21,3085.714); h_SL2L265->SetBinContent(22,3317.143); h_SL2L265->SetBinContent(23,3577.143); h_SL2L265->SetBinContent(24,3864.286); h_SL2L265->SetBinContent(25,4565.714); h_SL2L265->SetBinContent(26,18498.57); h_SL2L265->SetBinContent(27,37211.43); h_SL2L265->SetBinContent(28,46904.29); h_SL2L265->SetBinContent(29,51174.29); h_SL2L265->SetBinContent(30,51740); h_SL2L265->SetBinContent(31,46842.86); h_SL2L265->SetBinContent(32,45685.71); h_SL2L265->SetBinContent(33,45571.43); h_SL2L265->SetBinContent(34,37798.57); h_SL2L265->SetBinContent(35,13591.43); h_SL2L265->SetBinContent(36,5208.572); h_SL2L265->SetBinContent(37,3677.143); h_SL2L265->SetBinContent(38,2942.857); h_SL2L265->SetBinContent(39,2631.429); h_SL2L265->SetBinContent(40,2168.572); h_SL2L265->SetBinContent(41,1991.429); h_SL2L265->SetBinContent(42,1815.714); h_SL2L265->SetBinContent(43,1772.857); h_SL2L265->SetBinContent(44,1561.429); h_SL2L265->SetBinContent(45,1545.714); h_SL2L265->SetBinContent(46,1360); h_SL2L265->SetBinContent(47,1278.571); h_SL2L265->SetBinContent(48,1201.429); h_SL2L265->SetBinContent(49,1131.429); h_SL2L265->SetBinContent(50,1064.286); h_SL2L265->SetBinContent(51,985.7143); h_SL2L265->SetBinContent(52,962.8572); h_SL2L265->SetBinContent(53,978.5715); h_SL2L265->SetBinContent(54,1008.571); h_SL2L265->SetBinContent(55,937.1429); h_SL2L265->SetBinContent(56,820); h_SL2L265->SetBinContent(57,718.5715); h_SL2L265->SetMaximum(60393.07); 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,721.4286); h_SL2L366->SetBinContent(2,812.8572); h_SL2L366->SetBinContent(3,985.7143); h_SL2L366->SetBinContent(4,1010); h_SL2L366->SetBinContent(5,1070); h_SL2L366->SetBinContent(6,1022.857); h_SL2L366->SetBinContent(7,1002.857); h_SL2L366->SetBinContent(8,1184.286); h_SL2L366->SetBinContent(9,1328.571); h_SL2L366->SetBinContent(10,1345.714); h_SL2L366->SetBinContent(11,1468.571); h_SL2L366->SetBinContent(12,1628.571); h_SL2L366->SetBinContent(13,1752.857); h_SL2L366->SetBinContent(14,2021.429); h_SL2L366->SetBinContent(15,2034.286); h_SL2L366->SetBinContent(16,2257.143); h_SL2L366->SetBinContent(17,2380); h_SL2L366->SetBinContent(18,2492.857); h_SL2L366->SetBinContent(19,2767.143); h_SL2L366->SetBinContent(20,2858.572); h_SL2L366->SetBinContent(21,3267.143); h_SL2L366->SetBinContent(22,3372.857); h_SL2L366->SetBinContent(23,3564.286); h_SL2L366->SetBinContent(24,3982.857); h_SL2L366->SetBinContent(25,8760); h_SL2L366->SetBinContent(26,28640); h_SL2L366->SetBinContent(27,43297.14); h_SL2L366->SetBinContent(28,49335.71); h_SL2L366->SetBinContent(29,51724.29); h_SL2L366->SetBinContent(30,49742.86); h_SL2L366->SetBinContent(31,45830); h_SL2L366->SetBinContent(32,45940); h_SL2L366->SetBinContent(33,43822.86); h_SL2L366->SetBinContent(34,25421.43); h_SL2L366->SetBinContent(35,7292.857); h_SL2L366->SetBinContent(36,4352.857); h_SL2L366->SetBinContent(37,3091.429); h_SL2L366->SetBinContent(38,2712.857); h_SL2L366->SetBinContent(39,2301.429); h_SL2L366->SetBinContent(40,1984.286); h_SL2L366->SetBinContent(41,1924.286); h_SL2L366->SetBinContent(42,1741.429); h_SL2L366->SetBinContent(43,1654.286); h_SL2L366->SetBinContent(44,1470); h_SL2L366->SetBinContent(45,1404.286); h_SL2L366->SetBinContent(46,1357.143); h_SL2L366->SetBinContent(47,1231.429); h_SL2L366->SetBinContent(48,1147.143); h_SL2L366->SetBinContent(49,1070); h_SL2L366->SetBinContent(50,930); h_SL2L366->SetBinContent(51,957.1429); h_SL2L366->SetBinContent(52,938.5715); h_SL2L366->SetBinContent(53,935.7143); h_SL2L366->SetBinContent(54,970); h_SL2L366->SetBinContent(55,897.1429); h_SL2L366->SetBinContent(56,737.1429); h_SL2L366->SetBinContent(57,752.8572); h_SL2L366->SetMaximum(60393.07); 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,778.5715); h_SL2L467->SetBinContent(3,867.1429); h_SL2L467->SetBinContent(4,1024.286); h_SL2L467->SetBinContent(5,984.2858); h_SL2L467->SetBinContent(6,1028.571); h_SL2L467->SetBinContent(7,981.4286); h_SL2L467->SetBinContent(8,1084.286); h_SL2L467->SetBinContent(9,1282.857); h_SL2L467->SetBinContent(10,1334.286); h_SL2L467->SetBinContent(11,1317.143); h_SL2L467->SetBinContent(12,1497.143); h_SL2L467->SetBinContent(13,1710); h_SL2L467->SetBinContent(14,1894.286); h_SL2L467->SetBinContent(15,2018.572); h_SL2L467->SetBinContent(16,2088.572); h_SL2L467->SetBinContent(17,2222.857); h_SL2L467->SetBinContent(18,2434.286); h_SL2L467->SetBinContent(19,2625.714); h_SL2L467->SetBinContent(20,2904.286); h_SL2L467->SetBinContent(21,2900); h_SL2L467->SetBinContent(22,3202.857); h_SL2L467->SetBinContent(23,3510); h_SL2L467->SetBinContent(24,3794.286); h_SL2L467->SetBinContent(25,4347.143); h_SL2L467->SetBinContent(26,18351.43); h_SL2L467->SetBinContent(27,37360); h_SL2L467->SetBinContent(28,46844.29); h_SL2L467->SetBinContent(29,51437.14); h_SL2L467->SetBinContent(30,52328.57); h_SL2L467->SetBinContent(31,46955.71); h_SL2L467->SetBinContent(32,46405.71); h_SL2L467->SetBinContent(33,45364.29); h_SL2L467->SetBinContent(34,38077.14); h_SL2L467->SetBinContent(35,13552.86); h_SL2L467->SetBinContent(36,5144.286); h_SL2L467->SetBinContent(37,3565.714); h_SL2L467->SetBinContent(38,2790); h_SL2L467->SetBinContent(39,2515.714); h_SL2L467->SetBinContent(40,2101.429); h_SL2L467->SetBinContent(41,1901.429); h_SL2L467->SetBinContent(42,1835.714); h_SL2L467->SetBinContent(43,1730); h_SL2L467->SetBinContent(44,1542.857); h_SL2L467->SetBinContent(45,1488.571); h_SL2L467->SetBinContent(46,1324.286); h_SL2L467->SetBinContent(47,1262.857); h_SL2L467->SetBinContent(48,1174.286); h_SL2L467->SetBinContent(49,1050); h_SL2L467->SetBinContent(50,1030); h_SL2L467->SetBinContent(51,951.4286); h_SL2L467->SetBinContent(52,895.7143); h_SL2L467->SetBinContent(53,940); h_SL2L467->SetBinContent(54,940); h_SL2L467->SetBinContent(55,877.1429); h_SL2L467->SetBinContent(56,825.7143); h_SL2L467->SetBinContent(57,711.4286); h_SL2L467->SetMaximum(60393.07); 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 5398"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }