void RatesPerCell_Removing_noisy_cells_run_5359_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:35:38 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9169.094,67.5,82521.84); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5359",60,0,60); h_SL2L164->SetBinContent(1,770); h_SL2L164->SetBinContent(2,907.1429); h_SL2L164->SetBinContent(3,1075.714); h_SL2L164->SetBinContent(4,1098.571); h_SL2L164->SetBinContent(5,1170); h_SL2L164->SetBinContent(6,1220); h_SL2L164->SetBinContent(7,1301.429); h_SL2L164->SetBinContent(8,1402.857); h_SL2L164->SetBinContent(9,1512.857); h_SL2L164->SetBinContent(10,1561.429); h_SL2L164->SetBinContent(11,1742.857); h_SL2L164->SetBinContent(12,1942.857); h_SL2L164->SetBinContent(13,2092.857); h_SL2L164->SetBinContent(14,2238.572); h_SL2L164->SetBinContent(15,2324.286); h_SL2L164->SetBinContent(16,2610); h_SL2L164->SetBinContent(17,2847.143); h_SL2L164->SetBinContent(18,3010); h_SL2L164->SetBinContent(19,3150); h_SL2L164->SetBinContent(20,3431.429); h_SL2L164->SetBinContent(21,3651.429); h_SL2L164->SetBinContent(22,4012.857); h_SL2L164->SetBinContent(23,4318.571); h_SL2L164->SetBinContent(24,4501.429); h_SL2L164->SetBinContent(25,9724.286); h_SL2L164->SetBinContent(26,30937.14); h_SL2L164->SetBinContent(27,46420); h_SL2L164->SetBinContent(28,53785.71); h_SL2L164->SetBinContent(29,55465.71); h_SL2L164->SetBinContent(30,53267.14); h_SL2L164->SetBinContent(31,48981.43); h_SL2L164->SetBinContent(32,47711.43); h_SL2L164->SetBinContent(33,46695.71); h_SL2L164->SetBinContent(34,26754.29); h_SL2L164->SetBinContent(35,87.14286); h_SL2L164->SetBinContent(36,4991.429); h_SL2L164->SetBinContent(37,3835.714); h_SL2L164->SetBinContent(38,3127.143); h_SL2L164->SetBinContent(39,2730); h_SL2L164->SetBinContent(40,2310); h_SL2L164->SetBinContent(41,2201.429); h_SL2L164->SetBinContent(42,2155.714); h_SL2L164->SetBinContent(43,1948.572); h_SL2L164->SetBinContent(44,1722.857); h_SL2L164->SetBinContent(45,1647.143); h_SL2L164->SetBinContent(46,1612.857); h_SL2L164->SetBinContent(47,1422.857); h_SL2L164->SetBinContent(48,1407.143); h_SL2L164->SetBinContent(49,1307.143); h_SL2L164->SetBinContent(50,1202.857); h_SL2L164->SetBinContent(51,1091.429); h_SL2L164->SetBinContent(52,1120); h_SL2L164->SetBinContent(53,1037.143); h_SL2L164->SetBinContent(54,1035.714); h_SL2L164->SetBinContent(55,988.5715); h_SL2L164->SetBinContent(56,867.1429); h_SL2L164->SetBinContent(57,787.1429); h_SL2L164->SetMaximum(73352.75); 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,718.5715); h_SL2L265->SetBinContent(2,905.7143); h_SL2L265->SetBinContent(3,1028.571); h_SL2L265->SetBinContent(4,1051.429); h_SL2L265->SetBinContent(5,1134.286); h_SL2L265->SetBinContent(6,1141.429); h_SL2L265->SetBinContent(7,1217.143); h_SL2L265->SetBinContent(8,1270); h_SL2L265->SetBinContent(9,1391.429); h_SL2L265->SetBinContent(10,1502.857); h_SL2L265->SetBinContent(11,1601.429); h_SL2L265->SetBinContent(12,1765.714); h_SL2L265->SetBinContent(13,1935.714); h_SL2L265->SetBinContent(14,2122.857); h_SL2L265->SetBinContent(15,2177.143); h_SL2L265->SetBinContent(16,2394.286); h_SL2L265->SetBinContent(17,2600); h_SL2L265->SetBinContent(18,2768.572); h_SL2L265->SetBinContent(19,2994.286); h_SL2L265->SetBinContent(20,3194.286); h_SL2L265->SetBinContent(21,3430); h_SL2L265->SetBinContent(22,3687.143); h_SL2L265->SetBinContent(23,3885.714); h_SL2L265->SetBinContent(24,4338.571); h_SL2L265->SetBinContent(25,5210); h_SL2L265->SetBinContent(26,19258.57); h_SL2L265->SetBinContent(27,39225.71); h_SL2L265->SetBinContent(28,49675.71); h_SL2L265->SetBinContent(29,53801.43); h_SL2L265->SetBinContent(30,53601.43); h_SL2L265->SetBinContent(31,49301.43); h_SL2L265->SetBinContent(32,47161.43); h_SL2L265->SetBinContent(33,46820); h_SL2L265->SetBinContent(34,38981.43); h_SL2L265->SetBinContent(35,14418.57); h_SL2L265->SetBinContent(36,5722.857); h_SL2L265->SetBinContent(37,4045.714); h_SL2L265->SetBinContent(38,3264.286); h_SL2L265->SetBinContent(39,2985.714); h_SL2L265->SetBinContent(40,2412.857); h_SL2L265->SetBinContent(41,2270); h_SL2L265->SetBinContent(42,2087.143); h_SL2L265->SetBinContent(43,2067.143); h_SL2L265->SetBinContent(44,1794.286); h_SL2L265->SetBinContent(45,1625.714); h_SL2L265->SetBinContent(46,1578.571); h_SL2L265->SetBinContent(47,1427.143); h_SL2L265->SetBinContent(48,1427.143); h_SL2L265->SetBinContent(49,1301.429); h_SL2L265->SetBinContent(50,1192.857); h_SL2L265->SetBinContent(51,1104.286); h_SL2L265->SetBinContent(52,1112.857); h_SL2L265->SetBinContent(53,1062.857); h_SL2L265->SetBinContent(54,1025.714); h_SL2L265->SetBinContent(55,955.7143); h_SL2L265->SetBinContent(56,902.8572); h_SL2L265->SetBinContent(57,838.5715); h_SL2L265->SetMaximum(63785.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,745.7143); h_SL2L366->SetBinContent(2,847.1429); h_SL2L366->SetBinContent(3,1025.714); h_SL2L366->SetBinContent(4,1060); h_SL2L366->SetBinContent(5,1101.429); h_SL2L366->SetBinContent(6,1162.857); h_SL2L366->SetBinContent(7,1240); h_SL2L366->SetBinContent(8,1307.143); h_SL2L366->SetBinContent(9,1458.571); h_SL2L366->SetBinContent(10,1447.143); h_SL2L366->SetBinContent(11,1631.429); h_SL2L366->SetBinContent(12,1782.857); h_SL2L366->SetBinContent(13,2020); h_SL2L366->SetBinContent(14,2141.429); h_SL2L366->SetBinContent(15,2132.857); h_SL2L366->SetBinContent(16,2437.143); h_SL2L366->SetBinContent(17,2660); h_SL2L366->SetBinContent(18,2882.857); h_SL2L366->SetBinContent(19,3068.572); h_SL2L366->SetBinContent(20,3225.714); h_SL2L366->SetBinContent(21,3447.143); h_SL2L366->SetBinContent(22,3764.286); h_SL2L366->SetBinContent(23,4085.714); h_SL2L366->SetBinContent(24,4435.714); h_SL2L366->SetBinContent(25,9494.286); h_SL2L366->SetBinContent(26,30370); h_SL2L366->SetBinContent(27,45157.14); h_SL2L366->SetBinContent(28,52648.57); h_SL2L366->SetBinContent(29,53832.86); h_SL2L366->SetBinContent(30,51924.29); h_SL2L366->SetBinContent(31,47765.71); h_SL2L366->SetBinContent(32,47285.71); h_SL2L366->SetBinContent(33,45624.29); h_SL2L366->SetBinContent(34,25958.57); h_SL2L366->SetBinContent(35,7922.857); h_SL2L366->SetBinContent(36,4637.143); h_SL2L366->SetBinContent(37,3550); h_SL2L366->SetBinContent(38,2972.857); h_SL2L366->SetBinContent(39,2508.572); h_SL2L366->SetBinContent(40,2260); h_SL2L366->SetBinContent(41,2128.572); h_SL2L366->SetBinContent(42,1968.572); h_SL2L366->SetBinContent(43,1852.857); h_SL2L366->SetBinContent(44,1651.429); h_SL2L366->SetBinContent(45,1532.857); h_SL2L366->SetBinContent(46,1485.714); h_SL2L366->SetBinContent(47,1345.714); h_SL2L366->SetBinContent(48,1334.286); h_SL2L366->SetBinContent(49,1231.429); h_SL2L366->SetBinContent(50,1157.143); h_SL2L366->SetBinContent(51,1060); h_SL2L366->SetBinContent(52,1074.286); h_SL2L366->SetBinContent(53,1021.429); h_SL2L366->SetBinContent(54,948.5715); h_SL2L366->SetBinContent(55,924.2858); h_SL2L366->SetBinContent(56,832.8572); h_SL2L366->SetBinContent(57,752.8572); h_SL2L366->SetMaximum(63785.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,808.5715); h_SL2L467->SetBinContent(3,982.8572); h_SL2L467->SetBinContent(4,997.1429); h_SL2L467->SetBinContent(5,1071.429); h_SL2L467->SetBinContent(6,1110); h_SL2L467->SetBinContent(7,1145.714); h_SL2L467->SetBinContent(8,1212.857); h_SL2L467->SetBinContent(9,1325.714); h_SL2L467->SetBinContent(10,1410); h_SL2L467->SetBinContent(11,1538.571); h_SL2L467->SetBinContent(12,1671.429); h_SL2L467->SetBinContent(13,1802.857); h_SL2L467->SetBinContent(14,2018.572); h_SL2L467->SetBinContent(15,2105.714); h_SL2L467->SetBinContent(16,2204.286); h_SL2L467->SetBinContent(17,2507.143); h_SL2L467->SetBinContent(18,2632.857); h_SL2L467->SetBinContent(19,2857.143); h_SL2L467->SetBinContent(20,3042.857); h_SL2L467->SetBinContent(21,3241.429); h_SL2L467->SetBinContent(22,3567.143); h_SL2L467->SetBinContent(23,3795.714); h_SL2L467->SetBinContent(24,4185.714); h_SL2L467->SetBinContent(25,4905.714); h_SL2L467->SetBinContent(26,19167.14); h_SL2L467->SetBinContent(27,39278.57); h_SL2L467->SetBinContent(28,49375.71); h_SL2L467->SetBinContent(29,53555.71); h_SL2L467->SetBinContent(30,53877.14); h_SL2L467->SetBinContent(31,49151.43); h_SL2L467->SetBinContent(32,47147.14); h_SL2L467->SetBinContent(33,46877.14); h_SL2L467->SetBinContent(34,39070); h_SL2L467->SetBinContent(35,14175.71); h_SL2L467->SetBinContent(36,5607.143); h_SL2L467->SetBinContent(37,3890); h_SL2L467->SetBinContent(38,3094.286); h_SL2L467->SetBinContent(39,2760); h_SL2L467->SetBinContent(40,2324.286); h_SL2L467->SetBinContent(41,2160); h_SL2L467->SetBinContent(42,2032.857); h_SL2L467->SetBinContent(43,1910); h_SL2L467->SetBinContent(44,1672.857); h_SL2L467->SetBinContent(45,1568.571); h_SL2L467->SetBinContent(46,1475.714); h_SL2L467->SetBinContent(47,1394.286); h_SL2L467->SetBinContent(48,1374.286); h_SL2L467->SetBinContent(49,1231.429); h_SL2L467->SetBinContent(50,1232.857); h_SL2L467->SetBinContent(51,1022.857); h_SL2L467->SetBinContent(52,1040); h_SL2L467->SetBinContent(53,1062.857); h_SL2L467->SetBinContent(54,990); h_SL2L467->SetBinContent(55,915.7143); h_SL2L467->SetBinContent(56,855.7143); h_SL2L467->SetBinContent(57,810); h_SL2L467->SetMaximum(63785.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 5359"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }