void RatesPerCell_Removing_noisy_cells_run_6496_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:37:12 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10405.63,67.5,93650.68); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6496",60,0,60); h_SL2L164->SetBinContent(1,622.1429); h_SL2L164->SetBinContent(2,711.4286); h_SL2L164->SetBinContent(3,860.7143); h_SL2L164->SetBinContent(4,917.1429); h_SL2L164->SetBinContent(5,937.8572); h_SL2L164->SetBinContent(6,1027.857); h_SL2L164->SetBinContent(7,1056.429); h_SL2L164->SetBinContent(8,1092.857); h_SL2L164->SetBinContent(9,1245); h_SL2L164->SetBinContent(10,1364.286); h_SL2L164->SetBinContent(11,1512.143); h_SL2L164->SetBinContent(12,1553.571); h_SL2L164->SetBinContent(13,1681.429); h_SL2L164->SetBinContent(14,1830.714); h_SL2L164->SetBinContent(15,1894.286); h_SL2L164->SetBinContent(16,1995.714); h_SL2L164->SetBinContent(17,2131.429); h_SL2L164->SetBinContent(18,2200); h_SL2L164->SetBinContent(19,2467.143); h_SL2L164->SetBinContent(20,2564.286); h_SL2L164->SetBinContent(21,2727.857); h_SL2L164->SetBinContent(22,2874.286); h_SL2L164->SetBinContent(23,3264.286); h_SL2L164->SetBinContent(24,3675.714); h_SL2L164->SetBinContent(25,7954.286); h_SL2L164->SetBinContent(26,25968.57); h_SL2L164->SetBinContent(27,45981.43); h_SL2L164->SetBinContent(28,59839.29); h_SL2L164->SetBinContent(29,62945.71); h_SL2L164->SetBinContent(30,54570); h_SL2L164->SetBinContent(31,42925.71); h_SL2L164->SetBinContent(32,38797.14); h_SL2L164->SetBinContent(33,38589.29); h_SL2L164->SetBinContent(34,24951.43); h_SL2L164->SetBinContent(35,6.428572); h_SL2L164->SetBinContent(36,3811.429); h_SL2L164->SetBinContent(37,6340); h_SL2L164->SetBinContent(38,3697.857); h_SL2L164->SetBinContent(39,5167.143); h_SL2L164->SetBinContent(40,40183.57); h_SL2L164->SetBinContent(41,49907.14); h_SL2L164->SetBinContent(42,10944.29); h_SL2L164->SetBinContent(43,11470.71); h_SL2L164->SetBinContent(44,11096.43); h_SL2L164->SetBinContent(45,1337.143); h_SL2L164->SetBinContent(46,1186.429); h_SL2L164->SetBinContent(47,1087.857); h_SL2L164->SetBinContent(48,1012.857); h_SL2L164->SetBinContent(49,981.4286); h_SL2L164->SetBinContent(50,835.7143); h_SL2L164->SetBinContent(51,800.7143); h_SL2L164->SetBinContent(52,714.2857); h_SL2L164->SetBinContent(53,744.2857); h_SL2L164->SetBinContent(54,673.5715); h_SL2L164->SetBinContent(55,622.8572); h_SL2L164->SetBinContent(56,499.2857); h_SL2L164->SetBinContent(57,537.8572); h_SL2L164->SetMaximum(83245.05); 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,600); h_SL2L265->SetBinContent(2,680); h_SL2L265->SetBinContent(3,770.7143); h_SL2L265->SetBinContent(4,861.4286); h_SL2L265->SetBinContent(5,938.5715); h_SL2L265->SetBinContent(6,926.4286); h_SL2L265->SetBinContent(7,1032.857); h_SL2L265->SetBinContent(8,1038.571); h_SL2L265->SetBinContent(9,1185.714); h_SL2L265->SetBinContent(10,1266.429); h_SL2L265->SetBinContent(11,1418.571); h_SL2L265->SetBinContent(12,1539.286); h_SL2L265->SetBinContent(13,1577.857); h_SL2L265->SetBinContent(14,1726.429); h_SL2L265->SetBinContent(15,1861.429); h_SL2L265->SetBinContent(16,1866.429); h_SL2L265->SetBinContent(17,2062.143); h_SL2L265->SetBinContent(18,2150); h_SL2L265->SetBinContent(19,2242.857); h_SL2L265->SetBinContent(20,2540.714); h_SL2L265->SetBinContent(21,2568.572); h_SL2L265->SetBinContent(22,2670); h_SL2L265->SetBinContent(23,3024.286); h_SL2L265->SetBinContent(24,3302.143); h_SL2L265->SetBinContent(25,4232.857); h_SL2L265->SetBinContent(26,16075.71); h_SL2L265->SetBinContent(27,35937.14); h_SL2L265->SetBinContent(28,53953.57); h_SL2L265->SetBinContent(29,62877.14); h_SL2L265->SetBinContent(30,59950.71); h_SL2L265->SetBinContent(31,48052.14); h_SL2L265->SetBinContent(32,39877.86); h_SL2L265->SetBinContent(33,38867.86); h_SL2L265->SetBinContent(34,34905); h_SL2L265->SetBinContent(35,13712.86); h_SL2L265->SetBinContent(36,4660.714); h_SL2L265->SetBinContent(37,3262.143); h_SL2L265->SetBinContent(38,2610.714); h_SL2L265->SetBinContent(39,3107.857); h_SL2L265->SetBinContent(40,4605.714); h_SL2L265->SetBinContent(41,2962.857); h_SL2L265->SetBinContent(42,2706.429); h_SL2L265->SetBinContent(43,1686.429); h_SL2L265->SetBinContent(44,1995); h_SL2L265->SetBinContent(45,1295.714); h_SL2L265->SetBinContent(46,1286.429); h_SL2L265->SetBinContent(47,1082.143); h_SL2L265->SetBinContent(48,1002.857); h_SL2L265->SetBinContent(49,987.8572); h_SL2L265->SetBinContent(50,872.8572); h_SL2L265->SetBinContent(51,800.7143); h_SL2L265->SetBinContent(52,753.5715); h_SL2L265->SetBinContent(53,699.2857); h_SL2L265->SetBinContent(54,672.8572); h_SL2L265->SetBinContent(55,635); h_SL2L265->SetBinContent(56,567.1429); h_SL2L265->SetBinContent(57,518.5714); h_SL2L265->SetMaximum(72387.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,615); h_SL2L366->SetBinContent(2,717.1429); h_SL2L366->SetBinContent(3,826.4286); h_SL2L366->SetBinContent(4,907.1429); h_SL2L366->SetBinContent(5,917.8572); h_SL2L366->SetBinContent(6,998.5715); h_SL2L366->SetBinContent(7,1027.143); h_SL2L366->SetBinContent(8,1067.857); h_SL2L366->SetBinContent(9,1217.143); h_SL2L366->SetBinContent(10,1304.286); h_SL2L366->SetBinContent(11,1467.857); h_SL2L366->SetBinContent(12,1550.714); h_SL2L366->SetBinContent(13,1658.571); h_SL2L366->SetBinContent(14,1748.571); h_SL2L366->SetBinContent(15,1816.429); h_SL2L366->SetBinContent(16,1909.286); h_SL2L366->SetBinContent(17,2073.572); h_SL2L366->SetBinContent(18,2152.143); h_SL2L366->SetBinContent(19,2403.572); h_SL2L366->SetBinContent(20,2434.286); h_SL2L366->SetBinContent(21,2621.429); h_SL2L366->SetBinContent(22,2774.286); h_SL2L366->SetBinContent(23,3150); h_SL2L366->SetBinContent(24,3535); h_SL2L366->SetBinContent(25,7900); h_SL2L366->SetBinContent(26,26006.43); h_SL2L366->SetBinContent(27,45835); h_SL2L366->SetBinContent(28,59925); h_SL2L366->SetBinContent(29,62790.71); h_SL2L366->SetBinContent(30,54343.57); h_SL2L366->SetBinContent(31,42794.29); h_SL2L366->SetBinContent(32,38759.29); h_SL2L366->SetBinContent(33,38600.71); h_SL2L366->SetBinContent(34,24957.86); h_SL2L366->SetBinContent(35,7096.429); h_SL2L366->SetBinContent(36,3727.857); h_SL2L366->SetBinContent(37,2807.143); h_SL2L366->SetBinContent(38,2310); h_SL2L366->SetBinContent(39,2047.143); h_SL2L366->SetBinContent(40,3592.857); h_SL2L366->SetBinContent(41,2321.429); h_SL2L366->SetBinContent(42,1618.571); h_SL2L366->SetBinContent(43,1432.857); h_SL2L366->SetBinContent(44,1265.714); h_SL2L366->SetBinContent(45,1310.714); h_SL2L366->SetBinContent(46,1123.571); h_SL2L366->SetBinContent(47,1035); h_SL2L366->SetBinContent(48,1010); h_SL2L366->SetBinContent(49,926.4286); h_SL2L366->SetBinContent(50,820); h_SL2L366->SetBinContent(51,738.5715); h_SL2L366->SetBinContent(52,725); h_SL2L366->SetBinContent(53,688.5715); h_SL2L366->SetBinContent(54,639.2857); h_SL2L366->SetBinContent(55,595); h_SL2L366->SetBinContent(56,495.7143); h_SL2L366->SetBinContent(57,514.2857); h_SL2L366->SetMaximum(72387.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,661.4286); h_SL2L467->SetBinContent(3,730); h_SL2L467->SetBinContent(4,830.7143); h_SL2L467->SetBinContent(5,878.5715); h_SL2L467->SetBinContent(6,905); h_SL2L467->SetBinContent(7,1002.857); h_SL2L467->SetBinContent(8,991.4286); h_SL2L467->SetBinContent(9,1162.857); h_SL2L467->SetBinContent(10,1205); h_SL2L467->SetBinContent(11,1327.143); h_SL2L467->SetBinContent(12,1448.571); h_SL2L467->SetBinContent(13,1540.714); h_SL2L467->SetBinContent(14,1650.714); h_SL2L467->SetBinContent(15,1760.714); h_SL2L467->SetBinContent(16,1792.857); h_SL2L467->SetBinContent(17,1953.572); h_SL2L467->SetBinContent(18,2047.143); h_SL2L467->SetBinContent(19,2210.714); h_SL2L467->SetBinContent(20,2520.714); h_SL2L467->SetBinContent(21,2515); h_SL2L467->SetBinContent(22,2584.286); h_SL2L467->SetBinContent(23,2960.714); h_SL2L467->SetBinContent(24,3195.714); h_SL2L467->SetBinContent(25,4124.286); h_SL2L467->SetBinContent(26,16021.43); h_SL2L467->SetBinContent(27,35893.57); h_SL2L467->SetBinContent(28,53890); h_SL2L467->SetBinContent(29,62781.43); h_SL2L467->SetBinContent(30,60227.14); h_SL2L467->SetBinContent(31,48085); h_SL2L467->SetBinContent(32,39950); h_SL2L467->SetBinContent(33,38826.43); h_SL2L467->SetBinContent(34,34919.29); h_SL2L467->SetBinContent(35,13655.71); h_SL2L467->SetBinContent(36,4560); h_SL2L467->SetBinContent(37,3142.857); h_SL2L467->SetBinContent(38,2493.572); h_SL2L467->SetBinContent(39,2135.714); h_SL2L467->SetBinContent(40,1904.286); h_SL2L467->SetBinContent(41,1782.143); h_SL2L467->SetBinContent(42,2262.143); h_SL2L467->SetBinContent(43,1513.571); h_SL2L467->SetBinContent(44,1317.143); h_SL2L467->SetBinContent(45,1264.286); h_SL2L467->SetBinContent(46,1215.714); h_SL2L467->SetBinContent(47,1040); h_SL2L467->SetBinContent(48,995); h_SL2L467->SetBinContent(49,964.2858); h_SL2L467->SetBinContent(50,845.7143); h_SL2L467->SetBinContent(51,775); h_SL2L467->SetBinContent(52,705); h_SL2L467->SetBinContent(53,687.1429); h_SL2L467->SetBinContent(54,668.5715); h_SL2L467->SetBinContent(55,597.1429); h_SL2L467->SetBinContent(56,545); h_SL2L467->SetBinContent(57,540); h_SL2L467->SetMaximum(72387.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 6496"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }