void RatesPerCell_Removing_noisy_cells_run_4985_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:19:49 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-37611.33,67.5,338501.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 4985",60,0,60); h_SL1L160->SetBinContent(1,322.1429); h_SL1L160->SetBinContent(2,325); h_SL1L160->SetBinContent(3,376.4286); h_SL1L160->SetBinContent(4,369.2857); h_SL1L160->SetBinContent(5,300); h_SL1L160->SetBinContent(6,387.8571); h_SL1L160->SetBinContent(7,337.8571); h_SL1L160->SetBinContent(8,441.4286); h_SL1L160->SetBinContent(9,394.2857); h_SL1L160->SetBinContent(10,410.7143); h_SL1L160->SetBinContent(11,523.5714); h_SL1L160->SetBinContent(12,512.8572); h_SL1L160->SetBinContent(13,614.2857); h_SL1L160->SetBinContent(14,662.8572); h_SL1L160->SetBinContent(15,612.1429); h_SL1L160->SetBinContent(16,581.4286); h_SL1L160->SetBinContent(17,657.8572); h_SL1L160->SetBinContent(18,862.1429); h_SL1L160->SetBinContent(19,995.7143); h_SL1L160->SetBinContent(20,1030); h_SL1L160->SetBinContent(21,1225.714); h_SL1L160->SetBinContent(22,1312.857); h_SL1L160->SetBinContent(23,1528.571); h_SL1L160->SetBinContent(24,1559.286); h_SL1L160->SetBinContent(25,1733.571); h_SL1L160->SetBinContent(26,1941.429); h_SL1L160->SetBinContent(27,2216.429); h_SL1L160->SetBinContent(28,2682.857); h_SL1L160->SetBinContent(29,3097.143); h_SL1L160->SetBinContent(30,3615.714); h_SL1L160->SetBinContent(31,5113.572); h_SL1L160->SetBinContent(32,8913.571); h_SL1L160->SetBinContent(33,46722.86); h_SL1L160->SetBinContent(34,50510); h_SL1L160->SetBinContent(35,49882.86); h_SL1L160->SetBinContent(36,46052.86); h_SL1L160->SetBinContent(37,47265); h_SL1L160->SetBinContent(38,37974.29); h_SL1L160->SetBinContent(39,20587.86); h_SL1L160->SetBinContent(40,4854.286); h_SL1L160->SetBinContent(41,3415.714); h_SL1L160->SetBinContent(42,2999.286); h_SL1L160->SetBinContent(43,2675.714); h_SL1L160->SetBinContent(44,2475); h_SL1L160->SetBinContent(45,2087.143); h_SL1L160->SetBinContent(46,1915.714); h_SL1L160->SetBinContent(47,1858.572); h_SL1L160->SetBinContent(48,1513.571); h_SL1L160->SetBinContent(49,1590.714); h_SL1L160->SetBinContent(50,1448.571); h_SL1L160->SetBinContent(51,1223.571); h_SL1L160->SetBinContent(52,1158.571); h_SL1L160->SetBinContent(53,1204.286); h_SL1L160->SetBinContent(54,1089.286); h_SL1L160->SetBinContent(55,1019.286); h_SL1L160->SetBinContent(56,993.5715); h_SL1L160->SetBinContent(57,1079.286); h_SL1L160->SetBinContent(58,950); h_SL1L160->SetBinContent(59,997.8572); h_SL1L160->SetMaximum(300890.6); 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,405.7143); h_SL1L261->SetBinContent(2,405.7143); h_SL1L261->SetBinContent(3,449.2857); h_SL1L261->SetBinContent(4,480); h_SL1L261->SetBinContent(5,459.2857); h_SL1L261->SetBinContent(6,472.8571); h_SL1L261->SetBinContent(7,475); h_SL1L261->SetBinContent(8,507.1429); h_SL1L261->SetBinContent(9,572.1429); h_SL1L261->SetBinContent(10,607.8572); h_SL1L261->SetBinContent(11,675); h_SL1L261->SetBinContent(12,711.4286); h_SL1L261->SetBinContent(13,757.8572); h_SL1L261->SetBinContent(14,865); h_SL1L261->SetBinContent(15,887.1429); h_SL1L261->SetBinContent(16,847.1429); h_SL1L261->SetBinContent(17,926.4286); h_SL1L261->SetBinContent(18,1107.857); h_SL1L261->SetBinContent(19,1342.857); h_SL1L261->SetBinContent(20,1401.429); h_SL1L261->SetBinContent(21,1670); h_SL1L261->SetBinContent(22,1790); h_SL1L261->SetBinContent(23,2091.429); h_SL1L261->SetBinContent(24,2310); h_SL1L261->SetBinContent(25,2640.714); h_SL1L261->SetBinContent(26,2699.286); h_SL1L261->SetBinContent(27,2977.143); h_SL1L261->SetBinContent(28,3993.572); h_SL1L261->SetBinContent(29,4234.286); h_SL1L261->SetBinContent(30,4634.286); h_SL1L261->SetBinContent(31,5547.857); h_SL1L261->SetBinContent(32,10204.29); h_SL1L261->SetBinContent(33,38835); h_SL1L261->SetBinContent(34,71679.29); h_SL1L261->SetBinContent(35,66502.86); h_SL1L261->SetBinContent(36,65715); h_SL1L261->SetBinContent(37,62357.86); h_SL1L261->SetBinContent(38,53390); h_SL1L261->SetBinContent(39,39348.57); h_SL1L261->SetBinContent(40,12430.71); h_SL1L261->SetBinContent(41,6115.714); h_SL1L261->SetBinContent(42,4221.429); h_SL1L261->SetBinContent(43,3778.572); h_SL1L261->SetBinContent(44,3312.857); h_SL1L261->SetBinContent(45,3217.857); h_SL1L261->SetBinContent(46,2940.714); h_SL1L261->SetBinContent(47,2680.714); h_SL1L261->SetBinContent(48,2522.857); h_SL1L261->SetBinContent(49,227517.1); h_SL1L261->SetBinContent(50,2132.143); h_SL1L261->SetBinContent(51,1874.286); h_SL1L261->SetBinContent(52,24992.86); h_SL1L261->SetBinContent(53,26433.57); h_SL1L261->SetBinContent(54,1616.429); h_SL1L261->SetBinContent(55,1574.286); h_SL1L261->SetBinContent(56,88732.86); h_SL1L261->SetBinContent(57,1492.857); h_SL1L261->SetBinContent(58,1517.143); h_SL1L261->SetBinContent(59,1413.571); h_SL1L261->SetMaximum(261644.7); 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,370.7143); h_SL1L362->SetBinContent(2,385.7143); h_SL1L362->SetBinContent(3,422.1429); h_SL1L362->SetBinContent(4,420.7143); h_SL1L362->SetBinContent(5,434.2857); h_SL1L362->SetBinContent(6,444.2857); h_SL1L362->SetBinContent(7,457.1429); h_SL1L362->SetBinContent(8,522.8572); h_SL1L362->SetBinContent(9,556.4286); h_SL1L362->SetBinContent(10,576.4286); h_SL1L362->SetBinContent(11,622.1429); h_SL1L362->SetBinContent(12,672.8572); h_SL1L362->SetBinContent(13,740); h_SL1L362->SetBinContent(14,847.1429); h_SL1L362->SetBinContent(15,806.4286); h_SL1L362->SetBinContent(16,822.8572); h_SL1L362->SetBinContent(17,1001.429); h_SL1L362->SetBinContent(18,1140.714); h_SL1L362->SetBinContent(19,1312.857); h_SL1L362->SetBinContent(20,1436.429); h_SL1L362->SetBinContent(21,1670); h_SL1L362->SetBinContent(22,1855); h_SL1L362->SetBinContent(23,2090); h_SL1L362->SetBinContent(24,2420.714); h_SL1L362->SetBinContent(25,2585.714); h_SL1L362->SetBinContent(26,2719.286); h_SL1L362->SetBinContent(27,3197.143); h_SL1L362->SetBinContent(28,3917.857); h_SL1L362->SetBinContent(29,4256.429); h_SL1L362->SetBinContent(30,4927.857); h_SL1L362->SetBinContent(31,7522.143); h_SL1L362->SetBinContent(32,14180); h_SL1L362->SetBinContent(33,66896.43); h_SL1L362->SetBinContent(34,68692.14); h_SL1L362->SetBinContent(35,66232.86); h_SL1L362->SetBinContent(36,64598.57); h_SL1L362->SetBinContent(37,59045); h_SL1L362->SetBinContent(38,53325); h_SL1L362->SetBinContent(39,26732.86); h_SL1L362->SetBinContent(40,7032.857); h_SL1L362->SetBinContent(41,4626.429); h_SL1L362->SetBinContent(42,3976.429); h_SL1L362->SetBinContent(43,3455.714); h_SL1L362->SetBinContent(44,3198.572); h_SL1L362->SetBinContent(45,2951.429); h_SL1L362->SetBinContent(46,2690.714); h_SL1L362->SetBinContent(47,2530); h_SL1L362->SetBinContent(48,2262.857); h_SL1L362->SetBinContent(49,13114.29); h_SL1L362->SetBinContent(50,1882.857); h_SL1L362->SetBinContent(51,1769.286); h_SL1L362->SetBinContent(52,1707.143); h_SL1L362->SetBinContent(53,99544.29); h_SL1L362->SetBinContent(54,1536.429); h_SL1L362->SetBinContent(55,1510.714); h_SL1L362->SetBinContent(56,114532.9); h_SL1L362->SetBinContent(57,1430); h_SL1L362->SetBinContent(58,1360); h_SL1L362->SetBinContent(59,1366.429); h_SL1L362->SetMaximum(261644.7); 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,384.2857); h_SL1L463->SetBinContent(3,365.7143); h_SL1L463->SetBinContent(4,379.2857); h_SL1L463->SetBinContent(5,382.1429); h_SL1L463->SetBinContent(6,397.8571); h_SL1L463->SetBinContent(7,396.4286); h_SL1L463->SetBinContent(8,454.2857); h_SL1L463->SetBinContent(9,495); h_SL1L463->SetBinContent(10,542.1429); h_SL1L463->SetBinContent(11,566.4286); h_SL1L463->SetBinContent(12,622.1429); h_SL1L463->SetBinContent(13,659.2857); h_SL1L463->SetBinContent(14,761.4286); h_SL1L463->SetBinContent(15,807.8572); h_SL1L463->SetBinContent(16,791.4286); h_SL1L463->SetBinContent(17,860); h_SL1L463->SetBinContent(18,1005.714); h_SL1L463->SetBinContent(19,1227.143); h_SL1L463->SetBinContent(20,1292.143); h_SL1L463->SetBinContent(21,1489.286); h_SL1L463->SetBinContent(22,1616.429); h_SL1L463->SetBinContent(23,1916.429); h_SL1L463->SetBinContent(24,2170.714); h_SL1L463->SetBinContent(25,2420.714); h_SL1L463->SetBinContent(26,2473.572); h_SL1L463->SetBinContent(27,2845.714); h_SL1L463->SetBinContent(28,3566.429); h_SL1L463->SetBinContent(29,4110); h_SL1L463->SetBinContent(30,4538.572); h_SL1L463->SetBinContent(31,5478.572); h_SL1L463->SetBinContent(32,10161.43); h_SL1L463->SetBinContent(33,38551.43); h_SL1L463->SetBinContent(34,72688.57); h_SL1L463->SetBinContent(35,68070.72); h_SL1L463->SetBinContent(36,66570); h_SL1L463->SetBinContent(37,62906.43); h_SL1L463->SetBinContent(38,53443.57); h_SL1L463->SetBinContent(39,40291.43); h_SL1L463->SetBinContent(40,12599.29); h_SL1L463->SetBinContent(41,5954.286); h_SL1L463->SetBinContent(42,4172.857); h_SL1L463->SetBinContent(43,3682.857); h_SL1L463->SetBinContent(44,3235.714); h_SL1L463->SetBinContent(45,2992.857); h_SL1L463->SetBinContent(46,2785.714); h_SL1L463->SetBinContent(47,2469.286); h_SL1L463->SetBinContent(48,2338.572); h_SL1L463->SetBinContent(49,2034.286); h_SL1L463->SetBinContent(50,1967.857); h_SL1L463->SetBinContent(51,1771.429); h_SL1L463->SetBinContent(52,1625.714); h_SL1L463->SetBinContent(53,1605); h_SL1L463->SetBinContent(54,1550.714); h_SL1L463->SetBinContent(56,1485); h_SL1L463->SetBinContent(57,1425.714); h_SL1L463->SetBinContent(58,1390); h_SL1L463->SetBinContent(59,1318.571); h_SL1L463->SetMaximum(261644.7); 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 4985"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }