void RatesPerCell_Removing_noisy_cells_run_4979_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:09:25 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-37010.6,67.5,333095.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 4979",60,0,60); h_SL1L160->SetBinContent(1,445); h_SL1L160->SetBinContent(2,476.4286); h_SL1L160->SetBinContent(3,520.7143); h_SL1L160->SetBinContent(4,512.8572); h_SL1L160->SetBinContent(5,562.1429); h_SL1L160->SetBinContent(6,539.2857); h_SL1L160->SetBinContent(7,542.1429); h_SL1L160->SetBinContent(8,715.7143); h_SL1L160->SetBinContent(9,621.4286); h_SL1L160->SetBinContent(10,668.5715); h_SL1L160->SetBinContent(11,786.4286); h_SL1L160->SetBinContent(12,843.5715); h_SL1L160->SetBinContent(13,961.4286); h_SL1L160->SetBinContent(14,1040.714); h_SL1L160->SetBinContent(15,879.2857); h_SL1L160->SetBinContent(16,953.5715); h_SL1L160->SetBinContent(17,1055.714); h_SL1L160->SetBinContent(18,1372.857); h_SL1L160->SetBinContent(19,1499.286); h_SL1L160->SetBinContent(20,1662.857); h_SL1L160->SetBinContent(21,1855); h_SL1L160->SetBinContent(22,2095); h_SL1L160->SetBinContent(23,2329.286); h_SL1L160->SetBinContent(24,2552.857); h_SL1L160->SetBinContent(25,2772.143); h_SL1L160->SetBinContent(26,2988.572); h_SL1L160->SetBinContent(27,3351.429); h_SL1L160->SetBinContent(28,4202.143); h_SL1L160->SetBinContent(29,4444.286); h_SL1L160->SetBinContent(30,5190.714); h_SL1L160->SetBinContent(31,7439.286); h_SL1L160->SetBinContent(32,14292.86); h_SL1L160->SetBinContent(33,66551.43); h_SL1L160->SetBinContent(34,69572.14); h_SL1L160->SetBinContent(35,65879.29); h_SL1L160->SetBinContent(36,64427.14); h_SL1L160->SetBinContent(37,59835); h_SL1L160->SetBinContent(38,47635.71); h_SL1L160->SetBinContent(39,28722.14); h_SL1L160->SetBinContent(40,7184.286); h_SL1L160->SetBinContent(41,4800.714); h_SL1L160->SetBinContent(42,4078.572); h_SL1L160->SetBinContent(43,3696.429); h_SL1L160->SetBinContent(44,3441.429); h_SL1L160->SetBinContent(45,3180); h_SL1L160->SetBinContent(46,2893.572); h_SL1L160->SetBinContent(47,2655); h_SL1L160->SetBinContent(48,2481.429); h_SL1L160->SetBinContent(49,2275); h_SL1L160->SetBinContent(50,2001.429); h_SL1L160->SetBinContent(51,1853.572); h_SL1L160->SetBinContent(52,1832.143); h_SL1L160->SetBinContent(53,1747.143); h_SL1L160->SetBinContent(54,1687.857); h_SL1L160->SetBinContent(55,1624.286); h_SL1L160->SetBinContent(56,1497.143); h_SL1L160->SetBinContent(57,1574.286); h_SL1L160->SetBinContent(58,1572.857); h_SL1L160->SetBinContent(59,1517.857); h_SL1L160->SetMaximum(296084.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,406.4286); h_SL1L261->SetBinContent(2,404.2857); h_SL1L261->SetBinContent(3,440); h_SL1L261->SetBinContent(4,436.4286); h_SL1L261->SetBinContent(5,476.4286); h_SL1L261->SetBinContent(6,488.5714); h_SL1L261->SetBinContent(7,503.5714); h_SL1L261->SetBinContent(8,499.2857); h_SL1L261->SetBinContent(9,538.5714); h_SL1L261->SetBinContent(10,590); h_SL1L261->SetBinContent(11,627.1429); h_SL1L261->SetBinContent(12,715.7143); h_SL1L261->SetBinContent(13,832.8572); h_SL1L261->SetBinContent(14,892.8572); h_SL1L261->SetBinContent(15,885); h_SL1L261->SetBinContent(16,798.5715); h_SL1L261->SetBinContent(17,954.2858); h_SL1L261->SetBinContent(18,1168.571); h_SL1L261->SetBinContent(19,1310); h_SL1L261->SetBinContent(20,1461.429); h_SL1L261->SetBinContent(21,1647.857); h_SL1L261->SetBinContent(22,1871.429); h_SL1L261->SetBinContent(23,2067.857); h_SL1L261->SetBinContent(24,2285.714); h_SL1L261->SetBinContent(25,2626.429); h_SL1L261->SetBinContent(26,2685.714); h_SL1L261->SetBinContent(27,3054.286); h_SL1L261->SetBinContent(28,3917.857); h_SL1L261->SetBinContent(29,4175.714); h_SL1L261->SetBinContent(30,4585); h_SL1L261->SetBinContent(31,5534.286); h_SL1L261->SetBinContent(32,10087.86); h_SL1L261->SetBinContent(33,38772.14); h_SL1L261->SetBinContent(34,72095.72); h_SL1L261->SetBinContent(35,66355); h_SL1L261->SetBinContent(36,65142.14); h_SL1L261->SetBinContent(37,62172.86); h_SL1L261->SetBinContent(38,53677.86); h_SL1L261->SetBinContent(39,39335); h_SL1L261->SetBinContent(40,12290.71); h_SL1L261->SetBinContent(41,6136.429); h_SL1L261->SetBinContent(42,4195); h_SL1L261->SetBinContent(43,3742.143); h_SL1L261->SetBinContent(44,3410.714); h_SL1L261->SetBinContent(45,3142.143); h_SL1L261->SetBinContent(46,2935.714); h_SL1L261->SetBinContent(47,2717.857); h_SL1L261->SetBinContent(48,2425.714); h_SL1L261->SetBinContent(49,223882.9); h_SL1L261->SetBinContent(50,2015.714); h_SL1L261->SetBinContent(51,1845); h_SL1L261->SetBinContent(52,24190); h_SL1L261->SetBinContent(53,25664.29); h_SL1L261->SetBinContent(54,1650); h_SL1L261->SetBinContent(55,1590.714); h_SL1L261->SetBinContent(56,86937.86); h_SL1L261->SetBinContent(57,1469.286); h_SL1L261->SetBinContent(58,1557.143); h_SL1L261->SetBinContent(59,1445); h_SL1L261->SetMaximum(257465.3); 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,364.2857); h_SL1L362->SetBinContent(2,390); h_SL1L362->SetBinContent(3,387.1429); h_SL1L362->SetBinContent(4,415); h_SL1L362->SetBinContent(5,437.1429); h_SL1L362->SetBinContent(6,444.2857); h_SL1L362->SetBinContent(7,456.4286); h_SL1L362->SetBinContent(8,486.4286); h_SL1L362->SetBinContent(9,529.2857); h_SL1L362->SetBinContent(10,552.1429); h_SL1L362->SetBinContent(11,626.4286); h_SL1L362->SetBinContent(12,726.4286); h_SL1L362->SetBinContent(13,813.5715); h_SL1L362->SetBinContent(14,839.2857); h_SL1L362->SetBinContent(15,760.7143); h_SL1L362->SetBinContent(16,816.4286); h_SL1L362->SetBinContent(17,963.5715); h_SL1L362->SetBinContent(18,1185); h_SL1L362->SetBinContent(19,1292.143); h_SL1L362->SetBinContent(20,1497.143); h_SL1L362->SetBinContent(21,1645); h_SL1L362->SetBinContent(22,1881.429); h_SL1L362->SetBinContent(23,2061.429); h_SL1L362->SetBinContent(24,2369.286); h_SL1L362->SetBinContent(25,2552.143); h_SL1L362->SetBinContent(26,2803.572); h_SL1L362->SetBinContent(27,3230); h_SL1L362->SetBinContent(28,3860.714); h_SL1L362->SetBinContent(29,4206.429); h_SL1L362->SetBinContent(30,4967.143); h_SL1L362->SetBinContent(31,7325); h_SL1L362->SetBinContent(32,14246.43); h_SL1L362->SetBinContent(33,66532.14); h_SL1L362->SetBinContent(34,69203.57); h_SL1L362->SetBinContent(35,65555); h_SL1L362->SetBinContent(36,64450.71); h_SL1L362->SetBinContent(37,59272.14); h_SL1L362->SetBinContent(38,46725.71); h_SL1L362->SetBinContent(39,26637.14); h_SL1L362->SetBinContent(40,7115.714); h_SL1L362->SetBinContent(41,4543.572); h_SL1L362->SetBinContent(42,3892.857); h_SL1L362->SetBinContent(43,3470); h_SL1L362->SetBinContent(44,3177.143); h_SL1L362->SetBinContent(45,2922.857); h_SL1L362->SetBinContent(46,2682.857); h_SL1L362->SetBinContent(47,2422.857); h_SL1L362->SetBinContent(48,2235); h_SL1L362->SetBinContent(49,12887.14); h_SL1L362->SetBinContent(50,1797.143); h_SL1L362->SetBinContent(51,1736.429); h_SL1L362->SetBinContent(52,1825); h_SL1L362->SetBinContent(53,97237.86); h_SL1L362->SetBinContent(54,1574.286); h_SL1L362->SetBinContent(55,1511.429); h_SL1L362->SetBinContent(56,111579.3); h_SL1L362->SetBinContent(57,1448.571); h_SL1L362->SetBinContent(58,1501.429); h_SL1L362->SetBinContent(59,1410); h_SL1L362->SetMaximum(257465.3); 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,377.1429); h_SL1L463->SetBinContent(3,346.4286); h_SL1L463->SetBinContent(4,365); h_SL1L463->SetBinContent(5,420); h_SL1L463->SetBinContent(6,407.8571); h_SL1L463->SetBinContent(7,419.2857); h_SL1L463->SetBinContent(8,432.8571); h_SL1L463->SetBinContent(9,457.1429); h_SL1L463->SetBinContent(10,501.4286); h_SL1L463->SetBinContent(11,556.4286); h_SL1L463->SetBinContent(12,620); h_SL1L463->SetBinContent(13,717.8572); h_SL1L463->SetBinContent(14,757.8572); h_SL1L463->SetBinContent(15,791.4286); h_SL1L463->SetBinContent(16,742.8572); h_SL1L463->SetBinContent(17,842.8572); h_SL1L463->SetBinContent(18,1069.286); h_SL1L463->SetBinContent(19,1184.286); h_SL1L463->SetBinContent(20,1350.714); h_SL1L463->SetBinContent(21,1469.286); h_SL1L463->SetBinContent(22,1681.429); h_SL1L463->SetBinContent(23,1860); h_SL1L463->SetBinContent(24,2037.143); h_SL1L463->SetBinContent(25,2440.714); h_SL1L463->SetBinContent(26,2535.714); h_SL1L463->SetBinContent(27,2920); h_SL1L463->SetBinContent(28,3512.857); h_SL1L463->SetBinContent(29,3943.572); h_SL1L463->SetBinContent(30,4473.572); h_SL1L463->SetBinContent(31,5556.429); h_SL1L463->SetBinContent(32,10007.14); h_SL1L463->SetBinContent(33,38412.14); h_SL1L463->SetBinContent(34,73118.57); h_SL1L463->SetBinContent(35,68103.57); h_SL1L463->SetBinContent(36,66045.72); h_SL1L463->SetBinContent(37,62685.71); h_SL1L463->SetBinContent(38,53855.71); h_SL1L463->SetBinContent(39,40140.71); h_SL1L463->SetBinContent(40,12451.43); h_SL1L463->SetBinContent(41,6019.286); h_SL1L463->SetBinContent(42,4117.143); h_SL1L463->SetBinContent(43,3597.857); h_SL1L463->SetBinContent(44,3235); h_SL1L463->SetBinContent(45,2971.429); h_SL1L463->SetBinContent(46,2702.143); h_SL1L463->SetBinContent(47,2470); h_SL1L463->SetBinContent(48,2224.286); h_SL1L463->SetBinContent(49,2038.572); h_SL1L463->SetBinContent(50,1912.143); h_SL1L463->SetBinContent(51,1722.143); h_SL1L463->SetBinContent(52,1700); h_SL1L463->SetBinContent(53,1614.286); h_SL1L463->SetBinContent(54,1560); h_SL1L463->SetBinContent(55,5); h_SL1L463->SetBinContent(56,1447.143); h_SL1L463->SetBinContent(57,1400); h_SL1L463->SetBinContent(58,1484.286); h_SL1L463->SetBinContent(59,1389.286); h_SL1L463->SetMaximum(257465.3); 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 4979"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }