void RatesPerCell_Removing_noisy_cells_run_5012_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:21:20 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8924.719,67.5,80322.47); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5012",60,0,60); h_SL2L164->SetBinContent(1,567.1429); h_SL2L164->SetBinContent(2,708.5715); h_SL2L164->SetBinContent(3,807.1429); h_SL2L164->SetBinContent(4,938.5715); h_SL2L164->SetBinContent(5,978.5715); h_SL2L164->SetBinContent(6,965.7143); h_SL2L164->SetBinContent(7,995.7143); h_SL2L164->SetBinContent(8,1094.286); h_SL2L164->SetBinContent(9,1232.857); h_SL2L164->SetBinContent(10,1317.143); h_SL2L164->SetBinContent(11,1480); h_SL2L164->SetBinContent(12,1602.857); h_SL2L164->SetBinContent(13,1664.286); h_SL2L164->SetBinContent(14,1851.429); h_SL2L164->SetBinContent(15,1945.714); h_SL2L164->SetBinContent(16,2037.143); h_SL2L164->SetBinContent(17,2305.714); h_SL2L164->SetBinContent(18,2534.286); h_SL2L164->SetBinContent(19,2680); h_SL2L164->SetBinContent(20,2854.286); h_SL2L164->SetBinContent(21,3092.857); h_SL2L164->SetBinContent(22,3298.572); h_SL2L164->SetBinContent(23,3520); h_SL2L164->SetBinContent(24,3928.572); h_SL2L164->SetBinContent(25,8901.429); h_SL2L164->SetBinContent(26,28384.29); h_SL2L164->SetBinContent(27,43788.57); h_SL2L164->SetBinContent(28,50464.29); h_SL2L164->SetBinContent(29,53987.14); h_SL2L164->SetBinContent(30,51662.86); h_SL2L164->SetBinContent(31,47252.86); h_SL2L164->SetBinContent(32,48318.57); h_SL2L164->SetBinContent(33,46892.86); h_SL2L164->SetBinContent(34,26387.14); h_SL2L164->SetBinContent(36,4242.857); h_SL2L164->SetBinContent(37,5478.572); h_SL2L164->SetBinContent(38,3481.429); h_SL2L164->SetBinContent(39,4291.429); h_SL2L164->SetBinContent(40,19471.43); h_SL2L164->SetBinContent(41,5591.429); h_SL2L164->SetBinContent(42,6130); h_SL2L164->SetBinContent(43,6468.572); h_SL2L164->SetBinContent(44,6257.143); h_SL2L164->SetBinContent(45,1270); h_SL2L164->SetBinContent(46,1151.429); h_SL2L164->SetBinContent(47,1227.143); h_SL2L164->SetBinContent(48,1044.286); h_SL2L164->SetBinContent(49,914.2858); h_SL2L164->SetBinContent(50,798.5715); h_SL2L164->SetBinContent(51,758.5715); h_SL2L164->SetBinContent(52,734.2857); h_SL2L164->SetBinContent(53,714.2857); h_SL2L164->SetBinContent(54,655.7143); h_SL2L164->SetBinContent(55,632.8572); h_SL2L164->SetBinContent(56,542.8572); h_SL2L164->SetBinContent(57,491.4286); h_SL2L164->SetMaximum(71397.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,572.8572); h_SL2L265->SetBinContent(2,632.8572); h_SL2L265->SetBinContent(3,722.8572); h_SL2L265->SetBinContent(4,815.7143); h_SL2L265->SetBinContent(5,898.5715); h_SL2L265->SetBinContent(6,967.1429); h_SL2L265->SetBinContent(7,958.5715); h_SL2L265->SetBinContent(8,982.8572); h_SL2L265->SetBinContent(9,1142.857); h_SL2L265->SetBinContent(10,1190); h_SL2L265->SetBinContent(11,1371.429); h_SL2L265->SetBinContent(12,1542.857); h_SL2L265->SetBinContent(13,1554.286); h_SL2L265->SetBinContent(14,1725.714); h_SL2L265->SetBinContent(15,1904.286); h_SL2L265->SetBinContent(16,1942.857); h_SL2L265->SetBinContent(17,2178.572); h_SL2L265->SetBinContent(18,2467.143); h_SL2L265->SetBinContent(19,2555.714); h_SL2L265->SetBinContent(20,2761.429); h_SL2L265->SetBinContent(21,2938.572); h_SL2L265->SetBinContent(22,3075.714); h_SL2L265->SetBinContent(23,3381.429); h_SL2L265->SetBinContent(24,3622.857); h_SL2L265->SetBinContent(25,4457.143); h_SL2L265->SetBinContent(26,18265.71); h_SL2L265->SetBinContent(27,37035.71); h_SL2L265->SetBinContent(28,47867.14); h_SL2L265->SetBinContent(29,52711.43); h_SL2L265->SetBinContent(30,53322.86); h_SL2L265->SetBinContent(31,48757.14); h_SL2L265->SetBinContent(32,47220); h_SL2L265->SetBinContent(33,48207.14); h_SL2L265->SetBinContent(34,39912.86); h_SL2L265->SetBinContent(35,13947.14); h_SL2L265->SetBinContent(36,5021.429); h_SL2L265->SetBinContent(37,3591.429); h_SL2L265->SetBinContent(38,2877.143); h_SL2L265->SetBinContent(39,3118.572); h_SL2L265->SetBinContent(40,3778.572); h_SL2L265->SetBinContent(41,2028.572); h_SL2L265->SetBinContent(42,1892.857); h_SL2L265->SetBinContent(43,1741.429); h_SL2L265->SetBinContent(44,1837.143); h_SL2L265->SetBinContent(45,1260); h_SL2L265->SetBinContent(46,1181.429); h_SL2L265->SetBinContent(47,1171.429); h_SL2L265->SetBinContent(48,1100); h_SL2L265->SetBinContent(49,984.2858); h_SL2L265->SetBinContent(50,864.2857); h_SL2L265->SetBinContent(51,757.1429); h_SL2L265->SetBinContent(52,748.5715); h_SL2L265->SetBinContent(53,717.1429); h_SL2L265->SetBinContent(54,732.8572); h_SL2L265->SetBinContent(55,647.1429); h_SL2L265->SetBinContent(56,560); h_SL2L265->SetBinContent(57,461.4286); h_SL2L265->SetMaximum(62085.22); 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,578.5715); h_SL2L366->SetBinContent(2,695.7143); h_SL2L366->SetBinContent(3,784.2857); h_SL2L366->SetBinContent(4,828.5715); h_SL2L366->SetBinContent(5,908.5715); h_SL2L366->SetBinContent(6,952.8572); h_SL2L366->SetBinContent(7,951.4286); h_SL2L366->SetBinContent(8,1081.429); h_SL2L366->SetBinContent(9,1127.143); h_SL2L366->SetBinContent(10,1185.714); h_SL2L366->SetBinContent(11,1495.714); h_SL2L366->SetBinContent(12,1568.571); h_SL2L366->SetBinContent(13,1601.429); h_SL2L366->SetBinContent(14,1780); h_SL2L366->SetBinContent(15,1831.429); h_SL2L366->SetBinContent(16,1994.286); h_SL2L366->SetBinContent(17,2254.286); h_SL2L366->SetBinContent(18,2497.143); h_SL2L366->SetBinContent(19,2685.714); h_SL2L366->SetBinContent(20,2741.429); h_SL2L366->SetBinContent(21,3041.429); h_SL2L366->SetBinContent(22,3208.572); h_SL2L366->SetBinContent(23,3507.143); h_SL2L366->SetBinContent(24,3895.714); h_SL2L366->SetBinContent(25,8728.571); h_SL2L366->SetBinContent(26,28398.57); h_SL2L366->SetBinContent(27,43817.14); h_SL2L366->SetBinContent(28,50484.29); h_SL2L366->SetBinContent(29,53672.86); h_SL2L366->SetBinContent(30,51414.29); h_SL2L366->SetBinContent(31,47162.86); h_SL2L366->SetBinContent(32,48297.14); h_SL2L366->SetBinContent(33,46634.29); h_SL2L366->SetBinContent(34,26395.71); h_SL2L366->SetBinContent(35,7217.143); h_SL2L366->SetBinContent(36,4094.286); h_SL2L366->SetBinContent(37,3065.714); h_SL2L366->SetBinContent(38,2502.857); h_SL2L366->SetBinContent(39,2148.572); h_SL2L366->SetBinContent(40,3080); h_SL2L366->SetBinContent(41,1732.857); h_SL2L366->SetBinContent(42,1605.714); h_SL2L366->SetBinContent(43,1464.286); h_SL2L366->SetBinContent(44,1285.714); h_SL2L366->SetBinContent(45,1222.857); h_SL2L366->SetBinContent(46,1082.857); h_SL2L366->SetBinContent(47,1145.714); h_SL2L366->SetBinContent(48,1000); h_SL2L366->SetBinContent(49,870); h_SL2L366->SetBinContent(50,755.7143); h_SL2L366->SetBinContent(51,784.2857); h_SL2L366->SetBinContent(52,694.2857); h_SL2L366->SetBinContent(53,712.8572); h_SL2L366->SetBinContent(54,588.5715); h_SL2L366->SetBinContent(55,577.1429); h_SL2L366->SetBinContent(56,488.5714); h_SL2L366->SetBinContent(57,478.5714); h_SL2L366->SetMaximum(62085.22); 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,622.8572); h_SL2L467->SetBinContent(3,701.4286); h_SL2L467->SetBinContent(4,788.5715); h_SL2L467->SetBinContent(5,888.5715); h_SL2L467->SetBinContent(6,905.7143); h_SL2L467->SetBinContent(7,980); h_SL2L467->SetBinContent(8,974.2858); h_SL2L467->SetBinContent(9,1085.714); h_SL2L467->SetBinContent(10,1175.714); h_SL2L467->SetBinContent(11,1285.714); h_SL2L467->SetBinContent(12,1508.571); h_SL2L467->SetBinContent(13,1497.143); h_SL2L467->SetBinContent(14,1647.143); h_SL2L467->SetBinContent(15,1804.286); h_SL2L467->SetBinContent(16,1787.143); h_SL2L467->SetBinContent(17,2015.714); h_SL2L467->SetBinContent(18,2277.143); h_SL2L467->SetBinContent(19,2457.143); h_SL2L467->SetBinContent(20,2602.857); h_SL2L467->SetBinContent(21,2828.572); h_SL2L467->SetBinContent(22,3015.714); h_SL2L467->SetBinContent(23,3338.572); h_SL2L467->SetBinContent(24,3487.143); h_SL2L467->SetBinContent(25,4391.429); h_SL2L467->SetBinContent(26,18118.57); h_SL2L467->SetBinContent(27,37251.43); h_SL2L467->SetBinContent(28,47821.43); h_SL2L467->SetBinContent(29,52601.43); h_SL2L467->SetBinContent(30,53574.29); h_SL2L467->SetBinContent(31,48828.57); h_SL2L467->SetBinContent(32,47335.71); h_SL2L467->SetBinContent(33,48091.43); h_SL2L467->SetBinContent(34,39870); h_SL2L467->SetBinContent(35,13911.43); h_SL2L467->SetBinContent(36,5024.286); h_SL2L467->SetBinContent(37,3464.286); h_SL2L467->SetBinContent(38,2725.714); h_SL2L467->SetBinContent(39,2234.286); h_SL2L467->SetBinContent(40,1960); h_SL2L467->SetBinContent(41,1780); h_SL2L467->SetBinContent(42,1575.714); h_SL2L467->SetBinContent(43,1501.429); h_SL2L467->SetBinContent(44,1328.571); h_SL2L467->SetBinContent(45,1231.429); h_SL2L467->SetBinContent(46,1122.857); h_SL2L467->SetBinContent(47,1108.571); h_SL2L467->SetBinContent(48,1025.714); h_SL2L467->SetBinContent(49,970); h_SL2L467->SetBinContent(50,834.2857); h_SL2L467->SetBinContent(51,761.4286); h_SL2L467->SetBinContent(52,702.8572); h_SL2L467->SetBinContent(53,650); h_SL2L467->SetBinContent(54,660); h_SL2L467->SetBinContent(55,588.5715); h_SL2L467->SetBinContent(56,537.1429); h_SL2L467->SetBinContent(57,441.4286); h_SL2L467->SetMaximum(62085.22); 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 5012"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }