void RatesPerCell_Removing_noisy_cells_run_5317_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:26:08 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11302.34,67.5,101721.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5317",60,0,60); h_SL1L160->SetBinContent(1,502.8571); h_SL1L160->SetBinContent(2,520); h_SL1L160->SetBinContent(3,547.1429); h_SL1L160->SetBinContent(4,542.8572); h_SL1L160->SetBinContent(5,602.8572); h_SL1L160->SetBinContent(6,591.4286); h_SL1L160->SetBinContent(7,594.2857); h_SL1L160->SetBinContent(8,617.1429); h_SL1L160->SetBinContent(9,670); h_SL1L160->SetBinContent(10,691.4286); h_SL1L160->SetBinContent(11,858.5715); h_SL1L160->SetBinContent(12,850); h_SL1L160->SetBinContent(13,918.5715); h_SL1L160->SetBinContent(14,1030); h_SL1L160->SetBinContent(15,900); h_SL1L160->SetBinContent(16,900); h_SL1L160->SetBinContent(17,1125.714); h_SL1L160->SetBinContent(18,1301.429); h_SL1L160->SetBinContent(19,1584.286); h_SL1L160->SetBinContent(20,1574.286); h_SL1L160->SetBinContent(21,1857.143); h_SL1L160->SetBinContent(22,1902.857); h_SL1L160->SetBinContent(23,2070); h_SL1L160->SetBinContent(24,2395.714); h_SL1L160->SetBinContent(25,2602.857); h_SL1L160->SetBinContent(26,2558.572); h_SL1L160->SetBinContent(27,3005.714); h_SL1L160->SetBinContent(28,3697.143); h_SL1L160->SetBinContent(29,4147.143); h_SL1L160->SetBinContent(30,4692.857); h_SL1L160->SetBinContent(31,6430); h_SL1L160->SetBinContent(32,10177.14); h_SL1L160->SetBinContent(33,43244.29); h_SL1L160->SetBinContent(34,55491.43); h_SL1L160->SetBinContent(35,60632.86); h_SL1L160->SetBinContent(36,66001.43); h_SL1L160->SetBinContent(37,68047.14); h_SL1L160->SetBinContent(38,59001.43); h_SL1L160->SetBinContent(39,37972.86); h_SL1L160->SetBinContent(40,9358.571); h_SL1L160->SetBinContent(41,5865.714); h_SL1L160->SetBinContent(42,4860); h_SL1L160->SetBinContent(43,4297.143); h_SL1L160->SetBinContent(44,3884.286); h_SL1L160->SetBinContent(45,3527.143); h_SL1L160->SetBinContent(46,3395.714); h_SL1L160->SetBinContent(47,3208.572); h_SL1L160->SetBinContent(48,2787.143); h_SL1L160->SetBinContent(49,2778.572); h_SL1L160->SetBinContent(50,2472.857); h_SL1L160->SetBinContent(51,2342.857); h_SL1L160->SetBinContent(52,2238.572); h_SL1L160->SetBinContent(53,2092.857); h_SL1L160->SetBinContent(54,1924.286); h_SL1L160->SetBinContent(55,1914.286); h_SL1L160->SetBinContent(56,1820); h_SL1L160->SetBinContent(57,1797.143); h_SL1L160->SetBinContent(58,1690); h_SL1L160->SetBinContent(59,1634.286); h_SL1L160->SetMaximum(90418.75); 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,411.4286); h_SL1L261->SetBinContent(2,454.2857); h_SL1L261->SetBinContent(3,451.4286); h_SL1L261->SetBinContent(4,465.7143); h_SL1L261->SetBinContent(5,495.7143); h_SL1L261->SetBinContent(6,547.1429); h_SL1L261->SetBinContent(7,501.4286); h_SL1L261->SetBinContent(8,562.8572); h_SL1L261->SetBinContent(9,612.8572); h_SL1L261->SetBinContent(10,602.8572); h_SL1L261->SetBinContent(11,692.8572); h_SL1L261->SetBinContent(12,771.4286); h_SL1L261->SetBinContent(13,841.4286); h_SL1L261->SetBinContent(14,888.5715); h_SL1L261->SetBinContent(15,934.2858); h_SL1L261->SetBinContent(16,755.7143); h_SL1L261->SetBinContent(17,987.1429); h_SL1L261->SetBinContent(18,1170); h_SL1L261->SetBinContent(19,1304.286); h_SL1L261->SetBinContent(20,1458.571); h_SL1L261->SetBinContent(21,1704.286); h_SL1L261->SetBinContent(22,1728.571); h_SL1L261->SetBinContent(23,1900); h_SL1L261->SetBinContent(24,2151.429); h_SL1L261->SetBinContent(25,2360); h_SL1L261->SetBinContent(26,2428.572); h_SL1L261->SetBinContent(27,2661.429); h_SL1L261->SetBinContent(28,3255.714); h_SL1L261->SetBinContent(29,3787.143); h_SL1L261->SetBinContent(30,4204.286); h_SL1L261->SetBinContent(31,5091.429); h_SL1L261->SetBinContent(32,8087.143); h_SL1L261->SetBinContent(33,24008.57); h_SL1L261->SetBinContent(34,52085.71); h_SL1L261->SetBinContent(35,57990); h_SL1L261->SetBinContent(36,63225.71); h_SL1L261->SetBinContent(37,67851.43); h_SL1L261->SetBinContent(38,64651.43); h_SL1L261->SetBinContent(39,52611.43); h_SL1L261->SetBinContent(40,18168.57); h_SL1L261->SetBinContent(41,7671.429); h_SL1L261->SetBinContent(42,5101.429); h_SL1L261->SetBinContent(43,4354.286); h_SL1L261->SetBinContent(44,3980); h_SL1L261->SetBinContent(45,3607.143); h_SL1L261->SetBinContent(46,3400); h_SL1L261->SetBinContent(47,3111.429); h_SL1L261->SetBinContent(48,2795.714); h_SL1L261->SetBinContent(49,2700); h_SL1L261->SetBinContent(50,2558.572); h_SL1L261->SetBinContent(51,2210); h_SL1L261->SetBinContent(52,2151.429); h_SL1L261->SetBinContent(53,2188.572); h_SL1L261->SetBinContent(54,1915.714); h_SL1L261->SetBinContent(55,1897.143); h_SL1L261->SetBinContent(56,1882.857); h_SL1L261->SetBinContent(57,1668.571); h_SL1L261->SetBinContent(58,1644.286); h_SL1L261->SetBinContent(59,1490); h_SL1L261->SetMaximum(78625.5); 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,424.2857); h_SL1L362->SetBinContent(2,421.4286); h_SL1L362->SetBinContent(3,415.7143); h_SL1L362->SetBinContent(4,414.2857); h_SL1L362->SetBinContent(5,472.8571); h_SL1L362->SetBinContent(6,452.8571); h_SL1L362->SetBinContent(7,502.8571); h_SL1L362->SetBinContent(8,508.5714); h_SL1L362->SetBinContent(9,550); h_SL1L362->SetBinContent(10,637.1429); h_SL1L362->SetBinContent(11,664.2857); h_SL1L362->SetBinContent(12,732.8572); h_SL1L362->SetBinContent(13,775.7143); h_SL1L362->SetBinContent(14,848.5715); h_SL1L362->SetBinContent(15,777.1429); h_SL1L362->SetBinContent(16,855.7143); h_SL1L362->SetBinContent(17,1031.429); h_SL1L362->SetBinContent(18,1144.286); h_SL1L362->SetBinContent(19,1390); h_SL1L362->SetBinContent(20,1375.714); h_SL1L362->SetBinContent(21,1615.714); h_SL1L362->SetBinContent(22,1758.571); h_SL1L362->SetBinContent(23,1905.714); h_SL1L362->SetBinContent(24,2154.286); h_SL1L362->SetBinContent(25,2292.857); h_SL1L362->SetBinContent(26,2354.286); h_SL1L362->SetBinContent(27,2780); h_SL1L362->SetBinContent(28,3478.572); h_SL1L362->SetBinContent(29,3982.857); h_SL1L362->SetBinContent(30,4464.286); h_SL1L362->SetBinContent(31,6307.143); h_SL1L362->SetBinContent(32,10112.86); h_SL1L362->SetBinContent(33,43432.86); h_SL1L362->SetBinContent(34,55538.57); h_SL1L362->SetBinContent(35,60594.29); h_SL1L362->SetBinContent(36,66187.14); h_SL1L362->SetBinContent(37,68338.57); h_SL1L362->SetBinContent(38,59225.71); h_SL1L362->SetBinContent(39,38131.43); h_SL1L362->SetBinContent(40,9215.715); h_SL1L362->SetBinContent(41,5767.143); h_SL1L362->SetBinContent(42,4674.286); h_SL1L362->SetBinContent(43,4047.143); h_SL1L362->SetBinContent(44,3702.857); h_SL1L362->SetBinContent(45,3298.572); h_SL1L362->SetBinContent(46,3198.572); h_SL1L362->SetBinContent(47,2935.714); h_SL1L362->SetBinContent(48,2622.857); h_SL1L362->SetBinContent(49,2521.429); h_SL1L362->SetBinContent(50,2321.429); h_SL1L362->SetBinContent(51,2107.143); h_SL1L362->SetBinContent(52,2111.429); h_SL1L362->SetBinContent(53,1925.714); h_SL1L362->SetBinContent(54,1764.286); h_SL1L362->SetBinContent(55,1808.571); h_SL1L362->SetBinContent(56,1690); h_SL1L362->SetBinContent(57,1608.571); h_SL1L362->SetBinContent(58,1511.429); h_SL1L362->SetBinContent(59,1444.286); h_SL1L362->SetMaximum(78625.5); 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,422.8571); h_SL1L463->SetBinContent(3,380); h_SL1L463->SetBinContent(4,391.4286); h_SL1L463->SetBinContent(5,424.2857); h_SL1L463->SetBinContent(6,421.4286); h_SL1L463->SetBinContent(7,430); h_SL1L463->SetBinContent(8,518.5714); h_SL1L463->SetBinContent(9,495.7143); h_SL1L463->SetBinContent(10,552.8572); h_SL1L463->SetBinContent(11,628.5715); h_SL1L463->SetBinContent(12,671.4286); h_SL1L463->SetBinContent(13,704.2857); h_SL1L463->SetBinContent(14,792.8572); h_SL1L463->SetBinContent(15,790); h_SL1L463->SetBinContent(16,762.8572); h_SL1L463->SetBinContent(17,937.1429); h_SL1L463->SetBinContent(18,1012.857); h_SL1L463->SetBinContent(19,1188.571); h_SL1L463->SetBinContent(20,1320); h_SL1L463->SetBinContent(21,1521.429); h_SL1L463->SetBinContent(22,1574.286); h_SL1L463->SetBinContent(23,1761.429); h_SL1L463->SetBinContent(24,1898.572); h_SL1L463->SetBinContent(25,2087.143); h_SL1L463->SetBinContent(26,2224.286); h_SL1L463->SetBinContent(27,2522.857); h_SL1L463->SetBinContent(28,3084.286); h_SL1L463->SetBinContent(29,3587.143); h_SL1L463->SetBinContent(30,4015.714); h_SL1L463->SetBinContent(31,4891.429); h_SL1L463->SetBinContent(32,7957.143); h_SL1L463->SetBinContent(33,23757.14); h_SL1L463->SetBinContent(34,52501.43); h_SL1L463->SetBinContent(35,58354.29); h_SL1L463->SetBinContent(36,63347.14); h_SL1L463->SetBinContent(37,68370); h_SL1L463->SetBinContent(38,64712.86); h_SL1L463->SetBinContent(39,52907.14); h_SL1L463->SetBinContent(40,18202.86); h_SL1L463->SetBinContent(41,7495.714); h_SL1L463->SetBinContent(42,4962.857); h_SL1L463->SetBinContent(43,4220); h_SL1L463->SetBinContent(44,3868.572); h_SL1L463->SetBinContent(45,3355.714); h_SL1L463->SetBinContent(46,3195.714); h_SL1L463->SetBinContent(47,2982.857); h_SL1L463->SetBinContent(48,2791.429); h_SL1L463->SetBinContent(49,2480); h_SL1L463->SetBinContent(50,2455.714); h_SL1L463->SetBinContent(51,2115.714); h_SL1L463->SetBinContent(52,2007.143); h_SL1L463->SetBinContent(53,2078.572); h_SL1L463->SetBinContent(54,1795.714); h_SL1L463->SetBinContent(56,1698.571); h_SL1L463->SetBinContent(57,1592.857); h_SL1L463->SetBinContent(58,1517.143); h_SL1L463->SetBinContent(59,1380); h_SL1L463->SetMaximum(78625.5); 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 5317"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }