void RatesPerCell_Removing_noisy_cells_run_5372_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:32:43 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11518.98,67.5,103670.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5372",60,0,60); h_SL1L160->SetBinContent(1,158.5714); h_SL1L160->SetBinContent(2,212.8571); h_SL1L160->SetBinContent(3,191.4286); h_SL1L160->SetBinContent(4,211.4286); h_SL1L160->SetBinContent(5,191.4286); h_SL1L160->SetBinContent(6,214.2857); h_SL1L160->SetBinContent(7,180); h_SL1L160->SetBinContent(8,244.2857); h_SL1L160->SetBinContent(9,195.7143); h_SL1L160->SetBinContent(10,248.5714); h_SL1L160->SetBinContent(11,295.7143); h_SL1L160->SetBinContent(12,257.1429); h_SL1L160->SetBinContent(13,364.2857); h_SL1L160->SetBinContent(14,362.8571); h_SL1L160->SetBinContent(15,355.7143); h_SL1L160->SetBinContent(16,345.7143); h_SL1L160->SetBinContent(17,395.7143); h_SL1L160->SetBinContent(18,460); h_SL1L160->SetBinContent(19,522.8572); h_SL1L160->SetBinContent(20,551.4286); h_SL1L160->SetBinContent(21,625.7143); h_SL1L160->SetBinContent(22,638.5715); h_SL1L160->SetBinContent(23,697.1429); h_SL1L160->SetBinContent(24,795.7143); h_SL1L160->SetBinContent(25,800); h_SL1L160->SetBinContent(26,994.2858); h_SL1L160->SetBinContent(27,1131.429); h_SL1L160->SetBinContent(28,1231.429); h_SL1L160->SetBinContent(29,1440); h_SL1L160->SetBinContent(30,1704.286); h_SL1L160->SetBinContent(31,2154.286); h_SL1L160->SetBinContent(32,2912.857); h_SL1L160->SetBinContent(33,13102.86); h_SL1L160->SetBinContent(34,18360); h_SL1L160->SetBinContent(35,21148.57); h_SL1L160->SetBinContent(36,21215.71); h_SL1L160->SetBinContent(37,26737.14); h_SL1L160->SetBinContent(38,23764.29); h_SL1L160->SetBinContent(39,14775.71); h_SL1L160->SetBinContent(40,3135.714); h_SL1L160->SetBinContent(41,2228.572); h_SL1L160->SetBinContent(42,2017.143); h_SL1L160->SetBinContent(43,1841.429); h_SL1L160->SetBinContent(44,1558.571); h_SL1L160->SetBinContent(45,1211.429); h_SL1L160->SetBinContent(46,1088.571); h_SL1L160->SetBinContent(47,1118.571); h_SL1L160->SetBinContent(48,985.7143); h_SL1L160->SetBinContent(49,1072.857); h_SL1L160->SetBinContent(50,855.7143); h_SL1L160->SetBinContent(51,868.5715); h_SL1L160->SetBinContent(52,680); h_SL1L160->SetBinContent(53,778.5715); h_SL1L160->SetBinContent(54,607.1429); h_SL1L160->SetBinContent(55,558.5715); h_SL1L160->SetBinContent(56,635.7143); h_SL1L160->SetBinContent(57,650); h_SL1L160->SetBinContent(58,651.4286); h_SL1L160->SetBinContent(59,624.2857); h_SL1L160->SetMaximum(92151.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,498.5714); h_SL1L261->SetBinContent(2,498.5714); h_SL1L261->SetBinContent(3,628.5715); h_SL1L261->SetBinContent(4,571.4286); h_SL1L261->SetBinContent(5,570); h_SL1L261->SetBinContent(6,604.2857); h_SL1L261->SetBinContent(7,627.1429); h_SL1L261->SetBinContent(8,688.5715); h_SL1L261->SetBinContent(9,740); h_SL1L261->SetBinContent(10,707.1429); h_SL1L261->SetBinContent(11,815.7143); h_SL1L261->SetBinContent(12,930); h_SL1L261->SetBinContent(13,1017.143); h_SL1L261->SetBinContent(14,1130); h_SL1L261->SetBinContent(15,1148.571); h_SL1L261->SetBinContent(16,1104.286); h_SL1L261->SetBinContent(17,1208.571); h_SL1L261->SetBinContent(18,1408.571); h_SL1L261->SetBinContent(19,1557.143); h_SL1L261->SetBinContent(20,1727.143); h_SL1L261->SetBinContent(21,1900); h_SL1L261->SetBinContent(22,2148.572); h_SL1L261->SetBinContent(23,2382.857); h_SL1L261->SetBinContent(24,2518.572); h_SL1L261->SetBinContent(25,2891.429); h_SL1L261->SetBinContent(26,2971.429); h_SL1L261->SetBinContent(27,3281.429); h_SL1L261->SetBinContent(28,4078.572); h_SL1L261->SetBinContent(29,4451.429); h_SL1L261->SetBinContent(30,5008.572); h_SL1L261->SetBinContent(31,6104.286); h_SL1L261->SetBinContent(32,9367.144); h_SL1L261->SetBinContent(33,25288.57); h_SL1L261->SetBinContent(34,53238.57); h_SL1L261->SetBinContent(35,59505.71); h_SL1L261->SetBinContent(36,65794.29); h_SL1L261->SetBinContent(37,69162.86); h_SL1L261->SetBinContent(38,67340); h_SL1L261->SetBinContent(39,55071.43); h_SL1L261->SetBinContent(40,19802.86); h_SL1L261->SetBinContent(41,9167.144); h_SL1L261->SetBinContent(42,6271.429); h_SL1L261->SetBinContent(43,5287.143); h_SL1L261->SetBinContent(44,4751.429); h_SL1L261->SetBinContent(45,4165.714); h_SL1L261->SetBinContent(46,4048.572); h_SL1L261->SetBinContent(47,3752.857); h_SL1L261->SetBinContent(48,3511.429); h_SL1L261->SetBinContent(49,3424.286); h_SL1L261->SetBinContent(50,3035.714); h_SL1L261->SetBinContent(51,2848.572); h_SL1L261->SetBinContent(52,2534.286); h_SL1L261->SetBinContent(53,2540); h_SL1L261->SetBinContent(54,2314.286); h_SL1L261->SetBinContent(55,2220); h_SL1L261->SetBinContent(56,2178.572); h_SL1L261->SetBinContent(57,2058.572); h_SL1L261->SetBinContent(58,2017.143); h_SL1L261->SetBinContent(59,1930); h_SL1L261->SetMaximum(80132); 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,437.1429); h_SL1L362->SetBinContent(2,507.1429); h_SL1L362->SetBinContent(3,560); h_SL1L362->SetBinContent(4,571.4286); h_SL1L362->SetBinContent(5,527.1429); h_SL1L362->SetBinContent(6,584.2857); h_SL1L362->SetBinContent(7,590); h_SL1L362->SetBinContent(8,668.5715); h_SL1L362->SetBinContent(9,692.8572); h_SL1L362->SetBinContent(10,675.7143); h_SL1L362->SetBinContent(11,817.1429); h_SL1L362->SetBinContent(12,935.7143); h_SL1L362->SetBinContent(13,1035.714); h_SL1L362->SetBinContent(14,1104.286); h_SL1L362->SetBinContent(15,1092.857); h_SL1L362->SetBinContent(16,1104.286); h_SL1L362->SetBinContent(17,1258.571); h_SL1L362->SetBinContent(18,1460); h_SL1L362->SetBinContent(19,1590); h_SL1L362->SetBinContent(20,1795.714); h_SL1L362->SetBinContent(21,1967.143); h_SL1L362->SetBinContent(22,2084.286); h_SL1L362->SetBinContent(23,2314.286); h_SL1L362->SetBinContent(24,2605.714); h_SL1L362->SetBinContent(25,2882.857); h_SL1L362->SetBinContent(26,3115.714); h_SL1L362->SetBinContent(27,3418.572); h_SL1L362->SetBinContent(28,4275.714); h_SL1L362->SetBinContent(29,4697.143); h_SL1L362->SetBinContent(30,5385.714); h_SL1L362->SetBinContent(31,7564.286); h_SL1L362->SetBinContent(32,11430); h_SL1L362->SetBinContent(33,44687.14); h_SL1L362->SetBinContent(34,56668.57); h_SL1L362->SetBinContent(35,62845.71); h_SL1L362->SetBinContent(36,68240); h_SL1L362->SetBinContent(37,69680); h_SL1L362->SetBinContent(38,62260); h_SL1L362->SetBinContent(39,40621.43); h_SL1L362->SetBinContent(40,10782.86); h_SL1L362->SetBinContent(41,6998.572); h_SL1L362->SetBinContent(42,5691.429); h_SL1L362->SetBinContent(43,4887.143); h_SL1L362->SetBinContent(44,4454.286); h_SL1L362->SetBinContent(45,3970); h_SL1L362->SetBinContent(46,3775.714); h_SL1L362->SetBinContent(47,3608.572); h_SL1L362->SetBinContent(48,3350); h_SL1L362->SetBinContent(49,3024.286); h_SL1L362->SetBinContent(50,2780); h_SL1L362->SetBinContent(51,2664.286); h_SL1L362->SetBinContent(52,2498.572); h_SL1L362->SetBinContent(53,2391.429); h_SL1L362->SetBinContent(54,2178.572); h_SL1L362->SetBinContent(55,2098.572); h_SL1L362->SetBinContent(56,2065.714); h_SL1L362->SetBinContent(57,2012.857); h_SL1L362->SetBinContent(58,1875.714); h_SL1L362->SetBinContent(59,1840); h_SL1L362->SetMaximum(80132); 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,624.2857); h_SL1L463->SetBinContent(3,552.8572); h_SL1L463->SetBinContent(4,468.5714); h_SL1L463->SetBinContent(5,498.5714); h_SL1L463->SetBinContent(6,538.5714); h_SL1L463->SetBinContent(7,525.7143); h_SL1L463->SetBinContent(8,631.4286); h_SL1L463->SetBinContent(9,608.5715); h_SL1L463->SetBinContent(10,690); h_SL1L463->SetBinContent(11,732.8572); h_SL1L463->SetBinContent(12,795.7143); h_SL1L463->SetBinContent(13,960); h_SL1L463->SetBinContent(14,997.1429); h_SL1L463->SetBinContent(15,1041.429); h_SL1L463->SetBinContent(16,1067.143); h_SL1L463->SetBinContent(17,1130); h_SL1L463->SetBinContent(18,1320); h_SL1L463->SetBinContent(19,1397.143); h_SL1L463->SetBinContent(20,1625.714); h_SL1L463->SetBinContent(21,1705.714); h_SL1L463->SetBinContent(22,2047.143); h_SL1L463->SetBinContent(23,2174.286); h_SL1L463->SetBinContent(24,2380); h_SL1L463->SetBinContent(25,2698.572); h_SL1L463->SetBinContent(26,2797.143); h_SL1L463->SetBinContent(27,3094.286); h_SL1L463->SetBinContent(28,3940); h_SL1L463->SetBinContent(29,4304.286); h_SL1L463->SetBinContent(30,4890); h_SL1L463->SetBinContent(31,5944.286); h_SL1L463->SetBinContent(32,9247.144); h_SL1L463->SetBinContent(33,25235.71); h_SL1L463->SetBinContent(34,53688.57); h_SL1L463->SetBinContent(35,59937.14); h_SL1L463->SetBinContent(36,66118.57); h_SL1L463->SetBinContent(37,69672.86); h_SL1L463->SetBinContent(38,67640); h_SL1L463->SetBinContent(39,55714.29); h_SL1L463->SetBinContent(40,20135.71); h_SL1L463->SetBinContent(41,9141.429); h_SL1L463->SetBinContent(42,6282.857); h_SL1L463->SetBinContent(43,5157.143); h_SL1L463->SetBinContent(44,4674.286); h_SL1L463->SetBinContent(45,4050); h_SL1L463->SetBinContent(46,3941.429); h_SL1L463->SetBinContent(47,3635.714); h_SL1L463->SetBinContent(48,3398.572); h_SL1L463->SetBinContent(49,3052.857); h_SL1L463->SetBinContent(50,2827.143); h_SL1L463->SetBinContent(51,2742.857); h_SL1L463->SetBinContent(52,2491.429); h_SL1L463->SetBinContent(53,2334.286); h_SL1L463->SetBinContent(54,2271.429); h_SL1L463->SetBinContent(55,11.42857); h_SL1L463->SetBinContent(56,2042.857); h_SL1L463->SetBinContent(57,1955.714); h_SL1L463->SetBinContent(58,1904.286); h_SL1L463->SetBinContent(59,1845.714); h_SL1L463->SetMaximum(80132); 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 5372"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }