void RatesPerCell_Removing_noisy_cells_run_6595_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:27:10 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8731.232,67.5,78581.08); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6595",60,0,60); h_SL2L164->SetBinContent(1,700); h_SL2L164->SetBinContent(2,842.8572); h_SL2L164->SetBinContent(3,1047.143); h_SL2L164->SetBinContent(4,1078.571); h_SL2L164->SetBinContent(5,1111.429); h_SL2L164->SetBinContent(6,1178.571); h_SL2L164->SetBinContent(7,1247.143); h_SL2L164->SetBinContent(8,1340); h_SL2L164->SetBinContent(9,1334.286); h_SL2L164->SetBinContent(10,1591.429); h_SL2L164->SetBinContent(11,1585.714); h_SL2L164->SetBinContent(12,1785.714); h_SL2L164->SetBinContent(13,1895.714); h_SL2L164->SetBinContent(14,1997.143); h_SL2L164->SetBinContent(15,2050); h_SL2L164->SetBinContent(16,2052.857); h_SL2L164->SetBinContent(17,2270); h_SL2L164->SetBinContent(18,2307.143); h_SL2L164->SetBinContent(19,2558.572); h_SL2L164->SetBinContent(20,2805.714); h_SL2L164->SetBinContent(21,2631.429); h_SL2L164->SetBinContent(22,2922.857); h_SL2L164->SetBinContent(23,3245.714); h_SL2L164->SetBinContent(24,3808.572); h_SL2L164->SetBinContent(25,8941.429); h_SL2L164->SetBinContent(26,26762.86); h_SL2L164->SetBinContent(27,40537.14); h_SL2L164->SetBinContent(28,48787.14); h_SL2L164->SetBinContent(29,52817.14); h_SL2L164->SetBinContent(30,51852.86); h_SL2L164->SetBinContent(31,50751.43); h_SL2L164->SetBinContent(32,51091.43); h_SL2L164->SetBinContent(33,50058.57); h_SL2L164->SetBinContent(34,28335.71); h_SL2L164->SetBinContent(36,3841.429); h_SL2L164->SetBinContent(37,8554.286); h_SL2L164->SetBinContent(38,5258.572); h_SL2L164->SetBinContent(39,6801.429); h_SL2L164->SetBinContent(40,51260); h_SL2L164->SetBinContent(41,36824.29); h_SL2L164->SetBinContent(42,13257.14); h_SL2L164->SetBinContent(43,13515.71); h_SL2L164->SetBinContent(44,13748.57); h_SL2L164->SetBinContent(45,1497.143); h_SL2L164->SetBinContent(46,1340); h_SL2L164->SetBinContent(47,1267.143); h_SL2L164->SetBinContent(48,1195.714); h_SL2L164->SetBinContent(49,1027.143); h_SL2L164->SetBinContent(50,1042.857); h_SL2L164->SetBinContent(51,1020); h_SL2L164->SetBinContent(52,880); h_SL2L164->SetBinContent(53,905.7143); h_SL2L164->SetBinContent(54,824.2857); h_SL2L164->SetBinContent(55,695.7143); h_SL2L164->SetBinContent(56,678.5715); h_SL2L164->SetBinContent(57,6752.857); h_SL2L164->SetMaximum(69849.85); 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,711.4286); h_SL2L265->SetBinContent(2,835.7143); h_SL2L265->SetBinContent(3,902.8572); h_SL2L265->SetBinContent(4,1058.571); h_SL2L265->SetBinContent(5,1101.429); h_SL2L265->SetBinContent(6,1162.857); h_SL2L265->SetBinContent(7,1200); h_SL2L265->SetBinContent(8,1232.857); h_SL2L265->SetBinContent(9,1344.286); h_SL2L265->SetBinContent(10,1452.857); h_SL2L265->SetBinContent(11,1555.714); h_SL2L265->SetBinContent(12,1710); h_SL2L265->SetBinContent(13,1744.286); h_SL2L265->SetBinContent(14,1898.572); h_SL2L265->SetBinContent(15,2122.857); h_SL2L265->SetBinContent(16,1970); h_SL2L265->SetBinContent(17,2031.429); h_SL2L265->SetBinContent(18,2372.857); h_SL2L265->SetBinContent(19,2402.857); h_SL2L265->SetBinContent(20,2657.143); h_SL2L265->SetBinContent(21,2631.429); h_SL2L265->SetBinContent(22,2778.572); h_SL2L265->SetBinContent(23,2907.143); h_SL2L265->SetBinContent(24,3358.572); h_SL2L265->SetBinContent(25,4448.572); h_SL2L265->SetBinContent(26,17847.14); h_SL2L265->SetBinContent(27,34067.14); h_SL2L265->SetBinContent(28,45275.71); h_SL2L265->SetBinContent(29,51452.86); h_SL2L265->SetBinContent(30,52132.86); h_SL2L265->SetBinContent(31,50748.57); h_SL2L265->SetBinContent(32,50761.43); h_SL2L265->SetBinContent(33,51891.43); h_SL2L265->SetBinContent(34,42464.29); h_SL2L265->SetBinContent(35,14972.86); h_SL2L265->SetBinContent(36,4884.286); h_SL2L265->SetBinContent(37,3395.714); h_SL2L265->SetBinContent(38,2715.714); h_SL2L265->SetBinContent(39,3830); h_SL2L265->SetBinContent(40,5194.286); h_SL2L265->SetBinContent(41,3870); h_SL2L265->SetBinContent(42,3577.143); h_SL2L265->SetBinContent(43,2564.286); h_SL2L265->SetBinContent(44,3628.572); h_SL2L265->SetBinContent(45,1522.857); h_SL2L265->SetBinContent(46,1391.429); h_SL2L265->SetBinContent(47,1251.429); h_SL2L265->SetBinContent(48,1171.429); h_SL2L265->SetBinContent(49,1087.143); h_SL2L265->SetBinContent(50,987.1429); h_SL2L265->SetBinContent(51,1037.143); h_SL2L265->SetBinContent(52,865.7143); h_SL2L265->SetBinContent(53,851.4286); h_SL2L265->SetBinContent(54,767.1429); h_SL2L265->SetBinContent(55,744.2857); h_SL2L265->SetBinContent(56,714.2857); h_SL2L265->SetBinContent(57,624.2857); h_SL2L265->SetMaximum(60739.72); 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,695.7143); h_SL2L366->SetBinContent(2,887.1429); h_SL2L366->SetBinContent(3,974.2858); h_SL2L366->SetBinContent(4,1044.286); h_SL2L366->SetBinContent(5,1052.857); h_SL2L366->SetBinContent(6,1185.714); h_SL2L366->SetBinContent(7,1214.286); h_SL2L366->SetBinContent(8,1381.429); h_SL2L366->SetBinContent(9,1277.143); h_SL2L366->SetBinContent(10,1510); h_SL2L366->SetBinContent(11,1558.571); h_SL2L366->SetBinContent(12,1727.143); h_SL2L366->SetBinContent(13,1778.571); h_SL2L366->SetBinContent(14,1954.286); h_SL2L366->SetBinContent(15,1998.572); h_SL2L366->SetBinContent(16,1978.572); h_SL2L366->SetBinContent(17,2160); h_SL2L366->SetBinContent(18,2251.429); h_SL2L366->SetBinContent(19,2555.714); h_SL2L366->SetBinContent(20,2691.429); h_SL2L366->SetBinContent(21,2590); h_SL2L366->SetBinContent(22,2818.572); h_SL2L366->SetBinContent(23,3057.143); h_SL2L366->SetBinContent(24,3680); h_SL2L366->SetBinContent(25,8831.429); h_SL2L366->SetBinContent(26,26885.71); h_SL2L366->SetBinContent(27,40348.57); h_SL2L366->SetBinContent(28,48771.43); h_SL2L366->SetBinContent(29,52332.86); h_SL2L366->SetBinContent(30,51652.86); h_SL2L366->SetBinContent(31,50874.29); h_SL2L366->SetBinContent(32,51478.57); h_SL2L366->SetBinContent(33,49968.57); h_SL2L366->SetBinContent(34,28375.71); h_SL2L366->SetBinContent(35,7482.857); h_SL2L366->SetBinContent(36,3967.143); h_SL2L366->SetBinContent(37,2867.143); h_SL2L366->SetBinContent(38,2458.572); h_SL2L366->SetBinContent(39,2245.714); h_SL2L366->SetBinContent(40,3891.429); h_SL2L366->SetBinContent(41,2382.857); h_SL2L366->SetBinContent(42,1852.857); h_SL2L366->SetBinContent(43,1745.714); h_SL2L366->SetBinContent(44,1651.429); h_SL2L366->SetBinContent(45,1458.571); h_SL2L366->SetBinContent(46,1282.857); h_SL2L366->SetBinContent(47,1195.714); h_SL2L366->SetBinContent(48,1148.571); h_SL2L366->SetBinContent(49,1004.286); h_SL2L366->SetBinContent(50,991.4286); h_SL2L366->SetBinContent(51,1008.571); h_SL2L366->SetBinContent(52,877.1429); h_SL2L366->SetBinContent(53,915.7143); h_SL2L366->SetBinContent(54,792.8572); h_SL2L366->SetBinContent(55,707.1429); h_SL2L366->SetBinContent(56,637.1429); h_SL2L366->SetBinContent(57,644.2857); h_SL2L366->SetMaximum(60739.72); 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,790); h_SL2L467->SetBinContent(3,891.4286); h_SL2L467->SetBinContent(4,1021.429); h_SL2L467->SetBinContent(5,1025.714); h_SL2L467->SetBinContent(6,1101.429); h_SL2L467->SetBinContent(7,1230); h_SL2L467->SetBinContent(8,1212.857); h_SL2L467->SetBinContent(9,1274.286); h_SL2L467->SetBinContent(10,1394.286); h_SL2L467->SetBinContent(11,1505.714); h_SL2L467->SetBinContent(12,1665.714); h_SL2L467->SetBinContent(13,1650); h_SL2L467->SetBinContent(14,1864.286); h_SL2L467->SetBinContent(15,2000); h_SL2L467->SetBinContent(16,1875.714); h_SL2L467->SetBinContent(17,1970); h_SL2L467->SetBinContent(18,2222.857); h_SL2L467->SetBinContent(19,2402.857); h_SL2L467->SetBinContent(20,2594.286); h_SL2L467->SetBinContent(21,2570); h_SL2L467->SetBinContent(22,2661.429); h_SL2L467->SetBinContent(23,2774.286); h_SL2L467->SetBinContent(24,3278.572); h_SL2L467->SetBinContent(25,4347.143); h_SL2L467->SetBinContent(26,17815.71); h_SL2L467->SetBinContent(27,34197.14); h_SL2L467->SetBinContent(28,45090); h_SL2L467->SetBinContent(29,51461.43); h_SL2L467->SetBinContent(30,52577.14); h_SL2L467->SetBinContent(31,50828.57); h_SL2L467->SetBinContent(32,50978.57); h_SL2L467->SetBinContent(33,51800); h_SL2L467->SetBinContent(34,42585.71); h_SL2L467->SetBinContent(35,14968.57); h_SL2L467->SetBinContent(36,4865.714); h_SL2L467->SetBinContent(37,3325.714); h_SL2L467->SetBinContent(38,2530); h_SL2L467->SetBinContent(39,2390); h_SL2L467->SetBinContent(40,2022.857); h_SL2L467->SetBinContent(41,1875.714); h_SL2L467->SetBinContent(42,2267.143); h_SL2L467->SetBinContent(43,1770); h_SL2L467->SetBinContent(44,1587.143); h_SL2L467->SetBinContent(45,1475.714); h_SL2L467->SetBinContent(46,1381.429); h_SL2L467->SetBinContent(47,1218.571); h_SL2L467->SetBinContent(48,1137.143); h_SL2L467->SetBinContent(49,1047.143); h_SL2L467->SetBinContent(50,940); h_SL2L467->SetBinContent(51,970); h_SL2L467->SetBinContent(52,872.8572); h_SL2L467->SetBinContent(53,878.5715); h_SL2L467->SetBinContent(54,761.4286); h_SL2L467->SetBinContent(55,774.2857); h_SL2L467->SetBinContent(56,690); h_SL2L467->SetBinContent(57,598.5715); h_SL2L467->SetMaximum(60739.72); 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 6595"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }