void RatesPerCell_Removing_noisy_cells_run_5646_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:41:03 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9745.101,67.5,87705.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5646",60,0,60); h_SL2L164->SetBinContent(1,955.7143); h_SL2L164->SetBinContent(2,967.1429); h_SL2L164->SetBinContent(3,1191.429); h_SL2L164->SetBinContent(4,1308.571); h_SL2L164->SetBinContent(5,1348.571); h_SL2L164->SetBinContent(6,1440); h_SL2L164->SetBinContent(7,1447.143); h_SL2L164->SetBinContent(8,1574.286); h_SL2L164->SetBinContent(9,1738.571); h_SL2L164->SetBinContent(10,1792.857); h_SL2L164->SetBinContent(11,2065.714); h_SL2L164->SetBinContent(12,2208.572); h_SL2L164->SetBinContent(13,2385.714); h_SL2L164->SetBinContent(14,2561.429); h_SL2L164->SetBinContent(15,2671.429); h_SL2L164->SetBinContent(16,3000); h_SL2L164->SetBinContent(17,3065.714); h_SL2L164->SetBinContent(18,3402.857); h_SL2L164->SetBinContent(19,3604.286); h_SL2L164->SetBinContent(20,3765.714); h_SL2L164->SetBinContent(21,4005.714); h_SL2L164->SetBinContent(22,4534.286); h_SL2L164->SetBinContent(23,4594.286); h_SL2L164->SetBinContent(24,4938.572); h_SL2L164->SetBinContent(25,10191.43); h_SL2L164->SetBinContent(26,33020); h_SL2L164->SetBinContent(27,49924.29); h_SL2L164->SetBinContent(28,58231.43); h_SL2L164->SetBinContent(29,58622.86); h_SL2L164->SetBinContent(30,52811.43); h_SL2L164->SetBinContent(31,45091.43); h_SL2L164->SetBinContent(32,42800); h_SL2L164->SetBinContent(33,39652.86); h_SL2L164->SetBinContent(34,21967.14); h_SL2L164->SetBinContent(36,4198.571); h_SL2L164->SetBinContent(37,3488.572); h_SL2L164->SetBinContent(38,3031.429); h_SL2L164->SetBinContent(39,2645.714); h_SL2L164->SetBinContent(40,1991.429); h_SL2L164->SetBinContent(41,2132.857); h_SL2L164->SetBinContent(42,2097.143); h_SL2L164->SetBinContent(43,1804.286); h_SL2L164->SetBinContent(44,1877.143); h_SL2L164->SetBinContent(45,1687.143); h_SL2L164->SetBinContent(46,1535.714); h_SL2L164->SetBinContent(47,1465.714); h_SL2L164->SetBinContent(48,1468.571); h_SL2L164->SetBinContent(49,1345.714); h_SL2L164->SetBinContent(50,1247.143); h_SL2L164->SetBinContent(51,1214.286); h_SL2L164->SetBinContent(52,1205.714); h_SL2L164->SetBinContent(53,1125.714); h_SL2L164->SetBinContent(54,1077.143); h_SL2L164->SetBinContent(55,1034.286); h_SL2L164->SetBinContent(56,977.1429); h_SL2L164->SetBinContent(57,882.8572); h_SL2L164->SetMaximum(77960.8); 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,852.8572); h_SL2L265->SetBinContent(2,954.2858); h_SL2L265->SetBinContent(3,1045.714); h_SL2L265->SetBinContent(4,1174.286); h_SL2L265->SetBinContent(5,1280); h_SL2L265->SetBinContent(6,1418.571); h_SL2L265->SetBinContent(7,1421.429); h_SL2L265->SetBinContent(8,1437.143); h_SL2L265->SetBinContent(9,1675.714); h_SL2L265->SetBinContent(10,1701.429); h_SL2L265->SetBinContent(11,1795.714); h_SL2L265->SetBinContent(12,2167.143); h_SL2L265->SetBinContent(13,2218.572); h_SL2L265->SetBinContent(14,2450); h_SL2L265->SetBinContent(15,2560); h_SL2L265->SetBinContent(16,2772.857); h_SL2L265->SetBinContent(17,2894.286); h_SL2L265->SetBinContent(18,3210); h_SL2L265->SetBinContent(19,3288.572); h_SL2L265->SetBinContent(20,3708.572); h_SL2L265->SetBinContent(21,3831.429); h_SL2L265->SetBinContent(22,4205.714); h_SL2L265->SetBinContent(23,4361.429); h_SL2L265->SetBinContent(24,4674.286); h_SL2L265->SetBinContent(25,5310); h_SL2L265->SetBinContent(26,20697.14); h_SL2L265->SetBinContent(27,42770); h_SL2L265->SetBinContent(28,54952.86); h_SL2L265->SetBinContent(29,58950); h_SL2L265->SetBinContent(30,56328.57); h_SL2L265->SetBinContent(31,47882.86); h_SL2L265->SetBinContent(32,43430); h_SL2L265->SetBinContent(33,41748.57); h_SL2L265->SetBinContent(34,33008.57); h_SL2L265->SetBinContent(35,12110); h_SL2L265->SetBinContent(36,5021.429); h_SL2L265->SetBinContent(37,3761.429); h_SL2L265->SetBinContent(38,3097.143); h_SL2L265->SetBinContent(39,2765.714); h_SL2L265->SetBinContent(40,2451.429); h_SL2L265->SetBinContent(41,2208.572); h_SL2L265->SetBinContent(42,2114.286); h_SL2L265->SetBinContent(43,1872.857); h_SL2L265->SetBinContent(44,1800); h_SL2L265->SetBinContent(45,1732.857); h_SL2L265->SetBinContent(46,1618.571); h_SL2L265->SetBinContent(47,1404.286); h_SL2L265->SetBinContent(48,1435.714); h_SL2L265->SetBinContent(49,1328.571); h_SL2L265->SetBinContent(50,1252.857); h_SL2L265->SetBinContent(51,1207.143); h_SL2L265->SetBinContent(52,1238.571); h_SL2L265->SetBinContent(53,1162.857); h_SL2L265->SetBinContent(54,1145.714); h_SL2L265->SetBinContent(55,1034.286); h_SL2L265->SetBinContent(56,982.8572); h_SL2L265->SetBinContent(57,915.7143); h_SL2L265->SetMaximum(67792.5); 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,941.4286); h_SL2L366->SetBinContent(2,1005.714); h_SL2L366->SetBinContent(3,1162.857); h_SL2L366->SetBinContent(4,1241.429); h_SL2L366->SetBinContent(5,1335.714); h_SL2L366->SetBinContent(6,1404.286); h_SL2L366->SetBinContent(7,1445.714); h_SL2L366->SetBinContent(8,1544.286); h_SL2L366->SetBinContent(9,1615.714); h_SL2L366->SetBinContent(10,1748.571); h_SL2L366->SetBinContent(11,1977.143); h_SL2L366->SetBinContent(12,2105.714); h_SL2L366->SetBinContent(13,2158.572); h_SL2L366->SetBinContent(14,2510); h_SL2L366->SetBinContent(15,2587.143); h_SL2L366->SetBinContent(16,2802.857); h_SL2L366->SetBinContent(17,3035.714); h_SL2L366->SetBinContent(18,3314.286); h_SL2L366->SetBinContent(19,3437.143); h_SL2L366->SetBinContent(20,3708.572); h_SL2L366->SetBinContent(21,3854.286); h_SL2L366->SetBinContent(22,4288.571); h_SL2L366->SetBinContent(23,4498.572); h_SL2L366->SetBinContent(24,4807.143); h_SL2L366->SetBinContent(25,10054.29); h_SL2L366->SetBinContent(26,32871.43); h_SL2L366->SetBinContent(27,49691.43); h_SL2L366->SetBinContent(28,58075.71); h_SL2L366->SetBinContent(29,58232.86); h_SL2L366->SetBinContent(30,52354.29); h_SL2L366->SetBinContent(31,44844.29); h_SL2L366->SetBinContent(32,42665.71); h_SL2L366->SetBinContent(33,39438.57); h_SL2L366->SetBinContent(34,21755.71); h_SL2L366->SetBinContent(35,6838.572); h_SL2L366->SetBinContent(36,4127.143); h_SL2L366->SetBinContent(37,3394.286); h_SL2L366->SetBinContent(38,2888.572); h_SL2L366->SetBinContent(39,2458.572); h_SL2L366->SetBinContent(40,2264.286); h_SL2L366->SetBinContent(41,2081.429); h_SL2L366->SetBinContent(42,1908.572); h_SL2L366->SetBinContent(43,1714.286); h_SL2L366->SetBinContent(44,1694.286); h_SL2L366->SetBinContent(45,1582.857); h_SL2L366->SetBinContent(46,1477.143); h_SL2L366->SetBinContent(47,1388.571); h_SL2L366->SetBinContent(48,1431.429); h_SL2L366->SetBinContent(49,1247.143); h_SL2L366->SetBinContent(50,1214.286); h_SL2L366->SetBinContent(51,1157.143); h_SL2L366->SetBinContent(52,1191.429); h_SL2L366->SetBinContent(53,1121.429); h_SL2L366->SetBinContent(54,1077.143); h_SL2L366->SetBinContent(55,1024.286); h_SL2L366->SetBinContent(56,980); h_SL2L366->SetBinContent(57,884.2857); h_SL2L366->SetMaximum(67792.5); 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,932.8572); h_SL2L467->SetBinContent(3,1058.571); h_SL2L467->SetBinContent(4,1150); h_SL2L467->SetBinContent(5,1260); h_SL2L467->SetBinContent(6,1385.714); h_SL2L467->SetBinContent(7,1372.857); h_SL2L467->SetBinContent(8,1378.571); h_SL2L467->SetBinContent(9,1565.714); h_SL2L467->SetBinContent(10,1635.714); h_SL2L467->SetBinContent(11,1741.429); h_SL2L467->SetBinContent(12,2034.286); h_SL2L467->SetBinContent(13,2145.714); h_SL2L467->SetBinContent(14,2310); h_SL2L467->SetBinContent(15,2441.429); h_SL2L467->SetBinContent(16,2625.714); h_SL2L467->SetBinContent(17,2867.143); h_SL2L467->SetBinContent(18,3100); h_SL2L467->SetBinContent(19,3170); h_SL2L467->SetBinContent(20,3587.143); h_SL2L467->SetBinContent(21,3660); h_SL2L467->SetBinContent(22,4137.143); h_SL2L467->SetBinContent(23,4261.429); h_SL2L467->SetBinContent(24,4462.857); h_SL2L467->SetBinContent(25,5187.143); h_SL2L467->SetBinContent(26,20622.86); h_SL2L467->SetBinContent(27,42881.43); h_SL2L467->SetBinContent(28,54851.43); h_SL2L467->SetBinContent(29,58950); h_SL2L467->SetBinContent(30,56687.14); h_SL2L467->SetBinContent(31,47915.71); h_SL2L467->SetBinContent(32,43540); h_SL2L467->SetBinContent(33,41667.14); h_SL2L467->SetBinContent(34,33131.43); h_SL2L467->SetBinContent(35,11914.29); h_SL2L467->SetBinContent(36,4904.286); h_SL2L467->SetBinContent(37,3594.286); h_SL2L467->SetBinContent(38,2952.857); h_SL2L467->SetBinContent(39,2658.572); h_SL2L467->SetBinContent(40,2302.857); h_SL2L467->SetBinContent(41,2100); h_SL2L467->SetBinContent(42,1967.143); h_SL2L467->SetBinContent(43,1798.571); h_SL2L467->SetBinContent(44,1755.714); h_SL2L467->SetBinContent(45,1638.571); h_SL2L467->SetBinContent(46,1497.143); h_SL2L467->SetBinContent(47,1385.714); h_SL2L467->SetBinContent(48,1321.429); h_SL2L467->SetBinContent(49,1387.143); h_SL2L467->SetBinContent(50,1200); h_SL2L467->SetBinContent(51,1128.571); h_SL2L467->SetBinContent(52,1191.429); h_SL2L467->SetBinContent(53,1100); h_SL2L467->SetBinContent(54,1147.143); h_SL2L467->SetBinContent(55,998.5715); h_SL2L467->SetBinContent(56,974.2858); h_SL2L467->SetBinContent(57,892.8572); h_SL2L467->SetMaximum(67792.5); 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 5646"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }