void RatesPerCell_Removing_noisy_cells_run_5487_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:13:58 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18542.6,67.5,166883.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5487",60,0,60); h_SL1L160->SetBinContent(1,245.7143); h_SL1L160->SetBinContent(2,282.8571); h_SL1L160->SetBinContent(3,325.7143); h_SL1L160->SetBinContent(4,242.8571); h_SL1L160->SetBinContent(5,317.1429); h_SL1L160->SetBinContent(6,304.2857); h_SL1L160->SetBinContent(7,288.5714); h_SL1L160->SetBinContent(8,351.4286); h_SL1L160->SetBinContent(9,292.8571); h_SL1L160->SetBinContent(10,410); h_SL1L160->SetBinContent(11,377.1429); h_SL1L160->SetBinContent(12,447.1429); h_SL1L160->SetBinContent(13,444.2857); h_SL1L160->SetBinContent(14,471.4286); h_SL1L160->SetBinContent(15,382.8571); h_SL1L160->SetBinContent(16,388.5714); h_SL1L160->SetBinContent(17,422.8571); h_SL1L160->SetBinContent(18,651.4286); h_SL1L160->SetBinContent(19,684.2857); h_SL1L160->SetBinContent(20,704.2857); h_SL1L160->SetBinContent(21,798.5715); h_SL1L160->SetBinContent(22,874.2857); h_SL1L160->SetBinContent(23,1002.857); h_SL1L160->SetBinContent(24,995.7143); h_SL1L160->SetBinContent(25,1055.714); h_SL1L160->SetBinContent(26,1125.714); h_SL1L160->SetBinContent(27,1331.429); h_SL1L160->SetBinContent(28,1727.143); h_SL1L160->SetBinContent(29,1978.572); h_SL1L160->SetBinContent(30,2152.857); h_SL1L160->SetBinContent(31,2618.572); h_SL1L160->SetBinContent(32,3364.286); h_SL1L160->SetBinContent(33,9638.571); h_SL1L160->SetBinContent(34,15231.43); h_SL1L160->SetBinContent(35,22717.14); h_SL1L160->SetBinContent(36,33118.57); h_SL1L160->SetBinContent(37,63858.57); h_SL1L160->SetBinContent(38,82181.43); h_SL1L160->SetBinContent(39,50084.29); h_SL1L160->SetBinContent(40,7457.143); h_SL1L160->SetBinContent(41,3860); h_SL1L160->SetBinContent(42,3147.143); h_SL1L160->SetBinContent(43,2727.143); h_SL1L160->SetBinContent(44,2345.714); h_SL1L160->SetBinContent(45,2038.572); h_SL1L160->SetBinContent(46,1801.429); h_SL1L160->SetBinContent(47,1822.857); h_SL1L160->SetBinContent(48,1524.286); h_SL1L160->SetBinContent(49,1442.857); h_SL1L160->SetBinContent(50,1401.429); h_SL1L160->SetBinContent(51,1305.714); h_SL1L160->SetBinContent(52,1185.714); h_SL1L160->SetBinContent(53,1104.286); h_SL1L160->SetBinContent(54,1044.286); h_SL1L160->SetBinContent(55,955.7143); h_SL1L160->SetBinContent(56,825.7143); h_SL1L160->SetBinContent(57,840); h_SL1L160->SetBinContent(58,797.1429); h_SL1L160->SetBinContent(59,762.8572); h_SL1L160->SetMaximum(148340.8); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,320); h_SL1L261->SetBinContent(2,352.8571); h_SL1L261->SetBinContent(3,430); h_SL1L261->SetBinContent(4,394.2857); h_SL1L261->SetBinContent(5,412.8571); h_SL1L261->SetBinContent(6,402.8571); h_SL1L261->SetBinContent(7,417.1429); h_SL1L261->SetBinContent(8,467.1429); h_SL1L261->SetBinContent(9,474.2857); h_SL1L261->SetBinContent(10,521.4286); h_SL1L261->SetBinContent(11,578.5715); h_SL1L261->SetBinContent(12,604.2857); h_SL1L261->SetBinContent(13,590); h_SL1L261->SetBinContent(14,617.1429); h_SL1L261->SetBinContent(15,652.8572); h_SL1L261->SetBinContent(16,567.1429); h_SL1L261->SetBinContent(17,657.1429); h_SL1L261->SetBinContent(18,865.7143); h_SL1L261->SetBinContent(19,901.4286); h_SL1L261->SetBinContent(20,972.8572); h_SL1L261->SetBinContent(21,1108.571); h_SL1L261->SetBinContent(22,1292.857); h_SL1L261->SetBinContent(23,1387.143); h_SL1L261->SetBinContent(24,1510); h_SL1L261->SetBinContent(25,1742.857); h_SL1L261->SetBinContent(26,1630); h_SL1L261->SetBinContent(27,1774.286); h_SL1L261->SetBinContent(28,2282.857); h_SL1L261->SetBinContent(29,2762.857); h_SL1L261->SetBinContent(30,3071.429); h_SL1L261->SetBinContent(31,3462.857); h_SL1L261->SetBinContent(32,4564.286); h_SL1L261->SetBinContent(33,8868.571); h_SL1L261->SetBinContent(34,18327.14); h_SL1L261->SetBinContent(35,26417.14); h_SL1L261->SetBinContent(36,38952.86); h_SL1L261->SetBinContent(37,65108.57); h_SL1L261->SetBinContent(38,106685.7); h_SL1L261->SetBinContent(39,101808.6); h_SL1L261->SetBinContent(40,26724.29); h_SL1L261->SetBinContent(41,9032.857); h_SL1L261->SetBinContent(42,4768.572); h_SL1L261->SetBinContent(43,4097.143); h_SL1L261->SetBinContent(44,3551.429); h_SL1L261->SetBinContent(45,3238.572); h_SL1L261->SetBinContent(46,2892.857); h_SL1L261->SetBinContent(47,2782.857); h_SL1L261->SetBinContent(48,2565.714); h_SL1L261->SetBinContent(49,2217.143); h_SL1L261->SetBinContent(50,2102.857); h_SL1L261->SetBinContent(51,2207.143); h_SL1L261->SetBinContent(52,1884.286); h_SL1L261->SetBinContent(53,1754.286); h_SL1L261->SetBinContent(54,1564.286); h_SL1L261->SetBinContent(55,1467.143); h_SL1L261->SetBinContent(56,1374.286); h_SL1L261->SetBinContent(57,1218.571); h_SL1L261->SetBinContent(58,1222.857); h_SL1L261->SetBinContent(59,1127.143); h_SL1L261->SetMaximum(128992.2); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,270); h_SL1L362->SetBinContent(2,360); h_SL1L362->SetBinContent(3,377.1429); h_SL1L362->SetBinContent(4,367.1429); h_SL1L362->SetBinContent(5,374.2857); h_SL1L362->SetBinContent(6,354.2857); h_SL1L362->SetBinContent(7,387.1429); h_SL1L362->SetBinContent(8,452.8571); h_SL1L362->SetBinContent(9,412.8571); h_SL1L362->SetBinContent(10,531.4286); h_SL1L362->SetBinContent(11,557.1429); h_SL1L362->SetBinContent(12,542.8572); h_SL1L362->SetBinContent(13,584.2857); h_SL1L362->SetBinContent(14,595.7143); h_SL1L362->SetBinContent(15,550); h_SL1L362->SetBinContent(16,572.8572); h_SL1L362->SetBinContent(17,695.7143); h_SL1L362->SetBinContent(18,821.4286); h_SL1L362->SetBinContent(19,848.5715); h_SL1L362->SetBinContent(20,988.5715); h_SL1L362->SetBinContent(21,1118.571); h_SL1L362->SetBinContent(22,1191.429); h_SL1L362->SetBinContent(23,1342.857); h_SL1L362->SetBinContent(24,1577.143); h_SL1L362->SetBinContent(25,1545.714); h_SL1L362->SetBinContent(26,1671.429); h_SL1L362->SetBinContent(27,1922.857); h_SL1L362->SetBinContent(28,2572.857); h_SL1L362->SetBinContent(29,2738.572); h_SL1L362->SetBinContent(30,3028.572); h_SL1L362->SetBinContent(31,3870); h_SL1L362->SetBinContent(32,5244.286); h_SL1L362->SetBinContent(33,14477.14); h_SL1L362->SetBinContent(34,21701.43); h_SL1L362->SetBinContent(35,32091.43); h_SL1L362->SetBinContent(36,49425.71); h_SL1L362->SetBinContent(37,87248.57); h_SL1L362->SetBinContent(38,112167.1); h_SL1L362->SetBinContent(39,68601.43); h_SL1L362->SetBinContent(40,11482.86); h_SL1L362->SetBinContent(41,5597.143); h_SL1L362->SetBinContent(42,4354.286); h_SL1L362->SetBinContent(43,3782.857); h_SL1L362->SetBinContent(44,3200); h_SL1L362->SetBinContent(45,2982.857); h_SL1L362->SetBinContent(46,2897.143); h_SL1L362->SetBinContent(47,2460); h_SL1L362->SetBinContent(48,2348.572); h_SL1L362->SetBinContent(49,2000); h_SL1L362->SetBinContent(50,2015.714); h_SL1L362->SetBinContent(51,1852.857); h_SL1L362->SetBinContent(52,1760); h_SL1L362->SetBinContent(53,1557.143); h_SL1L362->SetBinContent(54,1480); h_SL1L362->SetBinContent(55,1451.429); h_SL1L362->SetBinContent(56,1222.857); h_SL1L362->SetBinContent(57,1148.571); h_SL1L362->SetBinContent(58,1074.286); h_SL1L362->SetBinContent(59,1022.857); h_SL1L362->SetMaximum(128992.2); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,324.2857); h_SL1L463->SetBinContent(3,335.7143); h_SL1L463->SetBinContent(4,320); h_SL1L463->SetBinContent(5,340); h_SL1L463->SetBinContent(6,358.5714); h_SL1L463->SetBinContent(7,362.8571); h_SL1L463->SetBinContent(8,352.8571); h_SL1L463->SetBinContent(9,395.7143); h_SL1L463->SetBinContent(10,441.4286); h_SL1L463->SetBinContent(11,530); h_SL1L463->SetBinContent(12,470); h_SL1L463->SetBinContent(13,510); h_SL1L463->SetBinContent(14,475.7143); h_SL1L463->SetBinContent(15,574.2857); h_SL1L463->SetBinContent(16,534.2857); h_SL1L463->SetBinContent(17,584.2857); h_SL1L463->SetBinContent(18,768.5715); h_SL1L463->SetBinContent(19,757.1429); h_SL1L463->SetBinContent(20,840); h_SL1L463->SetBinContent(21,991.4286); h_SL1L463->SetBinContent(22,1137.143); h_SL1L463->SetBinContent(23,1214.286); h_SL1L463->SetBinContent(24,1398.571); h_SL1L463->SetBinContent(25,1504.286); h_SL1L463->SetBinContent(26,1514.286); h_SL1L463->SetBinContent(27,1591.429); h_SL1L463->SetBinContent(28,2221.429); h_SL1L463->SetBinContent(29,2574.286); h_SL1L463->SetBinContent(30,2912.857); h_SL1L463->SetBinContent(31,3328.572); h_SL1L463->SetBinContent(32,4374.286); h_SL1L463->SetBinContent(33,8750); h_SL1L463->SetBinContent(34,18361.43); h_SL1L463->SetBinContent(35,26705.71); h_SL1L463->SetBinContent(36,39101.43); h_SL1L463->SetBinContent(37,65630); h_SL1L463->SetBinContent(38,106848.6); h_SL1L463->SetBinContent(39,102761.4); h_SL1L463->SetBinContent(40,27021.43); h_SL1L463->SetBinContent(41,9050); h_SL1L463->SetBinContent(42,4707.143); h_SL1L463->SetBinContent(43,3951.429); h_SL1L463->SetBinContent(44,3378.572); h_SL1L463->SetBinContent(45,3038.572); h_SL1L463->SetBinContent(46,2762.857); h_SL1L463->SetBinContent(47,2605.714); h_SL1L463->SetBinContent(48,2335.714); h_SL1L463->SetBinContent(49,2141.429); h_SL1L463->SetBinContent(50,1931.429); h_SL1L463->SetBinContent(51,1897.143); h_SL1L463->SetBinContent(52,1787.143); h_SL1L463->SetBinContent(53,1542.857); h_SL1L463->SetBinContent(54,1481.429); h_SL1L463->SetBinContent(55,1.428571); h_SL1L463->SetBinContent(56,1258.571); h_SL1L463->SetBinContent(57,1078.571); h_SL1L463->SetBinContent(58,1107.143); h_SL1L463->SetBinContent(59,974.2858); h_SL1L463->SetMaximum(128992.2); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 5487"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }