void RatesPerCell_Removing_noisy_cells_run_5154_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:27:59 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11403.83,67.5,102634.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5154",60,0,60); h_SL1L160->SetBinContent(1,35.71429); h_SL1L160->SetBinContent(2,24.28572); h_SL1L160->SetBinContent(3,27.14286); h_SL1L160->SetBinContent(4,44.28572); h_SL1L160->SetBinContent(5,32.85714); h_SL1L160->SetBinContent(6,40); h_SL1L160->SetBinContent(7,25.71429); h_SL1L160->SetBinContent(8,41.42857); h_SL1L160->SetBinContent(9,34.28571); h_SL1L160->SetBinContent(10,44.28572); h_SL1L160->SetBinContent(11,54.28572); h_SL1L160->SetBinContent(12,62.85714); h_SL1L160->SetBinContent(13,65.71429); h_SL1L160->SetBinContent(14,70); h_SL1L160->SetBinContent(15,70); h_SL1L160->SetBinContent(16,54.28572); h_SL1L160->SetBinContent(17,68.57143); h_SL1L160->SetBinContent(18,94.28571); h_SL1L160->SetBinContent(19,82.85715); h_SL1L160->SetBinContent(20,120); h_SL1L160->SetBinContent(21,107.1429); h_SL1L160->SetBinContent(22,134.2857); h_SL1L160->SetBinContent(23,158.5714); h_SL1L160->SetBinContent(24,168.5714); h_SL1L160->SetBinContent(25,180); h_SL1L160->SetBinContent(26,224.2857); h_SL1L160->SetBinContent(27,198.5714); h_SL1L160->SetBinContent(28,231.4286); h_SL1L160->SetBinContent(29,311.4286); h_SL1L160->SetBinContent(30,317.1429); h_SL1L160->SetBinContent(31,437.1429); h_SL1L160->SetBinContent(32,702.8572); h_SL1L160->SetBinContent(33,3362.857); h_SL1L160->SetBinContent(34,3815.714); h_SL1L160->SetBinContent(35,3667.143); h_SL1L160->SetBinContent(36,3397.143); h_SL1L160->SetBinContent(37,3687.143); h_SL1L160->SetBinContent(38,2851.429); h_SL1L160->SetBinContent(39,1605.714); h_SL1L160->SetBinContent(40,421.4286); h_SL1L160->SetBinContent(41,265.7143); h_SL1L160->SetBinContent(42,240); h_SL1L160->SetBinContent(43,235.7143); h_SL1L160->SetBinContent(44,234.2857); h_SL1L160->SetBinContent(45,187.1429); h_SL1L160->SetBinContent(46,137.1429); h_SL1L160->SetBinContent(47,144.2857); h_SL1L160->SetBinContent(48,134.2857); h_SL1L160->SetBinContent(49,147.1429); h_SL1L160->SetBinContent(50,125.7143); h_SL1L160->SetBinContent(51,122.8571); h_SL1L160->SetBinContent(52,105.7143); h_SL1L160->SetBinContent(53,128.5714); h_SL1L160->SetBinContent(54,90); h_SL1L160->SetBinContent(55,91.42857); h_SL1L160->SetBinContent(56,101.4286); h_SL1L160->SetBinContent(57,125.7143); h_SL1L160->SetBinContent(58,115.7143); h_SL1L160->SetBinContent(59,102.8571); h_SL1L160->SetMaximum(91230.65); 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,402.8571); h_SL1L261->SetBinContent(2,444.2857); h_SL1L261->SetBinContent(3,402.8571); h_SL1L261->SetBinContent(4,420); h_SL1L261->SetBinContent(5,434.2857); h_SL1L261->SetBinContent(6,477.1429); h_SL1L261->SetBinContent(7,512.8572); h_SL1L261->SetBinContent(8,527.1429); h_SL1L261->SetBinContent(9,514.2857); h_SL1L261->SetBinContent(10,605.7143); h_SL1L261->SetBinContent(11,660); h_SL1L261->SetBinContent(12,801.4286); h_SL1L261->SetBinContent(13,765.7143); h_SL1L261->SetBinContent(14,861.4286); h_SL1L261->SetBinContent(15,864.2857); h_SL1L261->SetBinContent(16,897.1429); h_SL1L261->SetBinContent(17,1037.143); h_SL1L261->SetBinContent(18,1124.286); h_SL1L261->SetBinContent(19,1338.571); h_SL1L261->SetBinContent(20,1397.143); h_SL1L261->SetBinContent(21,1715.714); h_SL1L261->SetBinContent(22,1884.286); h_SL1L261->SetBinContent(23,1970); h_SL1L261->SetBinContent(24,2291.429); h_SL1L261->SetBinContent(25,2687.143); h_SL1L261->SetBinContent(26,2712.857); h_SL1L261->SetBinContent(27,3038.572); h_SL1L261->SetBinContent(28,3657.143); h_SL1L261->SetBinContent(29,4245.714); h_SL1L261->SetBinContent(30,4608.572); h_SL1L261->SetBinContent(31,5528.572); h_SL1L261->SetBinContent(32,9650); h_SL1L261->SetBinContent(33,37381.43); h_SL1L261->SetBinContent(34,68412.86); h_SL1L261->SetBinContent(35,63980); h_SL1L261->SetBinContent(36,63755.71); h_SL1L261->SetBinContent(37,60524.29); h_SL1L261->SetBinContent(38,51261.43); h_SL1L261->SetBinContent(39,38238.57); h_SL1L261->SetBinContent(40,12025.71); h_SL1L261->SetBinContent(41,5895.714); h_SL1L261->SetBinContent(42,3944.286); h_SL1L261->SetBinContent(43,3591.429); h_SL1L261->SetBinContent(44,3330); h_SL1L261->SetBinContent(45,2892.857); h_SL1L261->SetBinContent(46,2718.572); h_SL1L261->SetBinContent(47,2498.572); h_SL1L261->SetBinContent(48,2361.429); h_SL1L261->SetBinContent(49,2214.286); h_SL1L261->SetBinContent(50,2185.714); h_SL1L261->SetBinContent(51,2054.286); h_SL1L261->SetBinContent(52,1930); h_SL1L261->SetBinContent(53,1814.286); h_SL1L261->SetBinContent(54,1778.571); h_SL1L261->SetBinContent(55,1700); h_SL1L261->SetBinContent(56,1595.714); h_SL1L261->SetBinContent(57,1561.429); h_SL1L261->SetBinContent(58,1655.714); h_SL1L261->SetBinContent(59,1541.429); h_SL1L261->SetMaximum(79331.93); 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); h_SL1L362->SetBinContent(2,371.4286); h_SL1L362->SetBinContent(3,390); h_SL1L362->SetBinContent(4,421.4286); h_SL1L362->SetBinContent(5,432.8571); h_SL1L362->SetBinContent(6,434.2857); h_SL1L362->SetBinContent(7,490); h_SL1L362->SetBinContent(8,462.8571); h_SL1L362->SetBinContent(9,545.7143); h_SL1L362->SetBinContent(10,557.1429); h_SL1L362->SetBinContent(11,685.7143); h_SL1L362->SetBinContent(12,727.1429); h_SL1L362->SetBinContent(13,721.4286); h_SL1L362->SetBinContent(14,810); h_SL1L362->SetBinContent(15,854.2857); h_SL1L362->SetBinContent(16,865.7143); h_SL1L362->SetBinContent(17,1035.714); h_SL1L362->SetBinContent(18,1168.571); h_SL1L362->SetBinContent(19,1318.571); h_SL1L362->SetBinContent(20,1475.714); h_SL1L362->SetBinContent(21,1711.429); h_SL1L362->SetBinContent(22,1855.714); h_SL1L362->SetBinContent(23,2048.572); h_SL1L362->SetBinContent(24,2387.143); h_SL1L362->SetBinContent(25,2594.286); h_SL1L362->SetBinContent(26,2895.714); h_SL1L362->SetBinContent(27,3158.572); h_SL1L362->SetBinContent(28,4012.857); h_SL1L362->SetBinContent(29,4308.571); h_SL1L362->SetBinContent(30,4847.143); h_SL1L362->SetBinContent(31,7345.714); h_SL1L362->SetBinContent(32,13334.29); h_SL1L362->SetBinContent(33,63752.86); h_SL1L362->SetBinContent(34,66012.86); h_SL1L362->SetBinContent(35,64201.43); h_SL1L362->SetBinContent(36,62592.86); h_SL1L362->SetBinContent(37,57308.57); h_SL1L362->SetBinContent(38,44864.29); h_SL1L362->SetBinContent(39,25988.57); h_SL1L362->SetBinContent(40,6835.714); h_SL1L362->SetBinContent(41,4392.857); h_SL1L362->SetBinContent(42,3588.572); h_SL1L362->SetBinContent(43,3324.286); h_SL1L362->SetBinContent(44,2988.572); h_SL1L362->SetBinContent(45,2698.572); h_SL1L362->SetBinContent(46,2550); h_SL1L362->SetBinContent(47,2287.143); h_SL1L362->SetBinContent(48,2205.714); h_SL1L362->SetBinContent(49,2017.143); h_SL1L362->SetBinContent(50,2014.286); h_SL1L362->SetBinContent(51,1861.429); h_SL1L362->SetBinContent(52,1764.286); h_SL1L362->SetBinContent(53,1758.571); h_SL1L362->SetBinContent(54,1608.571); h_SL1L362->SetBinContent(55,1575.714); h_SL1L362->SetBinContent(56,1490); h_SL1L362->SetBinContent(57,1524.286); h_SL1L362->SetBinContent(58,1491.429); h_SL1L362->SetBinContent(59,1427.143); h_SL1L362->SetMaximum(79331.93); 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,405.7143); h_SL1L463->SetBinContent(3,328.5714); h_SL1L463->SetBinContent(4,325.7143); h_SL1L463->SetBinContent(5,374.2857); h_SL1L463->SetBinContent(6,364.2857); h_SL1L463->SetBinContent(7,444.2857); h_SL1L463->SetBinContent(8,438.5714); h_SL1L463->SetBinContent(9,472.8571); h_SL1L463->SetBinContent(10,497.1429); h_SL1L463->SetBinContent(11,568.5715); h_SL1L463->SetBinContent(12,682.8572); h_SL1L463->SetBinContent(13,644.2857); h_SL1L463->SetBinContent(14,740); h_SL1L463->SetBinContent(15,760); h_SL1L463->SetBinContent(16,817.1429); h_SL1L463->SetBinContent(17,944.2858); h_SL1L463->SetBinContent(18,1051.429); h_SL1L463->SetBinContent(19,1194.286); h_SL1L463->SetBinContent(20,1331.429); h_SL1L463->SetBinContent(21,1524.286); h_SL1L463->SetBinContent(22,1677.143); h_SL1L463->SetBinContent(23,1837.143); h_SL1L463->SetBinContent(24,2112.857); h_SL1L463->SetBinContent(25,2452.857); h_SL1L463->SetBinContent(26,2641.429); h_SL1L463->SetBinContent(27,2910); h_SL1L463->SetBinContent(28,3448.572); h_SL1L463->SetBinContent(29,4068.572); h_SL1L463->SetBinContent(30,4498.572); h_SL1L463->SetBinContent(31,5332.857); h_SL1L463->SetBinContent(32,9507.144); h_SL1L463->SetBinContent(33,37191.43); h_SL1L463->SetBinContent(34,68984.29); h_SL1L463->SetBinContent(35,64515.71); h_SL1L463->SetBinContent(36,64051.43); h_SL1L463->SetBinContent(37,60884.29); h_SL1L463->SetBinContent(38,51480); h_SL1L463->SetBinContent(39,38424.29); h_SL1L463->SetBinContent(40,11987.14); h_SL1L463->SetBinContent(41,5755.714); h_SL1L463->SetBinContent(42,3805.714); h_SL1L463->SetBinContent(43,3438.572); h_SL1L463->SetBinContent(44,3084.286); h_SL1L463->SetBinContent(45,2724.286); h_SL1L463->SetBinContent(46,2628.572); h_SL1L463->SetBinContent(47,2338.572); h_SL1L463->SetBinContent(48,2215.714); h_SL1L463->SetBinContent(49,2041.429); h_SL1L463->SetBinContent(50,2041.429); h_SL1L463->SetBinContent(51,1882.857); h_SL1L463->SetBinContent(52,1765.714); h_SL1L463->SetBinContent(53,1670); h_SL1L463->SetBinContent(54,1631.429); h_SL1L463->SetBinContent(56,1462.857); h_SL1L463->SetBinContent(57,1505.714); h_SL1L463->SetBinContent(58,1521.429); h_SL1L463->SetBinContent(59,1425.714); h_SL1L463->SetMaximum(79331.93); 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 5154"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }