void RatesPerCell_Removing_noisy_cells_run_6587_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:12:21 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10112.53,67.5,91012.73); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6587",60,0,60); h_SL2L164->SetBinContent(1,654.2857); h_SL2L164->SetBinContent(2,792.8572); h_SL2L164->SetBinContent(3,1002.857); h_SL2L164->SetBinContent(4,957.1429); h_SL2L164->SetBinContent(5,1074.286); h_SL2L164->SetBinContent(6,1065.714); h_SL2L164->SetBinContent(7,1061.429); h_SL2L164->SetBinContent(8,1214.286); h_SL2L164->SetBinContent(9,1342.857); h_SL2L164->SetBinContent(10,1375.714); h_SL2L164->SetBinContent(11,1570); h_SL2L164->SetBinContent(12,1678.571); h_SL2L164->SetBinContent(13,1814.286); h_SL2L164->SetBinContent(14,1911.429); h_SL2L164->SetBinContent(15,1892.857); h_SL2L164->SetBinContent(16,1998.572); h_SL2L164->SetBinContent(17,2088.572); h_SL2L164->SetBinContent(18,2192.857); h_SL2L164->SetBinContent(19,2271.429); h_SL2L164->SetBinContent(20,2392.857); h_SL2L164->SetBinContent(21,2494.286); h_SL2L164->SetBinContent(22,2792.857); h_SL2L164->SetBinContent(23,3025.714); h_SL2L164->SetBinContent(24,3508.572); h_SL2L164->SetBinContent(25,8604.286); h_SL2L164->SetBinContent(26,26747.14); h_SL2L164->SetBinContent(27,40465.71); h_SL2L164->SetBinContent(28,48648.57); h_SL2L164->SetBinContent(29,51998.57); h_SL2L164->SetBinContent(30,51685.71); h_SL2L164->SetBinContent(31,50321.43); h_SL2L164->SetBinContent(32,51027.14); h_SL2L164->SetBinContent(33,49787.14); h_SL2L164->SetBinContent(34,28865.71); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,3748.572); h_SL2L164->SetBinContent(37,8624.286); h_SL2L164->SetBinContent(38,5035.714); h_SL2L164->SetBinContent(39,6904.286); h_SL2L164->SetBinContent(40,51550); h_SL2L164->SetBinContent(41,61172.86); h_SL2L164->SetBinContent(42,12510); h_SL2L164->SetBinContent(43,12378.57); h_SL2L164->SetBinContent(44,12871.43); h_SL2L164->SetBinContent(45,1400); h_SL2L164->SetBinContent(46,1198.571); h_SL2L164->SetBinContent(47,1105.714); h_SL2L164->SetBinContent(48,1101.429); h_SL2L164->SetBinContent(49,980); h_SL2L164->SetBinContent(50,988.5715); h_SL2L164->SetBinContent(51,855.7143); h_SL2L164->SetBinContent(52,828.5715); h_SL2L164->SetBinContent(53,717.1429); h_SL2L164->SetBinContent(54,770); h_SL2L164->SetBinContent(55,637.1429); h_SL2L164->SetBinContent(56,577.1429); h_SL2L164->SetBinContent(57,6510); h_SL2L164->SetMaximum(80900.2); 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,628.5715); h_SL2L265->SetBinContent(2,750); h_SL2L265->SetBinContent(3,818.5715); h_SL2L265->SetBinContent(4,982.8572); h_SL2L265->SetBinContent(5,1021.429); h_SL2L265->SetBinContent(6,1064.286); h_SL2L265->SetBinContent(7,1075.714); h_SL2L265->SetBinContent(8,1124.286); h_SL2L265->SetBinContent(9,1267.143); h_SL2L265->SetBinContent(10,1268.571); h_SL2L265->SetBinContent(11,1462.857); h_SL2L265->SetBinContent(12,1500); h_SL2L265->SetBinContent(13,1697.143); h_SL2L265->SetBinContent(14,1812.857); h_SL2L265->SetBinContent(15,1881.429); h_SL2L265->SetBinContent(16,1925.714); h_SL2L265->SetBinContent(17,2020); h_SL2L265->SetBinContent(18,2075.714); h_SL2L265->SetBinContent(19,2298.572); h_SL2L265->SetBinContent(20,2327.143); h_SL2L265->SetBinContent(21,2387.143); h_SL2L265->SetBinContent(22,2621.429); h_SL2L265->SetBinContent(23,2790); h_SL2L265->SetBinContent(24,3062.857); h_SL2L265->SetBinContent(25,4195.714); h_SL2L265->SetBinContent(26,17680); h_SL2L265->SetBinContent(27,33882.86); h_SL2L265->SetBinContent(28,45347.14); h_SL2L265->SetBinContent(29,50304.29); h_SL2L265->SetBinContent(30,52087.14); h_SL2L265->SetBinContent(31,50837.14); h_SL2L265->SetBinContent(32,50285.71); h_SL2L265->SetBinContent(33,51514.29); h_SL2L265->SetBinContent(34,42535.71); h_SL2L265->SetBinContent(35,15368.57); h_SL2L265->SetBinContent(36,4927.143); h_SL2L265->SetBinContent(37,3274.286); h_SL2L265->SetBinContent(38,2650); h_SL2L265->SetBinContent(39,3712.857); h_SL2L265->SetBinContent(40,5421.429); h_SL2L265->SetBinContent(41,3758.572); h_SL2L265->SetBinContent(42,3282.857); h_SL2L265->SetBinContent(43,2140); h_SL2L265->SetBinContent(44,3308.572); h_SL2L265->SetBinContent(45,1408.571); h_SL2L265->SetBinContent(46,1318.571); h_SL2L265->SetBinContent(47,1164.286); h_SL2L265->SetBinContent(48,1114.286); h_SL2L265->SetBinContent(49,1031.429); h_SL2L265->SetBinContent(50,975.7143); h_SL2L265->SetBinContent(51,944.2858); h_SL2L265->SetBinContent(52,834.2857); h_SL2L265->SetBinContent(53,735.7143); h_SL2L265->SetBinContent(54,765.7143); h_SL2L265->SetBinContent(55,702.8572); h_SL2L265->SetBinContent(56,582.8572); h_SL2L265->SetBinContent(57,568.5715); h_SL2L265->SetMaximum(70348.79); 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,698.5715); h_SL2L366->SetBinContent(2,772.8572); h_SL2L366->SetBinContent(3,1007.143); h_SL2L366->SetBinContent(4,947.1429); h_SL2L366->SetBinContent(5,1022.857); h_SL2L366->SetBinContent(6,1008.571); h_SL2L366->SetBinContent(7,1105.714); h_SL2L366->SetBinContent(8,1141.429); h_SL2L366->SetBinContent(9,1272.857); h_SL2L366->SetBinContent(10,1345.714); h_SL2L366->SetBinContent(11,1540); h_SL2L366->SetBinContent(12,1541.429); h_SL2L366->SetBinContent(13,1710); h_SL2L366->SetBinContent(14,1874.286); h_SL2L366->SetBinContent(15,1811.429); h_SL2L366->SetBinContent(16,1968.572); h_SL2L366->SetBinContent(17,1968.572); h_SL2L366->SetBinContent(18,2114.286); h_SL2L366->SetBinContent(19,2198.572); h_SL2L366->SetBinContent(20,2321.429); h_SL2L366->SetBinContent(21,2428.572); h_SL2L366->SetBinContent(22,2710); h_SL2L366->SetBinContent(23,2905.714); h_SL2L366->SetBinContent(24,3278.572); h_SL2L366->SetBinContent(25,8462.857); h_SL2L366->SetBinContent(26,26602.86); h_SL2L366->SetBinContent(27,40341.43); h_SL2L366->SetBinContent(28,48780); h_SL2L366->SetBinContent(29,51420); h_SL2L366->SetBinContent(30,51474.29); h_SL2L366->SetBinContent(31,50541.43); h_SL2L366->SetBinContent(32,51045.71); h_SL2L366->SetBinContent(33,49842.86); h_SL2L366->SetBinContent(34,28868.57); h_SL2L366->SetBinContent(35,7461.429); h_SL2L366->SetBinContent(36,3748.572); h_SL2L366->SetBinContent(37,2804.286); h_SL2L366->SetBinContent(38,2344.286); h_SL2L366->SetBinContent(39,2055.714); h_SL2L366->SetBinContent(40,4038.572); h_SL2L366->SetBinContent(41,2065.714); h_SL2L366->SetBinContent(42,1647.143); h_SL2L366->SetBinContent(43,1461.429); h_SL2L366->SetBinContent(44,1441.429); h_SL2L366->SetBinContent(45,1377.143); h_SL2L366->SetBinContent(46,1182.857); h_SL2L366->SetBinContent(47,1077.143); h_SL2L366->SetBinContent(48,1062.857); h_SL2L366->SetBinContent(49,935.7143); h_SL2L366->SetBinContent(50,967.1429); h_SL2L366->SetBinContent(51,835.7143); h_SL2L366->SetBinContent(52,787.1429); h_SL2L366->SetBinContent(53,724.2857); h_SL2L366->SetBinContent(54,761.4286); h_SL2L366->SetBinContent(55,610); h_SL2L366->SetBinContent(56,558.5715); h_SL2L366->SetBinContent(57,570); h_SL2L366->SetMaximum(70348.79); 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,707.1429); h_SL2L467->SetBinContent(3,837.1429); h_SL2L467->SetBinContent(4,935.7143); h_SL2L467->SetBinContent(5,981.4286); h_SL2L467->SetBinContent(6,1018.571); h_SL2L467->SetBinContent(7,1051.429); h_SL2L467->SetBinContent(8,1101.429); h_SL2L467->SetBinContent(9,1225.714); h_SL2L467->SetBinContent(10,1277.143); h_SL2L467->SetBinContent(11,1384.286); h_SL2L467->SetBinContent(12,1524.286); h_SL2L467->SetBinContent(13,1600); h_SL2L467->SetBinContent(14,1728.571); h_SL2L467->SetBinContent(15,1814.286); h_SL2L467->SetBinContent(16,1748.571); h_SL2L467->SetBinContent(17,1941.429); h_SL2L467->SetBinContent(18,1951.429); h_SL2L467->SetBinContent(19,2182.857); h_SL2L467->SetBinContent(20,2238.572); h_SL2L467->SetBinContent(21,2238.572); h_SL2L467->SetBinContent(22,2537.143); h_SL2L467->SetBinContent(23,2701.429); h_SL2L467->SetBinContent(24,2947.143); h_SL2L467->SetBinContent(25,4114.286); h_SL2L467->SetBinContent(26,17681.43); h_SL2L467->SetBinContent(27,34060); h_SL2L467->SetBinContent(28,45327.14); h_SL2L467->SetBinContent(29,50370); h_SL2L467->SetBinContent(30,52487.14); h_SL2L467->SetBinContent(31,50892.86); h_SL2L467->SetBinContent(32,50397.14); h_SL2L467->SetBinContent(33,51758.57); h_SL2L467->SetBinContent(34,42480); h_SL2L467->SetBinContent(35,15277.14); h_SL2L467->SetBinContent(36,4700); h_SL2L467->SetBinContent(37,3110); h_SL2L467->SetBinContent(38,2587.143); h_SL2L467->SetBinContent(39,2108.572); h_SL2L467->SetBinContent(40,1978.572); h_SL2L467->SetBinContent(41,1654.286); h_SL2L467->SetBinContent(42,1985.714); h_SL2L467->SetBinContent(43,1530); h_SL2L467->SetBinContent(44,1381.429); h_SL2L467->SetBinContent(45,1312.857); h_SL2L467->SetBinContent(46,1264.286); h_SL2L467->SetBinContent(47,1118.571); h_SL2L467->SetBinContent(48,1052.857); h_SL2L467->SetBinContent(49,1018.571); h_SL2L467->SetBinContent(50,972.8572); h_SL2L467->SetBinContent(51,882.8572); h_SL2L467->SetBinContent(52,787.1429); h_SL2L467->SetBinContent(53,751.4286); h_SL2L467->SetBinContent(54,741.4286); h_SL2L467->SetBinContent(55,687.1429); h_SL2L467->SetBinContent(56,614.2857); h_SL2L467->SetBinContent(57,518.5714); h_SL2L467->SetMaximum(70348.79); 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 6587"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }