void RatesPerCell_Removing_noisy_cells_run_5362_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:31:33 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8921.126,67.5,80290.13); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5362",60,0,60); h_SL2L164->SetBinContent(1,608.5715); h_SL2L164->SetBinContent(2,730); h_SL2L164->SetBinContent(3,890); h_SL2L164->SetBinContent(4,864.2857); h_SL2L164->SetBinContent(5,932.8572); h_SL2L164->SetBinContent(6,990); h_SL2L164->SetBinContent(7,908.5715); h_SL2L164->SetBinContent(8,1070); h_SL2L164->SetBinContent(9,1101.429); h_SL2L164->SetBinContent(10,1257.143); h_SL2L164->SetBinContent(11,1381.429); h_SL2L164->SetBinContent(12,1470); h_SL2L164->SetBinContent(13,1562.857); h_SL2L164->SetBinContent(14,1642.857); h_SL2L164->SetBinContent(15,1738.571); h_SL2L164->SetBinContent(16,1848.572); h_SL2L164->SetBinContent(17,2110); h_SL2L164->SetBinContent(18,2185.714); h_SL2L164->SetBinContent(19,2344.286); h_SL2L164->SetBinContent(20,2661.429); h_SL2L164->SetBinContent(21,2674.286); h_SL2L164->SetBinContent(22,3072.857); h_SL2L164->SetBinContent(23,3205.714); h_SL2L164->SetBinContent(24,3358.572); h_SL2L164->SetBinContent(25,7570); h_SL2L164->SetBinContent(26,25088.57); h_SL2L164->SetBinContent(27,39470); h_SL2L164->SetBinContent(28,43272.86); h_SL2L164->SetBinContent(29,47178.57); h_SL2L164->SetBinContent(30,44161.43); h_SL2L164->SetBinContent(31,40682.86); h_SL2L164->SetBinContent(32,38755.71); h_SL2L164->SetBinContent(33,38421.43); h_SL2L164->SetBinContent(34,21490); h_SL2L164->SetBinContent(35,30); h_SL2L164->SetBinContent(36,3687.143); h_SL2L164->SetBinContent(37,2841.429); h_SL2L164->SetBinContent(38,2292.857); h_SL2L164->SetBinContent(39,2140); h_SL2L164->SetBinContent(40,1347.143); h_SL2L164->SetBinContent(41,1498.571); h_SL2L164->SetBinContent(42,1452.857); h_SL2L164->SetBinContent(43,1388.571); h_SL2L164->SetBinContent(44,1308.571); h_SL2L164->SetBinContent(45,1270); h_SL2L164->SetBinContent(46,1158.571); h_SL2L164->SetBinContent(47,1085.714); h_SL2L164->SetBinContent(48,1010); h_SL2L164->SetBinContent(49,940); h_SL2L164->SetBinContent(50,920); h_SL2L164->SetBinContent(51,885.7143); h_SL2L164->SetBinContent(52,774.2857); h_SL2L164->SetBinContent(53,804.2857); h_SL2L164->SetBinContent(54,731.4286); h_SL2L164->SetBinContent(55,675.7143); h_SL2L164->SetBinContent(56,544.2857); h_SL2L164->SetBinContent(57,674.2857); h_SL2L164->SetMaximum(71369); 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,678.5715); h_SL2L265->SetBinContent(2,772.8572); h_SL2L265->SetBinContent(3,900); h_SL2L265->SetBinContent(4,992.8572); h_SL2L265->SetBinContent(5,1002.857); h_SL2L265->SetBinContent(6,1102.857); h_SL2L265->SetBinContent(7,1077.143); h_SL2L265->SetBinContent(8,1127.143); h_SL2L265->SetBinContent(9,1322.857); h_SL2L265->SetBinContent(10,1414.286); h_SL2L265->SetBinContent(11,1522.857); h_SL2L265->SetBinContent(12,1761.429); h_SL2L265->SetBinContent(13,1831.429); h_SL2L265->SetBinContent(14,1951.429); h_SL2L265->SetBinContent(15,2055.714); h_SL2L265->SetBinContent(16,2198.572); h_SL2L265->SetBinContent(17,2264.286); h_SL2L265->SetBinContent(18,2610); h_SL2L265->SetBinContent(19,2631.429); h_SL2L265->SetBinContent(20,2904.286); h_SL2L265->SetBinContent(21,3158.572); h_SL2L265->SetBinContent(22,3225.714); h_SL2L265->SetBinContent(23,3658.572); h_SL2L265->SetBinContent(24,3815.714); h_SL2L265->SetBinContent(25,4727.143); h_SL2L265->SetBinContent(26,18910); h_SL2L265->SetBinContent(27,38670); h_SL2L265->SetBinContent(28,49481.43); h_SL2L265->SetBinContent(29,53725.71); h_SL2L265->SetBinContent(30,53348.57); h_SL2L265->SetBinContent(31,48695.71); h_SL2L265->SetBinContent(32,46868.57); h_SL2L265->SetBinContent(33,46915.71); h_SL2L265->SetBinContent(34,39150); h_SL2L265->SetBinContent(35,13998.57); h_SL2L265->SetBinContent(36,5358.572); h_SL2L265->SetBinContent(37,3832.857); h_SL2L265->SetBinContent(38,3058.572); h_SL2L265->SetBinContent(39,2621.429); h_SL2L265->SetBinContent(40,2350); h_SL2L265->SetBinContent(41,2065.714); h_SL2L265->SetBinContent(42,1975.714); h_SL2L265->SetBinContent(43,1730); h_SL2L265->SetBinContent(44,1562.857); h_SL2L265->SetBinContent(45,1501.429); h_SL2L265->SetBinContent(46,1380); h_SL2L265->SetBinContent(47,1340); h_SL2L265->SetBinContent(48,1198.571); h_SL2L265->SetBinContent(49,1168.571); h_SL2L265->SetBinContent(50,1022.857); h_SL2L265->SetBinContent(51,1030); h_SL2L265->SetBinContent(52,921.4286); h_SL2L265->SetBinContent(53,935.7143); h_SL2L265->SetBinContent(54,870); h_SL2L265->SetBinContent(55,847.1429); h_SL2L265->SetBinContent(56,751.4286); h_SL2L265->SetBinContent(57,695.7143); h_SL2L265->SetMaximum(62060.57); 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,678.5715); h_SL2L366->SetBinContent(2,834.2857); h_SL2L366->SetBinContent(3,984.2858); h_SL2L366->SetBinContent(4,998.5715); h_SL2L366->SetBinContent(5,1037.143); h_SL2L366->SetBinContent(6,1105.714); h_SL2L366->SetBinContent(7,1095.714); h_SL2L366->SetBinContent(8,1195.714); h_SL2L366->SetBinContent(9,1344.286); h_SL2L366->SetBinContent(10,1410); h_SL2L366->SetBinContent(11,1631.429); h_SL2L366->SetBinContent(12,1712.857); h_SL2L366->SetBinContent(13,1855.714); h_SL2L366->SetBinContent(14,1845.714); h_SL2L366->SetBinContent(15,2080); h_SL2L366->SetBinContent(16,2154.286); h_SL2L366->SetBinContent(17,2421.429); h_SL2L366->SetBinContent(18,2562.857); h_SL2L366->SetBinContent(19,2718.572); h_SL2L366->SetBinContent(20,2998.572); h_SL2L366->SetBinContent(21,3074.286); h_SL2L366->SetBinContent(22,3471.429); h_SL2L366->SetBinContent(23,3665.714); h_SL2L366->SetBinContent(24,3947.143); h_SL2L366->SetBinContent(25,9244.286); h_SL2L366->SetBinContent(26,29631.43); h_SL2L366->SetBinContent(27,45237.14); h_SL2L366->SetBinContent(28,51907.14); h_SL2L366->SetBinContent(29,53965.71); h_SL2L366->SetBinContent(30,51310); h_SL2L366->SetBinContent(31,47304.29); h_SL2L366->SetBinContent(32,46934.29); h_SL2L366->SetBinContent(33,45587.14); h_SL2L366->SetBinContent(34,26015.71); h_SL2L366->SetBinContent(35,7611.429); h_SL2L366->SetBinContent(36,4447.143); h_SL2L366->SetBinContent(37,3208.572); h_SL2L366->SetBinContent(38,2745.714); h_SL2L366->SetBinContent(39,2462.857); h_SL2L366->SetBinContent(40,1998.572); h_SL2L366->SetBinContent(41,1991.429); h_SL2L366->SetBinContent(42,1732.857); h_SL2L366->SetBinContent(43,1600); h_SL2L366->SetBinContent(44,1515.714); h_SL2L366->SetBinContent(45,1424.286); h_SL2L366->SetBinContent(46,1325.714); h_SL2L366->SetBinContent(47,1240); h_SL2L366->SetBinContent(48,1190); h_SL2L366->SetBinContent(49,1015.714); h_SL2L366->SetBinContent(50,1025.714); h_SL2L366->SetBinContent(51,954.2858); h_SL2L366->SetBinContent(52,910); h_SL2L366->SetBinContent(53,877.1429); h_SL2L366->SetBinContent(54,804.2857); h_SL2L366->SetBinContent(55,788.5715); h_SL2L366->SetBinContent(56,762.8572); h_SL2L366->SetBinContent(57,572.8572); h_SL2L366->SetMaximum(62060.57); 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,761.4286); h_SL2L467->SetBinContent(3,921.4286); h_SL2L467->SetBinContent(4,974.2858); h_SL2L467->SetBinContent(5,1027.143); h_SL2L467->SetBinContent(6,1080); h_SL2L467->SetBinContent(7,1021.429); h_SL2L467->SetBinContent(8,1084.286); h_SL2L467->SetBinContent(9,1311.429); h_SL2L467->SetBinContent(10,1305.714); h_SL2L467->SetBinContent(11,1435.714); h_SL2L467->SetBinContent(12,1668.571); h_SL2L467->SetBinContent(13,1698.571); h_SL2L467->SetBinContent(14,1848.572); h_SL2L467->SetBinContent(15,1972.857); h_SL2L467->SetBinContent(16,2077.143); h_SL2L467->SetBinContent(17,2137.143); h_SL2L467->SetBinContent(18,2497.143); h_SL2L467->SetBinContent(19,2538.572); h_SL2L467->SetBinContent(20,2792.857); h_SL2L467->SetBinContent(21,3021.429); h_SL2L467->SetBinContent(22,3214.286); h_SL2L467->SetBinContent(23,3554.286); h_SL2L467->SetBinContent(24,3727.143); h_SL2L467->SetBinContent(25,4588.572); h_SL2L467->SetBinContent(26,18830); h_SL2L467->SetBinContent(27,38574.29); h_SL2L467->SetBinContent(28,49462.86); h_SL2L467->SetBinContent(29,53778.57); h_SL2L467->SetBinContent(30,53470); h_SL2L467->SetBinContent(31,48644.29); h_SL2L467->SetBinContent(32,46945.71); h_SL2L467->SetBinContent(33,46974.29); h_SL2L467->SetBinContent(34,39325.71); h_SL2L467->SetBinContent(35,13958.57); h_SL2L467->SetBinContent(36,5332.857); h_SL2L467->SetBinContent(37,3730); h_SL2L467->SetBinContent(38,2902.857); h_SL2L467->SetBinContent(39,2470); h_SL2L467->SetBinContent(40,2248.572); h_SL2L467->SetBinContent(41,1942.857); h_SL2L467->SetBinContent(42,1871.429); h_SL2L467->SetBinContent(43,1627.143); h_SL2L467->SetBinContent(44,1478.571); h_SL2L467->SetBinContent(45,1480); h_SL2L467->SetBinContent(46,1328.571); h_SL2L467->SetBinContent(47,1281.429); h_SL2L467->SetBinContent(48,1135.714); h_SL2L467->SetBinContent(49,1101.429); h_SL2L467->SetBinContent(50,1002.857); h_SL2L467->SetBinContent(51,991.4286); h_SL2L467->SetBinContent(52,848.5715); h_SL2L467->SetBinContent(53,860); h_SL2L467->SetBinContent(54,840); h_SL2L467->SetBinContent(55,801.4286); h_SL2L467->SetBinContent(56,740); h_SL2L467->SetBinContent(57,684.2857); h_SL2L467->SetMaximum(62060.57); 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 5362"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }