void RatesPerCell_Removing_noisy_cells_run_4984_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:07:20 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11739.06,67.5,105651.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 4984",60,0,60); h_SL1L160->SetBinContent(1,233.5714); h_SL1L160->SetBinContent(2,192.8571); h_SL1L160->SetBinContent(3,231.4286); h_SL1L160->SetBinContent(4,251.4286); h_SL1L160->SetBinContent(5,244.2857); h_SL1L160->SetBinContent(6,236.4286); h_SL1L160->SetBinContent(7,250.7143); h_SL1L160->SetBinContent(8,257.8571); h_SL1L160->SetBinContent(9,259.2857); h_SL1L160->SetBinContent(10,278.5714); h_SL1L160->SetBinContent(11,376.4286); h_SL1L160->SetBinContent(12,332.1429); h_SL1L160->SetBinContent(13,447.8571); h_SL1L160->SetBinContent(14,440); h_SL1L160->SetBinContent(15,394.2857); h_SL1L160->SetBinContent(16,378.5714); h_SL1L160->SetBinContent(17,415.7143); h_SL1L160->SetBinContent(18,618.5715); h_SL1L160->SetBinContent(19,635); h_SL1L160->SetBinContent(20,740); h_SL1L160->SetBinContent(21,835.7143); h_SL1L160->SetBinContent(22,931.4286); h_SL1L160->SetBinContent(23,1050); h_SL1L160->SetBinContent(24,1070.714); h_SL1L160->SetBinContent(25,1183.571); h_SL1L160->SetBinContent(26,1319.286); h_SL1L160->SetBinContent(27,1568.571); h_SL1L160->SetBinContent(28,1760.714); h_SL1L160->SetBinContent(29,2085.714); h_SL1L160->SetBinContent(30,2341.429); h_SL1L160->SetBinContent(31,3329.286); h_SL1L160->SetBinContent(32,5848.572); h_SL1L160->SetBinContent(33,30840); h_SL1L160->SetBinContent(34,34659.29); h_SL1L160->SetBinContent(35,33535); h_SL1L160->SetBinContent(36,30489.29); h_SL1L160->SetBinContent(37,33271.43); h_SL1L160->SetBinContent(38,25723.57); h_SL1L160->SetBinContent(39,14169.29); h_SL1L160->SetBinContent(40,3222.143); h_SL1L160->SetBinContent(41,2194.286); h_SL1L160->SetBinContent(42,1985.714); h_SL1L160->SetBinContent(43,1852.143); h_SL1L160->SetBinContent(44,1635.714); h_SL1L160->SetBinContent(45,1370); h_SL1L160->SetBinContent(46,1215.714); h_SL1L160->SetBinContent(47,1300); h_SL1L160->SetBinContent(48,1022.857); h_SL1L160->SetBinContent(49,1119.286); h_SL1L160->SetBinContent(50,985.7143); h_SL1L160->SetBinContent(51,876.4286); h_SL1L160->SetBinContent(52,799.2857); h_SL1L160->SetBinContent(53,848.5715); h_SL1L160->SetBinContent(54,746.4286); h_SL1L160->SetBinContent(55,642.8572); h_SL1L160->SetBinContent(56,688.5715); h_SL1L160->SetBinContent(57,722.1429); h_SL1L160->SetBinContent(58,673.5715); h_SL1L160->SetBinContent(59,688.5715); h_SL1L160->SetMaximum(93912.45); 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,405.7143); h_SL1L261->SetBinContent(2,403.5714); h_SL1L261->SetBinContent(3,390); h_SL1L261->SetBinContent(4,440.7143); h_SL1L261->SetBinContent(5,441.4286); h_SL1L261->SetBinContent(6,507.8571); h_SL1L261->SetBinContent(7,498.5714); h_SL1L261->SetBinContent(8,547.8572); h_SL1L261->SetBinContent(9,527.1429); h_SL1L261->SetBinContent(10,560.7143); h_SL1L261->SetBinContent(11,661.4286); h_SL1L261->SetBinContent(12,701.4286); h_SL1L261->SetBinContent(13,771.4286); h_SL1L261->SetBinContent(14,823.5715); h_SL1L261->SetBinContent(15,862.8572); h_SL1L261->SetBinContent(16,822.8572); h_SL1L261->SetBinContent(17,900.7143); h_SL1L261->SetBinContent(18,1095); h_SL1L261->SetBinContent(19,1278.571); h_SL1L261->SetBinContent(20,1394.286); h_SL1L261->SetBinContent(21,1592.857); h_SL1L261->SetBinContent(22,1845); h_SL1L261->SetBinContent(23,2047.143); h_SL1L261->SetBinContent(24,2229.286); h_SL1L261->SetBinContent(25,2560); h_SL1L261->SetBinContent(26,2662.143); h_SL1L261->SetBinContent(27,2877.857); h_SL1L261->SetBinContent(28,3665.714); h_SL1L261->SetBinContent(29,4244.286); h_SL1L261->SetBinContent(30,4424.286); h_SL1L261->SetBinContent(31,5387.857); h_SL1L261->SetBinContent(32,9807.144); h_SL1L261->SetBinContent(33,37825.71); h_SL1L261->SetBinContent(34,70130); h_SL1L261->SetBinContent(35,64829.29); h_SL1L261->SetBinContent(36,64135.71); h_SL1L261->SetBinContent(37,60853.57); h_SL1L261->SetBinContent(38,52164.29); h_SL1L261->SetBinContent(39,38394.29); h_SL1L261->SetBinContent(40,12160); h_SL1L261->SetBinContent(41,5785.714); h_SL1L261->SetBinContent(42,4152.857); h_SL1L261->SetBinContent(43,3601.429); h_SL1L261->SetBinContent(44,3300.714); h_SL1L261->SetBinContent(45,2957.857); h_SL1L261->SetBinContent(46,2803.572); h_SL1L261->SetBinContent(47,2600); h_SL1L261->SetBinContent(48,2419.286); h_SL1L261->SetBinContent(49,11985.71); h_SL1L261->SetBinContent(50,2045); h_SL1L261->SetBinContent(51,1812.143); h_SL1L261->SetBinContent(52,1655.714); h_SL1L261->SetBinContent(53,1672.857); h_SL1L261->SetBinContent(54,1575); h_SL1L261->SetBinContent(55,1517.143); h_SL1L261->SetBinContent(56,1856.429); h_SL1L261->SetBinContent(57,1430); h_SL1L261->SetBinContent(58,1473.571); h_SL1L261->SetBinContent(59,1422.857); h_SL1L261->SetMaximum(81663.97); 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,347.8571); h_SL1L362->SetBinContent(3,380); h_SL1L362->SetBinContent(4,392.8571); h_SL1L362->SetBinContent(5,423.5714); h_SL1L362->SetBinContent(6,430.7143); h_SL1L362->SetBinContent(7,482.8571); h_SL1L362->SetBinContent(8,483.5714); h_SL1L362->SetBinContent(9,483.5714); h_SL1L362->SetBinContent(10,552.1429); h_SL1L362->SetBinContent(11,650); h_SL1L362->SetBinContent(12,685); h_SL1L362->SetBinContent(13,742.1429); h_SL1L362->SetBinContent(14,789.2857); h_SL1L362->SetBinContent(15,787.1429); h_SL1L362->SetBinContent(16,829.2857); h_SL1L362->SetBinContent(17,908.5715); h_SL1L362->SetBinContent(18,1160); h_SL1L362->SetBinContent(19,1255.714); h_SL1L362->SetBinContent(20,1422.143); h_SL1L362->SetBinContent(21,1620); h_SL1L362->SetBinContent(22,1880.714); h_SL1L362->SetBinContent(23,2049.286); h_SL1L362->SetBinContent(24,2320); h_SL1L362->SetBinContent(25,2545); h_SL1L362->SetBinContent(26,2673.572); h_SL1L362->SetBinContent(27,3027.857); h_SL1L362->SetBinContent(28,3880.714); h_SL1L362->SetBinContent(29,4265.714); h_SL1L362->SetBinContent(30,4728.572); h_SL1L362->SetBinContent(31,7182.857); h_SL1L362->SetBinContent(32,13785); h_SL1L362->SetBinContent(33,65472.14); h_SL1L362->SetBinContent(34,67188.57); h_SL1L362->SetBinContent(35,64454.29); h_SL1L362->SetBinContent(36,62721.43); h_SL1L362->SetBinContent(37,58030.71); h_SL1L362->SetBinContent(38,45617.14); h_SL1L362->SetBinContent(39,26155); h_SL1L362->SetBinContent(40,6766.429); h_SL1L362->SetBinContent(41,4490); h_SL1L362->SetBinContent(42,3816.429); h_SL1L362->SetBinContent(43,3380.714); h_SL1L362->SetBinContent(44,3025.714); h_SL1L362->SetBinContent(45,2732.857); h_SL1L362->SetBinContent(46,2499.286); h_SL1L362->SetBinContent(47,2465); h_SL1L362->SetBinContent(48,2212.143); h_SL1L362->SetBinContent(49,2013.572); h_SL1L362->SetBinContent(50,1848.572); h_SL1L362->SetBinContent(51,1694.286); h_SL1L362->SetBinContent(52,1603.571); h_SL1L362->SetBinContent(53,2729.286); h_SL1L362->SetBinContent(54,1515.714); h_SL1L362->SetBinContent(55,1400); h_SL1L362->SetBinContent(56,2699.286); h_SL1L362->SetBinContent(57,1455.714); h_SL1L362->SetBinContent(58,1391.429); h_SL1L362->SetBinContent(59,1375.714); h_SL1L362->SetMaximum(81663.97); 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,342.8571); h_SL1L463->SetBinContent(3,334.2857); h_SL1L463->SetBinContent(4,360); h_SL1L463->SetBinContent(5,377.1429); h_SL1L463->SetBinContent(6,421.4286); h_SL1L463->SetBinContent(7,430.7143); h_SL1L463->SetBinContent(8,456.4286); h_SL1L463->SetBinContent(9,453.5714); h_SL1L463->SetBinContent(10,476.4286); h_SL1L463->SetBinContent(11,575); h_SL1L463->SetBinContent(12,625); h_SL1L463->SetBinContent(13,707.8572); h_SL1L463->SetBinContent(14,696.4286); h_SL1L463->SetBinContent(15,783.5715); h_SL1L463->SetBinContent(16,742.8572); h_SL1L463->SetBinContent(17,821.4286); h_SL1L463->SetBinContent(18,1012.857); h_SL1L463->SetBinContent(19,1149.286); h_SL1L463->SetBinContent(20,1280); h_SL1L463->SetBinContent(21,1409.286); h_SL1L463->SetBinContent(22,1660); h_SL1L463->SetBinContent(23,1827.857); h_SL1L463->SetBinContent(24,2092.143); h_SL1L463->SetBinContent(25,2373.572); h_SL1L463->SetBinContent(26,2460); h_SL1L463->SetBinContent(27,2763.572); h_SL1L463->SetBinContent(28,3359.286); h_SL1L463->SetBinContent(29,4065.714); h_SL1L463->SetBinContent(30,4325); h_SL1L463->SetBinContent(31,5250.714); h_SL1L463->SetBinContent(32,9727.144); h_SL1L463->SetBinContent(33,37643.57); h_SL1L463->SetBinContent(34,71012.15); h_SL1L463->SetBinContent(35,65373.57); h_SL1L463->SetBinContent(36,64636.43); h_SL1L463->SetBinContent(37,61117.86); h_SL1L463->SetBinContent(38,52357.86); h_SL1L463->SetBinContent(39,38852.86); h_SL1L463->SetBinContent(40,12235); h_SL1L463->SetBinContent(41,5633.572); h_SL1L463->SetBinContent(42,4062.857); h_SL1L463->SetBinContent(43,3484.286); h_SL1L463->SetBinContent(44,3139.286); h_SL1L463->SetBinContent(45,2817.143); h_SL1L463->SetBinContent(46,2589.286); h_SL1L463->SetBinContent(47,2389.286); h_SL1L463->SetBinContent(48,2236.429); h_SL1L463->SetBinContent(49,1981.429); h_SL1L463->SetBinContent(50,1900); h_SL1L463->SetBinContent(51,1711.429); h_SL1L463->SetBinContent(52,1601.429); h_SL1L463->SetBinContent(53,1566.429); h_SL1L463->SetBinContent(54,1505); h_SL1L463->SetBinContent(56,1365); h_SL1L463->SetBinContent(57,1383.571); h_SL1L463->SetBinContent(58,1418.571); h_SL1L463->SetBinContent(59,1363.571); h_SL1L463->SetMaximum(81663.97); 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 4984"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }