void RatesPerCell_Removing_noisy_cells_run_5621_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:46:35 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9569.726,67.5,86127.53); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5621",60,0,60); h_SL2L164->SetBinContent(1,735.7143); h_SL2L164->SetBinContent(2,800); h_SL2L164->SetBinContent(3,1060.714); h_SL2L164->SetBinContent(4,1142.857); h_SL2L164->SetBinContent(5,1157.143); h_SL2L164->SetBinContent(6,1317.857); h_SL2L164->SetBinContent(7,1164.286); h_SL2L164->SetBinContent(8,1292.857); h_SL2L164->SetBinContent(9,1489.286); h_SL2L164->SetBinContent(10,1535.714); h_SL2L164->SetBinContent(11,1800); h_SL2L164->SetBinContent(12,1850); h_SL2L164->SetBinContent(13,2100); h_SL2L164->SetBinContent(14,2457.143); h_SL2L164->SetBinContent(15,2446.428); h_SL2L164->SetBinContent(16,2742.857); h_SL2L164->SetBinContent(17,2721.428); h_SL2L164->SetBinContent(18,2878.571); h_SL2L164->SetBinContent(19,3178.571); h_SL2L164->SetBinContent(20,3421.428); h_SL2L164->SetBinContent(21,3539.286); h_SL2L164->SetBinContent(22,3682.143); h_SL2L164->SetBinContent(23,4203.571); h_SL2L164->SetBinContent(24,4307.143); h_SL2L164->SetBinContent(25,9546.429); h_SL2L164->SetBinContent(26,32257.14); h_SL2L164->SetBinContent(27,49267.86); h_SL2L164->SetBinContent(28,57271.43); h_SL2L164->SetBinContent(29,57889.29); h_SL2L164->SetBinContent(30,52400); h_SL2L164->SetBinContent(31,44664.29); h_SL2L164->SetBinContent(32,42992.86); h_SL2L164->SetBinContent(33,39225); h_SL2L164->SetBinContent(34,21853.57); h_SL2L164->SetBinContent(36,3935.714); h_SL2L164->SetBinContent(37,3192.857); h_SL2L164->SetBinContent(38,2653.571); h_SL2L164->SetBinContent(39,2289.286); h_SL2L164->SetBinContent(40,1867.857); h_SL2L164->SetBinContent(41,1842.857); h_SL2L164->SetBinContent(42,1792.857); h_SL2L164->SetBinContent(43,1628.571); h_SL2L164->SetBinContent(44,1475); h_SL2L164->SetBinContent(45,1292.857); h_SL2L164->SetBinContent(46,1282.143); h_SL2L164->SetBinContent(47,1392.857); h_SL2L164->SetBinContent(48,1300); h_SL2L164->SetBinContent(49,1071.429); h_SL2L164->SetBinContent(50,1128.571); h_SL2L164->SetBinContent(51,1000); h_SL2L164->SetBinContent(52,942.8571); h_SL2L164->SetBinContent(53,1021.429); h_SL2L164->SetBinContent(54,1100); h_SL2L164->SetBinContent(55,789.2857); h_SL2L164->SetBinContent(56,775); h_SL2L164->SetBinContent(57,700); h_SL2L164->SetMaximum(76557.8); 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,703.5714); h_SL2L265->SetBinContent(2,803.5714); h_SL2L265->SetBinContent(3,925); h_SL2L265->SetBinContent(4,1057.143); h_SL2L265->SetBinContent(5,1164.286); h_SL2L265->SetBinContent(6,1146.429); h_SL2L265->SetBinContent(7,1253.571); h_SL2L265->SetBinContent(8,1175); h_SL2L265->SetBinContent(9,1371.429); h_SL2L265->SetBinContent(10,1557.143); h_SL2L265->SetBinContent(11,1567.857); h_SL2L265->SetBinContent(12,1657.143); h_SL2L265->SetBinContent(13,1967.857); h_SL2L265->SetBinContent(14,2278.571); h_SL2L265->SetBinContent(15,2357.143); h_SL2L265->SetBinContent(16,2482.143); h_SL2L265->SetBinContent(17,2710.714); h_SL2L265->SetBinContent(18,2910.714); h_SL2L265->SetBinContent(19,2764.286); h_SL2L265->SetBinContent(20,3275); h_SL2L265->SetBinContent(21,3307.143); h_SL2L265->SetBinContent(22,3553.571); h_SL2L265->SetBinContent(23,3889.286); h_SL2L265->SetBinContent(24,4042.857); h_SL2L265->SetBinContent(25,4914.286); h_SL2L265->SetBinContent(26,19942.86); h_SL2L265->SetBinContent(27,42028.57); h_SL2L265->SetBinContent(28,54678.57); h_SL2L265->SetBinContent(29,57689.29); h_SL2L265->SetBinContent(30,55728.57); h_SL2L265->SetBinContent(31,47450); h_SL2L265->SetBinContent(32,43364.29); h_SL2L265->SetBinContent(33,40978.57); h_SL2L265->SetBinContent(34,33510.71); h_SL2L265->SetBinContent(35,11503.57); h_SL2L265->SetBinContent(36,4864.286); h_SL2L265->SetBinContent(37,3621.428); h_SL2L265->SetBinContent(38,2717.857); h_SL2L265->SetBinContent(39,2489.286); h_SL2L265->SetBinContent(40,2171.428); h_SL2L265->SetBinContent(41,1996.429); h_SL2L265->SetBinContent(42,1725); h_SL2L265->SetBinContent(43,1614.286); h_SL2L265->SetBinContent(44,1539.286); h_SL2L265->SetBinContent(45,1328.571); h_SL2L265->SetBinContent(46,1253.571); h_SL2L265->SetBinContent(47,1282.143); h_SL2L265->SetBinContent(48,1303.571); h_SL2L265->SetBinContent(49,1128.571); h_SL2L265->SetBinContent(50,1110.714); h_SL2L265->SetBinContent(51,1010.714); h_SL2L265->SetBinContent(52,892.8571); h_SL2L265->SetBinContent(53,996.4286); h_SL2L265->SetBinContent(54,910.7143); h_SL2L265->SetBinContent(55,1039.286); h_SL2L265->SetBinContent(56,785.7143); h_SL2L265->SetBinContent(57,696.4286); h_SL2L265->SetMaximum(66572.68); 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,789.2857); h_SL2L366->SetBinContent(2,792.8571); h_SL2L366->SetBinContent(3,982.1428); h_SL2L366->SetBinContent(4,1071.429); h_SL2L366->SetBinContent(5,1028.571); h_SL2L366->SetBinContent(6,1221.429); h_SL2L366->SetBinContent(7,1075); h_SL2L366->SetBinContent(8,1310.714); h_SL2L366->SetBinContent(9,1607.143); h_SL2L366->SetBinContent(10,1364.286); h_SL2L366->SetBinContent(11,1657.143); h_SL2L366->SetBinContent(12,1753.571); h_SL2L366->SetBinContent(13,1967.857); h_SL2L366->SetBinContent(14,2346.428); h_SL2L366->SetBinContent(15,2350); h_SL2L366->SetBinContent(16,2553.571); h_SL2L366->SetBinContent(17,2689.286); h_SL2L366->SetBinContent(18,2771.428); h_SL2L366->SetBinContent(19,2960.714); h_SL2L366->SetBinContent(20,3285.714); h_SL2L366->SetBinContent(21,3428.571); h_SL2L366->SetBinContent(22,3600); h_SL2L366->SetBinContent(23,3885.714); h_SL2L366->SetBinContent(24,4257.143); h_SL2L366->SetBinContent(25,9460.714); h_SL2L366->SetBinContent(26,32196.43); h_SL2L366->SetBinContent(27,49167.86); h_SL2L366->SetBinContent(28,57135.71); h_SL2L366->SetBinContent(29,57210.71); h_SL2L366->SetBinContent(30,52053.57); h_SL2L366->SetBinContent(31,44289.29); h_SL2L366->SetBinContent(32,42860.71); h_SL2L366->SetBinContent(33,39125); h_SL2L366->SetBinContent(34,21692.86); h_SL2L366->SetBinContent(35,6585.714); h_SL2L366->SetBinContent(36,3928.571); h_SL2L366->SetBinContent(37,3042.857); h_SL2L366->SetBinContent(38,2578.571); h_SL2L366->SetBinContent(39,2228.571); h_SL2L366->SetBinContent(40,2003.571); h_SL2L366->SetBinContent(41,1796.429); h_SL2L366->SetBinContent(42,1660.714); h_SL2L366->SetBinContent(43,1589.286); h_SL2L366->SetBinContent(44,1385.714); h_SL2L366->SetBinContent(45,1282.143); h_SL2L366->SetBinContent(46,1207.143); h_SL2L366->SetBinContent(47,1210.714); h_SL2L366->SetBinContent(48,1217.857); h_SL2L366->SetBinContent(49,964.2857); h_SL2L366->SetBinContent(50,1071.429); h_SL2L366->SetBinContent(51,1003.571); h_SL2L366->SetBinContent(52,914.2857); h_SL2L366->SetBinContent(53,1017.857); h_SL2L366->SetBinContent(54,975); h_SL2L366->SetBinContent(55,792.8571); h_SL2L366->SetBinContent(56,782.1428); h_SL2L366->SetBinContent(57,696.4286); h_SL2L366->SetMaximum(66572.68); 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,767.8571); h_SL2L467->SetBinContent(3,875); h_SL2L467->SetBinContent(4,989.2857); h_SL2L467->SetBinContent(5,1021.429); h_SL2L467->SetBinContent(6,1167.857); h_SL2L467->SetBinContent(7,1157.143); h_SL2L467->SetBinContent(8,1067.857); h_SL2L467->SetBinContent(9,1246.429); h_SL2L467->SetBinContent(10,1453.571); h_SL2L467->SetBinContent(11,1553.571); h_SL2L467->SetBinContent(12,1628.571); h_SL2L467->SetBinContent(13,1742.857); h_SL2L467->SetBinContent(14,2153.571); h_SL2L467->SetBinContent(15,2196.428); h_SL2L467->SetBinContent(16,2335.714); h_SL2L467->SetBinContent(17,2496.428); h_SL2L467->SetBinContent(18,2764.286); h_SL2L467->SetBinContent(19,2721.428); h_SL2L467->SetBinContent(20,3217.857); h_SL2L467->SetBinContent(21,3282.143); h_SL2L467->SetBinContent(22,3428.571); h_SL2L467->SetBinContent(23,3810.714); h_SL2L467->SetBinContent(24,3885.714); h_SL2L467->SetBinContent(25,4735.714); h_SL2L467->SetBinContent(26,19742.86); h_SL2L467->SetBinContent(27,42060.71); h_SL2L467->SetBinContent(28,54657.14); h_SL2L467->SetBinContent(29,57614.29); h_SL2L467->SetBinContent(30,56135.71); h_SL2L467->SetBinContent(31,47535.71); h_SL2L467->SetBinContent(32,43621.43); h_SL2L467->SetBinContent(33,41103.57); h_SL2L467->SetBinContent(34,33610.71); h_SL2L467->SetBinContent(35,11482.14); h_SL2L467->SetBinContent(36,4642.857); h_SL2L467->SetBinContent(37,3446.428); h_SL2L467->SetBinContent(38,2571.428); h_SL2L467->SetBinContent(39,2367.857); h_SL2L467->SetBinContent(40,2046.429); h_SL2L467->SetBinContent(41,1817.857); h_SL2L467->SetBinContent(42,1657.143); h_SL2L467->SetBinContent(43,1592.857); h_SL2L467->SetBinContent(44,1482.143); h_SL2L467->SetBinContent(45,1392.857); h_SL2L467->SetBinContent(46,1232.143); h_SL2L467->SetBinContent(47,1192.857); h_SL2L467->SetBinContent(48,1160.714); h_SL2L467->SetBinContent(49,1010.714); h_SL2L467->SetBinContent(50,1064.286); h_SL2L467->SetBinContent(51,985.7143); h_SL2L467->SetBinContent(52,871.4286); h_SL2L467->SetBinContent(53,1085.714); h_SL2L467->SetBinContent(54,814.2857); h_SL2L467->SetBinContent(55,942.8571); h_SL2L467->SetBinContent(56,789.2857); h_SL2L467->SetBinContent(57,667.8571); h_SL2L467->SetMaximum(66572.68); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 5621"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }