void RatesPerCell_Removing_noisy_cells_run_5053_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:52:49 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8959.219,67.5,80632.97); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5053",60,0,60); h_SL2L164->SetBinContent(1,610.7143); h_SL2L164->SetBinContent(2,710.7143); h_SL2L164->SetBinContent(3,821.4286); h_SL2L164->SetBinContent(4,1064.286); h_SL2L164->SetBinContent(5,1067.857); h_SL2L164->SetBinContent(6,1110.714); h_SL2L164->SetBinContent(7,1085.714); h_SL2L164->SetBinContent(8,1142.857); h_SL2L164->SetBinContent(9,1239.286); h_SL2L164->SetBinContent(10,1446.429); h_SL2L164->SetBinContent(11,1585.714); h_SL2L164->SetBinContent(12,1664.286); h_SL2L164->SetBinContent(13,1689.286); h_SL2L164->SetBinContent(14,1935.714); h_SL2L164->SetBinContent(15,2203.571); h_SL2L164->SetBinContent(16,2207.143); h_SL2L164->SetBinContent(17,2289.286); h_SL2L164->SetBinContent(18,2550); h_SL2L164->SetBinContent(19,2910.714); h_SL2L164->SetBinContent(20,3017.857); h_SL2L164->SetBinContent(21,3057.143); h_SL2L164->SetBinContent(22,3260.714); h_SL2L164->SetBinContent(23,3564.286); h_SL2L164->SetBinContent(24,4289.286); h_SL2L164->SetBinContent(25,8910.714); h_SL2L164->SetBinContent(26,28807.14); h_SL2L164->SetBinContent(27,43503.57); h_SL2L164->SetBinContent(28,51814.29); h_SL2L164->SetBinContent(29,54150); h_SL2L164->SetBinContent(30,51692.86); h_SL2L164->SetBinContent(31,47082.14); h_SL2L164->SetBinContent(32,47114.29); h_SL2L164->SetBinContent(33,44796.43); h_SL2L164->SetBinContent(34,25971.43); h_SL2L164->SetBinContent(35,17.85714); h_SL2L164->SetBinContent(36,4235.714); h_SL2L164->SetBinContent(37,4625); h_SL2L164->SetBinContent(38,3053.571); h_SL2L164->SetBinContent(39,3832.143); h_SL2L164->SetBinContent(40,15267.86); h_SL2L164->SetBinContent(41,4625); h_SL2L164->SetBinContent(42,5214.286); h_SL2L164->SetBinContent(43,5339.286); h_SL2L164->SetBinContent(44,5189.286); h_SL2L164->SetBinContent(45,1353.571); h_SL2L164->SetBinContent(46,1228.571); h_SL2L164->SetBinContent(47,1121.429); h_SL2L164->SetBinContent(48,1067.857); h_SL2L164->SetBinContent(49,946.4286); h_SL2L164->SetBinContent(50,800); h_SL2L164->SetBinContent(51,921.4286); h_SL2L164->SetBinContent(52,685.7143); h_SL2L164->SetBinContent(53,692.8571); h_SL2L164->SetBinContent(54,578.5714); h_SL2L164->SetBinContent(55,642.8571); h_SL2L164->SetBinContent(56,521.4286); h_SL2L164->SetBinContent(57,567.8571); h_SL2L164->SetMaximum(71673.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,571.4286); h_SL2L265->SetBinContent(2,778.5714); h_SL2L265->SetBinContent(3,671.4286); h_SL2L265->SetBinContent(4,942.8571); h_SL2L265->SetBinContent(5,935.7143); h_SL2L265->SetBinContent(6,1046.429); h_SL2L265->SetBinContent(7,1028.571); h_SL2L265->SetBinContent(8,1039.286); h_SL2L265->SetBinContent(9,1189.286); h_SL2L265->SetBinContent(10,1275); h_SL2L265->SetBinContent(11,1425); h_SL2L265->SetBinContent(12,1639.286); h_SL2L265->SetBinContent(13,1707.143); h_SL2L265->SetBinContent(14,1860.714); h_SL2L265->SetBinContent(15,1950); h_SL2L265->SetBinContent(16,2146.428); h_SL2L265->SetBinContent(17,2275); h_SL2L265->SetBinContent(18,2435.714); h_SL2L265->SetBinContent(19,2653.571); h_SL2L265->SetBinContent(20,2967.857); h_SL2L265->SetBinContent(21,2989.286); h_SL2L265->SetBinContent(22,3103.571); h_SL2L265->SetBinContent(23,3392.857); h_SL2L265->SetBinContent(24,3814.286); h_SL2L265->SetBinContent(25,4871.429); h_SL2L265->SetBinContent(26,18178.57); h_SL2L265->SetBinContent(27,37310.71); h_SL2L265->SetBinContent(28,48657.14); h_SL2L265->SetBinContent(29,53350); h_SL2L265->SetBinContent(30,53421.43); h_SL2L265->SetBinContent(31,48400); h_SL2L265->SetBinContent(32,46614.29); h_SL2L265->SetBinContent(33,46410.71); h_SL2L265->SetBinContent(34,38450); h_SL2L265->SetBinContent(35,13317.86); h_SL2L265->SetBinContent(36,5125); h_SL2L265->SetBinContent(37,3317.857); h_SL2L265->SetBinContent(38,2803.571); h_SL2L265->SetBinContent(39,2871.428); h_SL2L265->SetBinContent(40,3553.571); h_SL2L265->SetBinContent(41,1925); h_SL2L265->SetBinContent(42,2025); h_SL2L265->SetBinContent(43,1585.714); h_SL2L265->SetBinContent(44,1646.429); h_SL2L265->SetBinContent(45,1410.714); h_SL2L265->SetBinContent(46,1221.429); h_SL2L265->SetBinContent(47,1167.857); h_SL2L265->SetBinContent(48,1053.571); h_SL2L265->SetBinContent(49,1067.857); h_SL2L265->SetBinContent(50,867.8571); h_SL2L265->SetBinContent(51,782.1428); h_SL2L265->SetBinContent(52,750); h_SL2L265->SetBinContent(53,732.1428); h_SL2L265->SetBinContent(54,589.2857); h_SL2L265->SetBinContent(55,625); h_SL2L265->SetBinContent(56,546.4286); h_SL2L265->SetBinContent(57,553.5714); h_SL2L265->SetMaximum(62325.89); 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,550); h_SL2L366->SetBinContent(2,703.5714); h_SL2L366->SetBinContent(3,721.4286); h_SL2L366->SetBinContent(4,1003.571); h_SL2L366->SetBinContent(5,964.2857); h_SL2L366->SetBinContent(6,964.2857); h_SL2L366->SetBinContent(7,1064.286); h_SL2L366->SetBinContent(8,1078.571); h_SL2L366->SetBinContent(9,1185.714); h_SL2L366->SetBinContent(10,1235.714); h_SL2L366->SetBinContent(11,1514.286); h_SL2L366->SetBinContent(12,1578.571); h_SL2L366->SetBinContent(13,1742.857); h_SL2L366->SetBinContent(14,1778.571); h_SL2L366->SetBinContent(15,2032.143); h_SL2L366->SetBinContent(16,2067.857); h_SL2L366->SetBinContent(17,2307.143); h_SL2L366->SetBinContent(18,2528.571); h_SL2L366->SetBinContent(19,2725); h_SL2L366->SetBinContent(20,2921.428); h_SL2L366->SetBinContent(21,2896.428); h_SL2L366->SetBinContent(22,3246.428); h_SL2L366->SetBinContent(23,3542.857); h_SL2L366->SetBinContent(24,4092.857); h_SL2L366->SetBinContent(25,8928.571); h_SL2L366->SetBinContent(26,28735.71); h_SL2L366->SetBinContent(27,43782.14); h_SL2L366->SetBinContent(28,51689.29); h_SL2L366->SetBinContent(29,54196.43); h_SL2L366->SetBinContent(30,51389.29); h_SL2L366->SetBinContent(31,46917.86); h_SL2L366->SetBinContent(32,47100); h_SL2L366->SetBinContent(33,44692.86); h_SL2L366->SetBinContent(34,25800); h_SL2L366->SetBinContent(35,7050); h_SL2L366->SetBinContent(36,4010.714); h_SL2L366->SetBinContent(37,3050); h_SL2L366->SetBinContent(38,2485.714); h_SL2L366->SetBinContent(39,2342.857); h_SL2L366->SetBinContent(40,2785.714); h_SL2L366->SetBinContent(41,1803.571); h_SL2L366->SetBinContent(42,1742.857); h_SL2L366->SetBinContent(43,1467.857); h_SL2L366->SetBinContent(44,1396.429); h_SL2L366->SetBinContent(45,1292.857); h_SL2L366->SetBinContent(46,1253.571); h_SL2L366->SetBinContent(47,1167.857); h_SL2L366->SetBinContent(48,946.4286); h_SL2L366->SetBinContent(49,875); h_SL2L366->SetBinContent(50,803.5714); h_SL2L366->SetBinContent(51,814.2857); h_SL2L366->SetBinContent(52,635.7143); h_SL2L366->SetBinContent(53,689.2857); h_SL2L366->SetBinContent(54,614.2857); h_SL2L366->SetBinContent(55,610.7143); h_SL2L366->SetBinContent(56,492.8571); h_SL2L366->SetBinContent(57,503.5714); h_SL2L366->SetMaximum(62325.89); 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,739.2857); h_SL2L467->SetBinContent(3,646.4286); h_SL2L467->SetBinContent(4,878.5714); h_SL2L467->SetBinContent(5,932.1428); h_SL2L467->SetBinContent(6,914.2857); h_SL2L467->SetBinContent(7,1042.857); h_SL2L467->SetBinContent(8,957.1428); h_SL2L467->SetBinContent(9,1164.286); h_SL2L467->SetBinContent(10,1146.429); h_SL2L467->SetBinContent(11,1342.857); h_SL2L467->SetBinContent(12,1614.286); h_SL2L467->SetBinContent(13,1560.714); h_SL2L467->SetBinContent(14,1771.429); h_SL2L467->SetBinContent(15,1882.143); h_SL2L467->SetBinContent(16,1978.571); h_SL2L467->SetBinContent(17,2135.714); h_SL2L467->SetBinContent(18,2317.857); h_SL2L467->SetBinContent(19,2639.286); h_SL2L467->SetBinContent(20,2889.286); h_SL2L467->SetBinContent(21,2796.428); h_SL2L467->SetBinContent(22,3035.714); h_SL2L467->SetBinContent(23,3303.571); h_SL2L467->SetBinContent(24,3678.571); h_SL2L467->SetBinContent(25,4639.286); h_SL2L467->SetBinContent(26,18139.29); h_SL2L467->SetBinContent(27,37285.71); h_SL2L467->SetBinContent(28,48471.43); h_SL2L467->SetBinContent(29,53478.57); h_SL2L467->SetBinContent(30,54050); h_SL2L467->SetBinContent(31,48492.86); h_SL2L467->SetBinContent(32,46792.86); h_SL2L467->SetBinContent(33,46632.14); h_SL2L467->SetBinContent(34,38546.43); h_SL2L467->SetBinContent(35,13157.14); h_SL2L467->SetBinContent(36,5185.714); h_SL2L467->SetBinContent(37,3267.857); h_SL2L467->SetBinContent(38,2717.857); h_SL2L467->SetBinContent(39,2364.286); h_SL2L467->SetBinContent(40,2135.714); h_SL2L467->SetBinContent(41,1775); h_SL2L467->SetBinContent(42,1828.571); h_SL2L467->SetBinContent(43,1485.714); h_SL2L467->SetBinContent(44,1346.429); h_SL2L467->SetBinContent(45,1303.571); h_SL2L467->SetBinContent(46,1160.714); h_SL2L467->SetBinContent(47,1128.571); h_SL2L467->SetBinContent(48,1028.571); h_SL2L467->SetBinContent(49,960.7143); h_SL2L467->SetBinContent(50,796.4286); h_SL2L467->SetBinContent(51,792.8571); h_SL2L467->SetBinContent(52,735.7143); h_SL2L467->SetBinContent(53,653.5714); h_SL2L467->SetBinContent(54,578.5714); h_SL2L467->SetBinContent(55,532.1428); h_SL2L467->SetBinContent(56,571.4286); h_SL2L467->SetBinContent(57,485.7143); h_SL2L467->SetMaximum(62325.89); 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 5053"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }