void RatesPerCell_Removing_noisy_cells_run_5272_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:00:37 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9033.682,67.5,81303.13); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5272",60,0,60); h_SL2L164->SetBinContent(1,632.1428); h_SL2L164->SetBinContent(2,785.7143); h_SL2L164->SetBinContent(3,900); h_SL2L164->SetBinContent(4,1032.143); h_SL2L164->SetBinContent(5,1035.714); h_SL2L164->SetBinContent(6,1192.857); h_SL2L164->SetBinContent(7,1182.143); h_SL2L164->SetBinContent(8,1150); h_SL2L164->SetBinContent(9,1489.286); h_SL2L164->SetBinContent(10,1471.429); h_SL2L164->SetBinContent(11,1642.857); h_SL2L164->SetBinContent(12,1782.143); h_SL2L164->SetBinContent(13,1889.286); h_SL2L164->SetBinContent(14,2103.571); h_SL2L164->SetBinContent(15,2085.714); h_SL2L164->SetBinContent(16,2303.571); h_SL2L164->SetBinContent(17,2528.571); h_SL2L164->SetBinContent(18,2614.286); h_SL2L164->SetBinContent(19,3153.571); h_SL2L164->SetBinContent(20,3107.143); h_SL2L164->SetBinContent(21,3410.714); h_SL2L164->SetBinContent(22,3735.714); h_SL2L164->SetBinContent(23,3885.714); h_SL2L164->SetBinContent(24,4289.286); h_SL2L164->SetBinContent(25,9100); h_SL2L164->SetBinContent(26,28742.86); h_SL2L164->SetBinContent(27,45342.86); h_SL2L164->SetBinContent(28,52942.86); h_SL2L164->SetBinContent(29,54646.43); h_SL2L164->SetBinContent(30,52560.71); h_SL2L164->SetBinContent(31,48003.57); h_SL2L164->SetBinContent(32,46803.57); h_SL2L164->SetBinContent(33,46050); h_SL2L164->SetBinContent(34,26385.71); h_SL2L164->SetBinContent(36,4607.143); h_SL2L164->SetBinContent(37,3478.571); h_SL2L164->SetBinContent(38,2853.571); h_SL2L164->SetBinContent(39,2732.143); h_SL2L164->SetBinContent(40,2042.857); h_SL2L164->SetBinContent(41,2000); h_SL2L164->SetBinContent(42,1928.571); h_SL2L164->SetBinContent(43,1710.714); h_SL2L164->SetBinContent(44,1575); h_SL2L164->SetBinContent(45,1428.571); h_SL2L164->SetBinContent(46,1410.714); h_SL2L164->SetBinContent(47,1296.429); h_SL2L164->SetBinContent(48,1217.857); h_SL2L164->SetBinContent(49,1017.857); h_SL2L164->SetBinContent(50,1007.143); h_SL2L164->SetBinContent(51,810.7143); h_SL2L164->SetBinContent(52,871.4286); h_SL2L164->SetBinContent(53,789.2857); h_SL2L164->SetBinContent(54,710.7143); h_SL2L164->SetBinContent(55,603.5714); h_SL2L164->SetBinContent(56,553.5714); h_SL2L164->SetBinContent(57,492.8571); h_SL2L164->SetMaximum(72269.45); 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,560.7143); h_SL2L265->SetBinContent(2,735.7143); h_SL2L265->SetBinContent(3,850); h_SL2L265->SetBinContent(4,932.1428); h_SL2L265->SetBinContent(5,985.7143); h_SL2L265->SetBinContent(6,1050); h_SL2L265->SetBinContent(7,1221.429); h_SL2L265->SetBinContent(8,1110.714); h_SL2L265->SetBinContent(9,1192.857); h_SL2L265->SetBinContent(10,1417.857); h_SL2L265->SetBinContent(11,1546.429); h_SL2L265->SetBinContent(12,1710.714); h_SL2L265->SetBinContent(13,1750); h_SL2L265->SetBinContent(14,1964.286); h_SL2L265->SetBinContent(15,2025); h_SL2L265->SetBinContent(16,2189.286); h_SL2L265->SetBinContent(17,2517.857); h_SL2L265->SetBinContent(18,2467.857); h_SL2L265->SetBinContent(19,2753.571); h_SL2L265->SetBinContent(20,3092.857); h_SL2L265->SetBinContent(21,3235.714); h_SL2L265->SetBinContent(22,3417.857); h_SL2L265->SetBinContent(23,3775); h_SL2L265->SetBinContent(24,3953.571); h_SL2L265->SetBinContent(25,4796.429); h_SL2L265->SetBinContent(26,18671.43); h_SL2L265->SetBinContent(27,37767.86); h_SL2L265->SetBinContent(28,49735.71); h_SL2L265->SetBinContent(29,53896.43); h_SL2L265->SetBinContent(30,54178.57); h_SL2L265->SetBinContent(31,49250); h_SL2L265->SetBinContent(32,46857.14); h_SL2L265->SetBinContent(33,47067.86); h_SL2L265->SetBinContent(34,39403.57); h_SL2L265->SetBinContent(35,14214.29); h_SL2L265->SetBinContent(36,5567.857); h_SL2L265->SetBinContent(37,3792.857); h_SL2L265->SetBinContent(38,3060.714); h_SL2L265->SetBinContent(39,2900); h_SL2L265->SetBinContent(40,2439.286); h_SL2L265->SetBinContent(41,2050); h_SL2L265->SetBinContent(42,1942.857); h_SL2L265->SetBinContent(43,1800); h_SL2L265->SetBinContent(44,1567.857); h_SL2L265->SetBinContent(45,1539.286); h_SL2L265->SetBinContent(46,1396.429); h_SL2L265->SetBinContent(47,1310.714); h_SL2L265->SetBinContent(48,1217.857); h_SL2L265->SetBinContent(49,1071.429); h_SL2L265->SetBinContent(50,964.2857); h_SL2L265->SetBinContent(51,985.7143); h_SL2L265->SetBinContent(52,803.5714); h_SL2L265->SetBinContent(53,746.4286); h_SL2L265->SetBinContent(54,707.1428); h_SL2L265->SetBinContent(55,696.4286); h_SL2L265->SetBinContent(56,596.4286); h_SL2L265->SetBinContent(57,482.1429); h_SL2L265->SetMaximum(62843.39); 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,632.1428); h_SL2L366->SetBinContent(2,739.2857); h_SL2L366->SetBinContent(3,850); h_SL2L366->SetBinContent(4,967.8571); h_SL2L366->SetBinContent(5,989.2857); h_SL2L366->SetBinContent(6,1171.429); h_SL2L366->SetBinContent(7,1150); h_SL2L366->SetBinContent(8,1035.714); h_SL2L366->SetBinContent(9,1296.429); h_SL2L366->SetBinContent(10,1382.143); h_SL2L366->SetBinContent(11,1603.571); h_SL2L366->SetBinContent(12,1610.714); h_SL2L366->SetBinContent(13,1925); h_SL2L366->SetBinContent(14,1985.714); h_SL2L366->SetBinContent(15,2053.571); h_SL2L366->SetBinContent(16,2228.571); h_SL2L366->SetBinContent(17,2510.714); h_SL2L366->SetBinContent(18,2410.714); h_SL2L366->SetBinContent(19,2942.857); h_SL2L366->SetBinContent(20,3021.428); h_SL2L366->SetBinContent(21,3342.857); h_SL2L366->SetBinContent(22,3507.143); h_SL2L366->SetBinContent(23,3742.857); h_SL2L366->SetBinContent(24,4242.857); h_SL2L366->SetBinContent(25,8928.571); h_SL2L366->SetBinContent(26,28732.14); h_SL2L366->SetBinContent(27,45160.71); h_SL2L366->SetBinContent(28,52546.43); h_SL2L366->SetBinContent(29,54146.43); h_SL2L366->SetBinContent(30,52371.43); h_SL2L366->SetBinContent(31,47653.57); h_SL2L366->SetBinContent(32,46700); h_SL2L366->SetBinContent(33,45728.57); h_SL2L366->SetBinContent(34,26235.71); h_SL2L366->SetBinContent(35,7771.429); h_SL2L366->SetBinContent(36,4353.571); h_SL2L366->SetBinContent(37,3132.143); h_SL2L366->SetBinContent(38,2889.286); h_SL2L366->SetBinContent(39,2539.286); h_SL2L366->SetBinContent(40,2182.143); h_SL2L366->SetBinContent(41,2035.714); h_SL2L366->SetBinContent(42,1739.286); h_SL2L366->SetBinContent(43,1607.143); h_SL2L366->SetBinContent(44,1478.571); h_SL2L366->SetBinContent(45,1332.143); h_SL2L366->SetBinContent(46,1321.429); h_SL2L366->SetBinContent(47,1167.857); h_SL2L366->SetBinContent(48,1150); h_SL2L366->SetBinContent(49,975); h_SL2L366->SetBinContent(50,975); h_SL2L366->SetBinContent(51,792.8571); h_SL2L366->SetBinContent(52,778.5714); h_SL2L366->SetBinContent(53,685.7143); h_SL2L366->SetBinContent(54,753.5714); h_SL2L366->SetBinContent(55,614.2857); h_SL2L366->SetBinContent(56,546.4286); h_SL2L366->SetBinContent(57,485.7143); h_SL2L366->SetMaximum(62843.39); 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,710.7143); h_SL2L467->SetBinContent(3,785.7143); h_SL2L467->SetBinContent(4,828.5714); h_SL2L467->SetBinContent(5,1028.571); h_SL2L467->SetBinContent(6,1035.714); h_SL2L467->SetBinContent(7,1071.429); h_SL2L467->SetBinContent(8,1082.143); h_SL2L467->SetBinContent(9,1132.143); h_SL2L467->SetBinContent(10,1325); h_SL2L467->SetBinContent(11,1385.714); h_SL2L467->SetBinContent(12,1639.286); h_SL2L467->SetBinContent(13,1653.571); h_SL2L467->SetBinContent(14,2078.571); h_SL2L467->SetBinContent(15,1985.714); h_SL2L467->SetBinContent(16,2050); h_SL2L467->SetBinContent(17,2375); h_SL2L467->SetBinContent(18,2278.571); h_SL2L467->SetBinContent(19,2539.286); h_SL2L467->SetBinContent(20,3000); h_SL2L467->SetBinContent(21,3042.857); h_SL2L467->SetBinContent(22,3239.286); h_SL2L467->SetBinContent(23,3635.714); h_SL2L467->SetBinContent(24,3685.714); h_SL2L467->SetBinContent(25,4507.143); h_SL2L467->SetBinContent(26,18635.71); h_SL2L467->SetBinContent(27,37785.71); h_SL2L467->SetBinContent(28,49600); h_SL2L467->SetBinContent(29,53932.14); h_SL2L467->SetBinContent(30,54371.43); h_SL2L467->SetBinContent(31,49275); h_SL2L467->SetBinContent(32,46932.14); h_SL2L467->SetBinContent(33,47028.57); h_SL2L467->SetBinContent(34,39735.71); h_SL2L467->SetBinContent(35,14150); h_SL2L467->SetBinContent(36,5450); h_SL2L467->SetBinContent(37,3582.143); h_SL2L467->SetBinContent(38,2875); h_SL2L467->SetBinContent(39,2575); h_SL2L467->SetBinContent(40,2328.571); h_SL2L467->SetBinContent(41,1892.857); h_SL2L467->SetBinContent(42,1796.429); h_SL2L467->SetBinContent(43,1700); h_SL2L467->SetBinContent(44,1425); h_SL2L467->SetBinContent(45,1364.286); h_SL2L467->SetBinContent(46,1264.286); h_SL2L467->SetBinContent(47,1178.571); h_SL2L467->SetBinContent(48,1160.714); h_SL2L467->SetBinContent(49,985.7143); h_SL2L467->SetBinContent(50,967.8571); h_SL2L467->SetBinContent(51,846.4286); h_SL2L467->SetBinContent(52,789.2857); h_SL2L467->SetBinContent(53,696.4286); h_SL2L467->SetBinContent(54,707.1428); h_SL2L467->SetBinContent(55,671.4286); h_SL2L467->SetBinContent(56,603.5714); h_SL2L467->SetBinContent(57,517.8571); h_SL2L467->SetMaximum(62843.39); 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 5272"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }