void RatesPerCell_Removing_noisy_cells_run_5656_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:26:19 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9740.644,67.5,87665.79); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5656",60,0,60); h_SL2L164->SetBinContent(1,651.4286); h_SL2L164->SetBinContent(2,824.2857); h_SL2L164->SetBinContent(3,982.8572); h_SL2L164->SetBinContent(4,1095.714); h_SL2L164->SetBinContent(5,1137.143); h_SL2L164->SetBinContent(6,1108.571); h_SL2L164->SetBinContent(7,1234.286); h_SL2L164->SetBinContent(8,1282.857); h_SL2L164->SetBinContent(9,1405.714); h_SL2L164->SetBinContent(10,1591.429); h_SL2L164->SetBinContent(11,1727.143); h_SL2L164->SetBinContent(12,1845.714); h_SL2L164->SetBinContent(13,1971.429); h_SL2L164->SetBinContent(14,2254.286); h_SL2L164->SetBinContent(15,2311.429); h_SL2L164->SetBinContent(16,2450); h_SL2L164->SetBinContent(17,2762.857); h_SL2L164->SetBinContent(18,2824.286); h_SL2L164->SetBinContent(19,3074.286); h_SL2L164->SetBinContent(20,3241.429); h_SL2L164->SetBinContent(21,3430); h_SL2L164->SetBinContent(22,3735.714); h_SL2L164->SetBinContent(23,4038.572); h_SL2L164->SetBinContent(24,4387.143); h_SL2L164->SetBinContent(25,9964.286); h_SL2L164->SetBinContent(26,32274.29); h_SL2L164->SetBinContent(27,49730); h_SL2L164->SetBinContent(28,57870); h_SL2L164->SetBinContent(29,58864.29); h_SL2L164->SetBinContent(30,52331.43); h_SL2L164->SetBinContent(31,44354.29); h_SL2L164->SetBinContent(32,41764.29); h_SL2L164->SetBinContent(33,39265.71); h_SL2L164->SetBinContent(34,22008.57); h_SL2L164->SetBinContent(36,3988.572); h_SL2L164->SetBinContent(37,3262.857); h_SL2L164->SetBinContent(38,2692.857); h_SL2L164->SetBinContent(39,2392.857); h_SL2L164->SetBinContent(40,1881.429); h_SL2L164->SetBinContent(41,1860); h_SL2L164->SetBinContent(42,1834.286); h_SL2L164->SetBinContent(43,1595.714); h_SL2L164->SetBinContent(44,1540); h_SL2L164->SetBinContent(45,1420); h_SL2L164->SetBinContent(46,1367.143); h_SL2L164->SetBinContent(47,1311.429); h_SL2L164->SetBinContent(48,1182.857); h_SL2L164->SetBinContent(49,1102.857); h_SL2L164->SetBinContent(50,1064.286); h_SL2L164->SetBinContent(51,1022.857); h_SL2L164->SetBinContent(52,3485.714); h_SL2L164->SetBinContent(53,930); h_SL2L164->SetBinContent(54,1004.286); h_SL2L164->SetBinContent(55,864.2857); h_SL2L164->SetBinContent(56,771.4286); h_SL2L164->SetBinContent(57,750); h_SL2L164->SetMaximum(77925.15); 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,621.4286); h_SL2L265->SetBinContent(2,781.4286); h_SL2L265->SetBinContent(3,857.1429); h_SL2L265->SetBinContent(4,1045.714); h_SL2L265->SetBinContent(5,1074.286); h_SL2L265->SetBinContent(6,1095.714); h_SL2L265->SetBinContent(7,1158.571); h_SL2L265->SetBinContent(8,1271.429); h_SL2L265->SetBinContent(9,1287.143); h_SL2L265->SetBinContent(10,1487.143); h_SL2L265->SetBinContent(11,1642.857); h_SL2L265->SetBinContent(12,1758.571); h_SL2L265->SetBinContent(13,1824.286); h_SL2L265->SetBinContent(14,2131.429); h_SL2L265->SetBinContent(15,2224.286); h_SL2L265->SetBinContent(16,2305.714); h_SL2L265->SetBinContent(17,2508.572); h_SL2L265->SetBinContent(18,2792.857); h_SL2L265->SetBinContent(19,2781.429); h_SL2L265->SetBinContent(20,3201.429); h_SL2L265->SetBinContent(21,3254.286); h_SL2L265->SetBinContent(22,3434.286); h_SL2L265->SetBinContent(23,3822.857); h_SL2L265->SetBinContent(24,4084.286); h_SL2L265->SetBinContent(25,5065.714); h_SL2L265->SetBinContent(26,20247.14); h_SL2L265->SetBinContent(27,42458.57); h_SL2L265->SetBinContent(28,54515.71); h_SL2L265->SetBinContent(29,58898.57); h_SL2L265->SetBinContent(30,55825.71); h_SL2L265->SetBinContent(31,47451.43); h_SL2L265->SetBinContent(32,42640); h_SL2L265->SetBinContent(33,40991.43); h_SL2L265->SetBinContent(34,33038.57); h_SL2L265->SetBinContent(35,11540); h_SL2L265->SetBinContent(36,4861.429); h_SL2L265->SetBinContent(37,3482.857); h_SL2L265->SetBinContent(38,2851.429); h_SL2L265->SetBinContent(39,2457.143); h_SL2L265->SetBinContent(40,2185.714); h_SL2L265->SetBinContent(41,1951.429); h_SL2L265->SetBinContent(42,1844.286); h_SL2L265->SetBinContent(43,1615.714); h_SL2L265->SetBinContent(44,1540); h_SL2L265->SetBinContent(45,1421.429); h_SL2L265->SetBinContent(46,1357.143); h_SL2L265->SetBinContent(47,1295.714); h_SL2L265->SetBinContent(48,1205.714); h_SL2L265->SetBinContent(49,1142.857); h_SL2L265->SetBinContent(50,1061.429); h_SL2L265->SetBinContent(51,1037.143); h_SL2L265->SetBinContent(52,1042.857); h_SL2L265->SetBinContent(53,878.5715); h_SL2L265->SetBinContent(54,944.2858); h_SL2L265->SetBinContent(55,988.5715); h_SL2L265->SetBinContent(56,772.8572); h_SL2L265->SetBinContent(57,755.7143); h_SL2L265->SetMaximum(67761.29); 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,654.2857); h_SL2L366->SetBinContent(2,828.5715); h_SL2L366->SetBinContent(3,965.7143); h_SL2L366->SetBinContent(4,1052.857); h_SL2L366->SetBinContent(5,1060); h_SL2L366->SetBinContent(6,1061.429); h_SL2L366->SetBinContent(7,1192.857); h_SL2L366->SetBinContent(8,1248.571); h_SL2L366->SetBinContent(9,1362.857); h_SL2L366->SetBinContent(10,1494.286); h_SL2L366->SetBinContent(11,1621.429); h_SL2L366->SetBinContent(12,1788.571); h_SL2L366->SetBinContent(13,1872.857); h_SL2L366->SetBinContent(14,2171.429); h_SL2L366->SetBinContent(15,2261.429); h_SL2L366->SetBinContent(16,2268.572); h_SL2L366->SetBinContent(17,2667.143); h_SL2L366->SetBinContent(18,2734.286); h_SL2L366->SetBinContent(19,3000); h_SL2L366->SetBinContent(20,3038.572); h_SL2L366->SetBinContent(21,3392.857); h_SL2L366->SetBinContent(22,3582.857); h_SL2L366->SetBinContent(23,3860); h_SL2L366->SetBinContent(24,4247.143); h_SL2L366->SetBinContent(25,9854.286); h_SL2L366->SetBinContent(26,32342.86); h_SL2L366->SetBinContent(27,49470); h_SL2L366->SetBinContent(28,57655.71); h_SL2L366->SetBinContent(29,58440); h_SL2L366->SetBinContent(30,52147.14); h_SL2L366->SetBinContent(31,44260); h_SL2L366->SetBinContent(32,41738.57); h_SL2L366->SetBinContent(33,38875.71); h_SL2L366->SetBinContent(34,21655.71); h_SL2L366->SetBinContent(35,6460); h_SL2L366->SetBinContent(36,3932.857); h_SL2L366->SetBinContent(37,3051.429); h_SL2L366->SetBinContent(38,2521.429); h_SL2L366->SetBinContent(39,2190); h_SL2L366->SetBinContent(40,1981.429); h_SL2L366->SetBinContent(41,1800); h_SL2L366->SetBinContent(42,1721.429); h_SL2L366->SetBinContent(43,1538.571); h_SL2L366->SetBinContent(44,1387.143); h_SL2L366->SetBinContent(45,1325.714); h_SL2L366->SetBinContent(46,1282.857); h_SL2L366->SetBinContent(47,1214.286); h_SL2L366->SetBinContent(48,1112.857); h_SL2L366->SetBinContent(49,1061.429); h_SL2L366->SetBinContent(50,1010); h_SL2L366->SetBinContent(51,1041.429); h_SL2L366->SetBinContent(52,931.4286); h_SL2L366->SetBinContent(53,871.4286); h_SL2L366->SetBinContent(54,928.5715); h_SL2L366->SetBinContent(55,881.4286); h_SL2L366->SetBinContent(56,798.5715); h_SL2L366->SetBinContent(57,740); h_SL2L366->SetMaximum(67761.29); 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,780); h_SL2L467->SetBinContent(3,825.7143); h_SL2L467->SetBinContent(4,991.4286); h_SL2L467->SetBinContent(5,982.8572); h_SL2L467->SetBinContent(6,1041.429); h_SL2L467->SetBinContent(7,1124.286); h_SL2L467->SetBinContent(8,1174.286); h_SL2L467->SetBinContent(9,1250); h_SL2L467->SetBinContent(10,1374.286); h_SL2L467->SetBinContent(11,1530); h_SL2L467->SetBinContent(12,1690); h_SL2L467->SetBinContent(13,1691.429); h_SL2L467->SetBinContent(14,2050); h_SL2L467->SetBinContent(15,2151.429); h_SL2L467->SetBinContent(16,2167.143); h_SL2L467->SetBinContent(17,2397.143); h_SL2L467->SetBinContent(18,2717.143); h_SL2L467->SetBinContent(19,2725.714); h_SL2L467->SetBinContent(20,3052.857); h_SL2L467->SetBinContent(21,3131.429); h_SL2L467->SetBinContent(22,3392.857); h_SL2L467->SetBinContent(23,3634.286); h_SL2L467->SetBinContent(24,3978.572); h_SL2L467->SetBinContent(25,4901.429); h_SL2L467->SetBinContent(26,20214.29); h_SL2L467->SetBinContent(27,42551.43); h_SL2L467->SetBinContent(28,54582.86); h_SL2L467->SetBinContent(29,58922.86); h_SL2L467->SetBinContent(30,56210); h_SL2L467->SetBinContent(31,47478.57); h_SL2L467->SetBinContent(32,42544.29); h_SL2L467->SetBinContent(33,40905.71); h_SL2L467->SetBinContent(34,33094.29); h_SL2L467->SetBinContent(35,11500); h_SL2L467->SetBinContent(36,4704.286); h_SL2L467->SetBinContent(37,3334.286); h_SL2L467->SetBinContent(38,2654.286); h_SL2L467->SetBinContent(39,2295.714); h_SL2L467->SetBinContent(40,2048.572); h_SL2L467->SetBinContent(41,1871.429); h_SL2L467->SetBinContent(42,1770); h_SL2L467->SetBinContent(43,1492.857); h_SL2L467->SetBinContent(44,1454.286); h_SL2L467->SetBinContent(45,1322.857); h_SL2L467->SetBinContent(46,1261.429); h_SL2L467->SetBinContent(47,1188.571); h_SL2L467->SetBinContent(48,1140); h_SL2L467->SetBinContent(49,1120); h_SL2L467->SetBinContent(50,1020); h_SL2L467->SetBinContent(51,977.1429); h_SL2L467->SetBinContent(52,978.5715); h_SL2L467->SetBinContent(53,845.7143); h_SL2L467->SetBinContent(54,915.7143); h_SL2L467->SetBinContent(55,921.4286); h_SL2L467->SetBinContent(56,781.4286); h_SL2L467->SetBinContent(57,770); h_SL2L467->SetMaximum(67761.29); 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 5656"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }