void RatesPerCell_Removing_noisy_cells_run_6520_SL1() { //=========Macro generated from canvas: c/c //========= (Tue Jan 15 10:01:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13033.67,67.5,117303); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6520",60,0,60); h_SL1L160->SetBinContent(1,377.1429); h_SL1L160->SetBinContent(2,402.8571); h_SL1L160->SetBinContent(3,462.8571); h_SL1L160->SetBinContent(4,480); h_SL1L160->SetBinContent(5,474.2857); h_SL1L160->SetBinContent(6,450); h_SL1L160->SetBinContent(7,500); h_SL1L160->SetBinContent(8,577.1429); h_SL1L160->SetBinContent(9,571.4286); h_SL1L160->SetBinContent(10,624.2857); h_SL1L160->SetBinContent(11,760); h_SL1L160->SetBinContent(12,760); h_SL1L160->SetBinContent(13,940); h_SL1L160->SetBinContent(14,985.7143); h_SL1L160->SetBinContent(15,881.4286); h_SL1L160->SetBinContent(16,872.8572); h_SL1L160->SetBinContent(17,1005.714); h_SL1L160->SetBinContent(18,1234.286); h_SL1L160->SetBinContent(19,1357.143); h_SL1L160->SetBinContent(20,1482.857); h_SL1L160->SetBinContent(21,1581.429); h_SL1L160->SetBinContent(22,1778.571); h_SL1L160->SetBinContent(23,2001.429); h_SL1L160->SetBinContent(24,2097.143); h_SL1L160->SetBinContent(25,2105.714); h_SL1L160->SetBinContent(26,2152.857); h_SL1L160->SetBinContent(27,2508.572); h_SL1L160->SetBinContent(28,3301.429); h_SL1L160->SetBinContent(29,3570); h_SL1L160->SetBinContent(30,4081.429); h_SL1L160->SetBinContent(31,5014.286); h_SL1L160->SetBinContent(32,8040); h_SL1L160->SetBinContent(33,30854.29); h_SL1L160->SetBinContent(34,51105.71); h_SL1L160->SetBinContent(35,63024.29); h_SL1L160->SetBinContent(36,72524.29); h_SL1L160->SetBinContent(37,74712.86); h_SL1L160->SetBinContent(38,61712.86); h_SL1L160->SetBinContent(39,33180); h_SL1L160->SetBinContent(40,8494.286); h_SL1L160->SetBinContent(41,5375.714); h_SL1L160->SetBinContent(42,4355.714); h_SL1L160->SetBinContent(43,4042.857); h_SL1L160->SetBinContent(44,3622.857); h_SL1L160->SetBinContent(45,3360); h_SL1L160->SetBinContent(46,3021.429); h_SL1L160->SetBinContent(47,3025.714); h_SL1L160->SetBinContent(48,2734.286); h_SL1L160->SetBinContent(49,2617.143); h_SL1L160->SetBinContent(50,2271.429); h_SL1L160->SetBinContent(51,2181.429); h_SL1L160->SetBinContent(52,2021.429); h_SL1L160->SetBinContent(53,1890); h_SL1L160->SetBinContent(54,1790); h_SL1L160->SetBinContent(55,1810); h_SL1L160->SetBinContent(56,1682.857); h_SL1L160->SetBinContent(57,1757.143); h_SL1L160->SetBinContent(58,1604.286); h_SL1L160->SetBinContent(59,1618.571); h_SL1L160->SetMaximum(104269.3); 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,337.1429); h_SL1L261->SetBinContent(2,354.2857); h_SL1L261->SetBinContent(3,337.1429); h_SL1L261->SetBinContent(4,400); h_SL1L261->SetBinContent(5,382.8571); h_SL1L261->SetBinContent(6,408.5714); h_SL1L261->SetBinContent(7,444.2857); h_SL1L261->SetBinContent(8,454.2857); h_SL1L261->SetBinContent(9,592.8572); h_SL1L261->SetBinContent(10,505.7143); h_SL1L261->SetBinContent(11,697.1429); h_SL1L261->SetBinContent(12,701.4286); h_SL1L261->SetBinContent(13,771.4286); h_SL1L261->SetBinContent(14,851.4286); h_SL1L261->SetBinContent(15,854.2857); h_SL1L261->SetBinContent(16,838.5715); h_SL1L261->SetBinContent(17,914.2858); h_SL1L261->SetBinContent(18,1187.143); h_SL1L261->SetBinContent(19,1247.143); h_SL1L261->SetBinContent(20,1335.714); h_SL1L261->SetBinContent(21,1447.143); h_SL1L261->SetBinContent(22,1695.714); h_SL1L261->SetBinContent(23,1731.429); h_SL1L261->SetBinContent(24,1950); h_SL1L261->SetBinContent(25,2071.429); h_SL1L261->SetBinContent(26,1947.143); h_SL1L261->SetBinContent(27,2355.714); h_SL1L261->SetBinContent(28,3082.857); h_SL1L261->SetBinContent(29,3304.286); h_SL1L261->SetBinContent(30,3648.572); h_SL1L261->SetBinContent(31,4367.143); h_SL1L261->SetBinContent(32,6677.143); h_SL1L261->SetBinContent(33,16297.14); h_SL1L261->SetBinContent(34,44805.71); h_SL1L261->SetBinContent(35,59254.29); h_SL1L261->SetBinContent(36,71802.86); h_SL1L261->SetBinContent(37,78842.86); h_SL1L261->SetBinContent(38,71791.43); h_SL1L261->SetBinContent(39,50457.14); h_SL1L261->SetBinContent(40,16518.57); h_SL1L261->SetBinContent(41,7291.429); h_SL1L261->SetBinContent(42,4634.286); h_SL1L261->SetBinContent(43,4127.143); h_SL1L261->SetBinContent(44,3687.143); h_SL1L261->SetBinContent(45,3465.714); h_SL1L261->SetBinContent(46,3071.429); h_SL1L261->SetBinContent(47,2920); h_SL1L261->SetBinContent(48,2748.572); h_SL1L261->SetBinContent(49,26218.57); h_SL1L261->SetBinContent(50,2371.429); h_SL1L261->SetBinContent(51,2182.857); h_SL1L261->SetBinContent(52,2598.572); h_SL1L261->SetBinContent(53,2457.143); h_SL1L261->SetBinContent(54,1864.286); h_SL1L261->SetBinContent(55,1745.714); h_SL1L261->SetBinContent(56,8744.286); h_SL1L261->SetBinContent(57,2154.286); h_SL1L261->SetBinContent(58,1684.286); h_SL1L261->SetBinContent(59,1511.429); h_SL1L261->SetMaximum(90669.29); 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,337.1429); h_SL1L362->SetBinContent(2,322.8571); h_SL1L362->SetBinContent(3,371.4286); h_SL1L362->SetBinContent(4,382.8571); h_SL1L362->SetBinContent(5,385.7143); h_SL1L362->SetBinContent(6,371.4286); h_SL1L362->SetBinContent(7,351.4286); h_SL1L362->SetBinContent(8,485.7143); h_SL1L362->SetBinContent(9,498.5714); h_SL1L362->SetBinContent(10,524.2857); h_SL1L362->SetBinContent(11,642.8572); h_SL1L362->SetBinContent(12,630); h_SL1L362->SetBinContent(13,732.8572); h_SL1L362->SetBinContent(14,801.4286); h_SL1L362->SetBinContent(15,767.1429); h_SL1L362->SetBinContent(16,825.7143); h_SL1L362->SetBinContent(17,957.1429); h_SL1L362->SetBinContent(18,1092.857); h_SL1L362->SetBinContent(19,1150); h_SL1L362->SetBinContent(20,1297.143); h_SL1L362->SetBinContent(21,1448.571); h_SL1L362->SetBinContent(22,1610); h_SL1L362->SetBinContent(23,1755.714); h_SL1L362->SetBinContent(24,1907.143); h_SL1L362->SetBinContent(25,1975.714); h_SL1L362->SetBinContent(26,2091.429); h_SL1L362->SetBinContent(27,2464.286); h_SL1L362->SetBinContent(28,3097.143); h_SL1L362->SetBinContent(29,3390); h_SL1L362->SetBinContent(30,3874.286); h_SL1L362->SetBinContent(31,5020); h_SL1L362->SetBinContent(32,8185.714); h_SL1L362->SetBinContent(33,32074.29); h_SL1L362->SetBinContent(34,53137.14); h_SL1L362->SetBinContent(35,65795.72); h_SL1L362->SetBinContent(36,76534.29); h_SL1L362->SetBinContent(37,77917.15); h_SL1L362->SetBinContent(38,62394.29); h_SL1L362->SetBinContent(39,34095.71); h_SL1L362->SetBinContent(40,8592.857); h_SL1L362->SetBinContent(41,5315.714); h_SL1L362->SetBinContent(42,4284.286); h_SL1L362->SetBinContent(43,3791.429); h_SL1L362->SetBinContent(44,3375.714); h_SL1L362->SetBinContent(45,3165.714); h_SL1L362->SetBinContent(46,2824.286); h_SL1L362->SetBinContent(47,2750); h_SL1L362->SetBinContent(48,2527.143); h_SL1L362->SetBinContent(49,2480); h_SL1L362->SetBinContent(50,2205.714); h_SL1L362->SetBinContent(51,2015.714); h_SL1L362->SetBinContent(52,1944.286); h_SL1L362->SetBinContent(53,8028.572); h_SL1L362->SetBinContent(54,1701.429); h_SL1L362->SetBinContent(55,1705.714); h_SL1L362->SetBinContent(56,10378.57); h_SL1L362->SetBinContent(57,2778.572); h_SL1L362->SetBinContent(58,1501.429); h_SL1L362->SetBinContent(59,1474.286); h_SL1L362->SetMaximum(90669.29); 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,292.8571); h_SL1L463->SetBinContent(3,268.5714); h_SL1L463->SetBinContent(4,330); h_SL1L463->SetBinContent(5,327.1429); h_SL1L463->SetBinContent(6,334.2857); h_SL1L463->SetBinContent(7,372.8571); h_SL1L463->SetBinContent(8,360); h_SL1L463->SetBinContent(9,452.8571); h_SL1L463->SetBinContent(10,420); h_SL1L463->SetBinContent(11,544.2857); h_SL1L463->SetBinContent(12,552.8572); h_SL1L463->SetBinContent(13,618.5715); h_SL1L463->SetBinContent(14,738.5715); h_SL1L463->SetBinContent(15,758.5715); h_SL1L463->SetBinContent(16,732.8572); h_SL1L463->SetBinContent(17,840); h_SL1L463->SetBinContent(18,984.2858); h_SL1L463->SetBinContent(19,1065.714); h_SL1L463->SetBinContent(20,1141.429); h_SL1L463->SetBinContent(21,1214.286); h_SL1L463->SetBinContent(22,1407.143); h_SL1L463->SetBinContent(23,1508.571); h_SL1L463->SetBinContent(24,1662.857); h_SL1L463->SetBinContent(25,1807.143); h_SL1L463->SetBinContent(26,1754.286); h_SL1L463->SetBinContent(27,2152.857); h_SL1L463->SetBinContent(28,2660); h_SL1L463->SetBinContent(29,2968.572); h_SL1L463->SetBinContent(30,3345.714); h_SL1L463->SetBinContent(31,3991.429); h_SL1L463->SetBinContent(32,6078.572); h_SL1L463->SetBinContent(33,15502.86); h_SL1L463->SetBinContent(34,44338.57); h_SL1L463->SetBinContent(35,59332.86); h_SL1L463->SetBinContent(36,70932.86); h_SL1L463->SetBinContent(37,77628.57); h_SL1L463->SetBinContent(38,70431.43); h_SL1L463->SetBinContent(39,50342.86); h_SL1L463->SetBinContent(40,16337.14); h_SL1L463->SetBinContent(41,6860); h_SL1L463->SetBinContent(42,4491.429); h_SL1L463->SetBinContent(43,3867.143); h_SL1L463->SetBinContent(44,3485.714); h_SL1L463->SetBinContent(45,3195.714); h_SL1L463->SetBinContent(46,2785.714); h_SL1L463->SetBinContent(47,2671.429); h_SL1L463->SetBinContent(48,2474.286); h_SL1L463->SetBinContent(49,2375.714); h_SL1L463->SetBinContent(50,2178.572); h_SL1L463->SetBinContent(51,1910); h_SL1L463->SetBinContent(52,1888.572); h_SL1L463->SetBinContent(53,1785.714); h_SL1L463->SetBinContent(54,1661.429); h_SL1L463->SetBinContent(55,1.428571); h_SL1L463->SetBinContent(56,1561.429); h_SL1L463->SetBinContent(57,1525.714); h_SL1L463->SetBinContent(58,1544.286); h_SL1L463->SetBinContent(59,1321.429); h_SL1L463->SetMaximum(90669.29); 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 6520"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }