void RatesPerCell_Removing_noisy_cells_run_4991_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:14:13 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11469.96,67.5,103229.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 4991",60,0,60); h_SL1L160->SetBinContent(1,466.4286); h_SL1L160->SetBinContent(2,470); h_SL1L160->SetBinContent(3,490.7143); h_SL1L160->SetBinContent(4,491.4286); h_SL1L160->SetBinContent(5,522.8572); h_SL1L160->SetBinContent(6,555.7143); h_SL1L160->SetBinContent(7,570); h_SL1L160->SetBinContent(8,617.1429); h_SL1L160->SetBinContent(9,659.2857); h_SL1L160->SetBinContent(10,668.5715); h_SL1L160->SetBinContent(11,776.4286); h_SL1L160->SetBinContent(12,830.7143); h_SL1L160->SetBinContent(13,877.1429); h_SL1L160->SetBinContent(14,953.5715); h_SL1L160->SetBinContent(15,890); h_SL1L160->SetBinContent(16,902.8572); h_SL1L160->SetBinContent(17,1057.143); h_SL1L160->SetBinContent(18,1250.714); h_SL1L160->SetBinContent(19,1409.286); h_SL1L160->SetBinContent(20,1605.714); h_SL1L160->SetBinContent(21,1858.572); h_SL1L160->SetBinContent(22,1985); h_SL1L160->SetBinContent(23,2232.857); h_SL1L160->SetBinContent(24,2527.857); h_SL1L160->SetBinContent(25,2674.286); h_SL1L160->SetBinContent(26,2852.857); h_SL1L160->SetBinContent(27,3292.857); h_SL1L160->SetBinContent(28,4110); h_SL1L160->SetBinContent(29,4421.429); h_SL1L160->SetBinContent(30,5006.429); h_SL1L160->SetBinContent(31,7491.429); h_SL1L160->SetBinContent(32,13808.57); h_SL1L160->SetBinContent(33,64432.86); h_SL1L160->SetBinContent(34,66254.29); h_SL1L160->SetBinContent(35,63900.71); h_SL1L160->SetBinContent(36,62592.14); h_SL1L160->SetBinContent(37,56859.29); h_SL1L160->SetBinContent(38,45032.14); h_SL1L160->SetBinContent(39,25930); h_SL1L160->SetBinContent(40,6873.572); h_SL1L160->SetBinContent(41,4630.714); h_SL1L160->SetBinContent(42,3927.143); h_SL1L160->SetBinContent(43,3497.857); h_SL1L160->SetBinContent(44,3385.714); h_SL1L160->SetBinContent(45,3105.714); h_SL1L160->SetBinContent(46,2801.429); h_SL1L160->SetBinContent(47,2628.572); h_SL1L160->SetBinContent(48,2458.572); h_SL1L160->SetBinContent(49,2168.572); h_SL1L160->SetBinContent(50,2010.714); h_SL1L160->SetBinContent(51,1727.143); h_SL1L160->SetBinContent(52,1719.286); h_SL1L160->SetBinContent(53,1640); h_SL1L160->SetBinContent(54,1554.286); h_SL1L160->SetBinContent(55,1593.571); h_SL1L160->SetBinContent(56,1492.143); h_SL1L160->SetBinContent(57,1502.857); h_SL1L160->SetBinContent(58,1528.571); h_SL1L160->SetBinContent(59,1535); h_SL1L160->SetMaximum(91759.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,410.7143); h_SL1L261->SetBinContent(2,425); h_SL1L261->SetBinContent(3,435.7143); h_SL1L261->SetBinContent(4,422.8571); h_SL1L261->SetBinContent(5,450); h_SL1L261->SetBinContent(6,482.8571); h_SL1L261->SetBinContent(7,497.8571); h_SL1L261->SetBinContent(8,542.8572); h_SL1L261->SetBinContent(9,548.5714); h_SL1L261->SetBinContent(10,562.8572); h_SL1L261->SetBinContent(11,645.7143); h_SL1L261->SetBinContent(12,720.7143); h_SL1L261->SetBinContent(13,758.5715); h_SL1L261->SetBinContent(14,856.4286); h_SL1L261->SetBinContent(15,872.1429); h_SL1L261->SetBinContent(16,815.7143); h_SL1L261->SetBinContent(17,915); h_SL1L261->SetBinContent(18,1102.143); h_SL1L261->SetBinContent(19,1214.286); h_SL1L261->SetBinContent(20,1455.714); h_SL1L261->SetBinContent(21,1640); h_SL1L261->SetBinContent(22,1855.714); h_SL1L261->SetBinContent(23,1955.714); h_SL1L261->SetBinContent(24,2298.572); h_SL1L261->SetBinContent(25,2528.572); h_SL1L261->SetBinContent(26,2577.143); h_SL1L261->SetBinContent(27,2962.143); h_SL1L261->SetBinContent(28,3680.714); h_SL1L261->SetBinContent(29,4067.143); h_SL1L261->SetBinContent(30,4592.143); h_SL1L261->SetBinContent(31,5510); h_SL1L261->SetBinContent(32,9889.286); h_SL1L261->SetBinContent(33,37537.14); h_SL1L261->SetBinContent(34,69384.29); h_SL1L261->SetBinContent(35,63972.14); h_SL1L261->SetBinContent(36,63705); h_SL1L261->SetBinContent(37,60514.29); h_SL1L261->SetBinContent(38,51728.57); h_SL1L261->SetBinContent(39,37809.29); h_SL1L261->SetBinContent(40,11988.57); h_SL1L261->SetBinContent(41,5857.143); h_SL1L261->SetBinContent(42,4070.714); h_SL1L261->SetBinContent(43,3585.714); h_SL1L261->SetBinContent(44,3252.143); h_SL1L261->SetBinContent(45,3063.572); h_SL1L261->SetBinContent(46,2882.143); h_SL1L261->SetBinContent(47,2604.286); h_SL1L261->SetBinContent(48,2359.286); h_SL1L261->SetBinContent(49,2181.429); h_SL1L261->SetBinContent(50,1983.572); h_SL1L261->SetBinContent(51,1810.714); h_SL1L261->SetBinContent(52,1669.286); h_SL1L261->SetBinContent(53,1624.286); h_SL1L261->SetBinContent(54,1579.286); h_SL1L261->SetBinContent(55,1514.286); h_SL1L261->SetBinContent(56,1485); h_SL1L261->SetBinContent(57,1395.714); h_SL1L261->SetBinContent(58,1505.714); h_SL1L261->SetBinContent(59,1501.429); h_SL1L261->SetMaximum(79791.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,377.8571); h_SL1L362->SetBinContent(2,387.1429); h_SL1L362->SetBinContent(3,365.7143); h_SL1L362->SetBinContent(4,383.5714); h_SL1L362->SetBinContent(5,427.1429); h_SL1L362->SetBinContent(6,430); h_SL1L362->SetBinContent(7,482.8571); h_SL1L362->SetBinContent(8,477.1429); h_SL1L362->SetBinContent(9,521.4286); h_SL1L362->SetBinContent(10,588.5715); h_SL1L362->SetBinContent(11,638.5715); h_SL1L362->SetBinContent(12,705); h_SL1L362->SetBinContent(13,757.1429); h_SL1L362->SetBinContent(14,805.7143); h_SL1L362->SetBinContent(15,795.7143); h_SL1L362->SetBinContent(16,792.1429); h_SL1L362->SetBinContent(17,952.1429); h_SL1L362->SetBinContent(18,1110); h_SL1L362->SetBinContent(19,1260); h_SL1L362->SetBinContent(20,1457.143); h_SL1L362->SetBinContent(21,1649.286); h_SL1L362->SetBinContent(22,1776.429); h_SL1L362->SetBinContent(23,2010); h_SL1L362->SetBinContent(24,2326.429); h_SL1L362->SetBinContent(25,2477.857); h_SL1L362->SetBinContent(26,2717.857); h_SL1L362->SetBinContent(27,3138.572); h_SL1L362->SetBinContent(28,3871.429); h_SL1L362->SetBinContent(29,4229.286); h_SL1L362->SetBinContent(30,4856.429); h_SL1L362->SetBinContent(31,7399.286); h_SL1L362->SetBinContent(32,13872.86); h_SL1L362->SetBinContent(33,64731.43); h_SL1L362->SetBinContent(34,66302.86); h_SL1L362->SetBinContent(35,63985.71); h_SL1L362->SetBinContent(36,62861.43); h_SL1L362->SetBinContent(37,56937.14); h_SL1L362->SetBinContent(38,45032.86); h_SL1L362->SetBinContent(39,25841.43); h_SL1L362->SetBinContent(40,6676.429); h_SL1L362->SetBinContent(41,4472.857); h_SL1L362->SetBinContent(42,3747.857); h_SL1L362->SetBinContent(43,3297.857); h_SL1L362->SetBinContent(44,3082.857); h_SL1L362->SetBinContent(45,2849.286); h_SL1L362->SetBinContent(46,2579.286); h_SL1L362->SetBinContent(47,2352.857); h_SL1L362->SetBinContent(48,2205.714); h_SL1L362->SetBinContent(49,1960); h_SL1L362->SetBinContent(50,1805); h_SL1L362->SetBinContent(51,1662.143); h_SL1L362->SetBinContent(52,1625.714); h_SL1L362->SetBinContent(53,1538.571); h_SL1L362->SetBinContent(54,1447.857); h_SL1L362->SetBinContent(55,1459.286); h_SL1L362->SetBinContent(56,1399.286); h_SL1L362->SetBinContent(57,1359.286); h_SL1L362->SetBinContent(58,1456.429); h_SL1L362->SetBinContent(59,1428.571); h_SL1L362->SetMaximum(79791.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,315.7143); h_SL1L463->SetBinContent(3,305); h_SL1L463->SetBinContent(4,311.4286); h_SL1L463->SetBinContent(5,317.1429); h_SL1L463->SetBinContent(6,360); h_SL1L463->SetBinContent(7,358.5714); h_SL1L463->SetBinContent(8,382.8571); h_SL1L463->SetBinContent(9,407.8571); h_SL1L463->SetBinContent(10,403.5714); h_SL1L463->SetBinContent(11,475.7143); h_SL1L463->SetBinContent(12,531.4286); h_SL1L463->SetBinContent(13,570); h_SL1L463->SetBinContent(14,651.4286); h_SL1L463->SetBinContent(15,645); h_SL1L463->SetBinContent(16,647.1429); h_SL1L463->SetBinContent(17,717.8572); h_SL1L463->SetBinContent(18,873.5715); h_SL1L463->SetBinContent(19,950); h_SL1L463->SetBinContent(20,1117.143); h_SL1L463->SetBinContent(21,1281.429); h_SL1L463->SetBinContent(22,1495.714); h_SL1L463->SetBinContent(23,1525.714); h_SL1L463->SetBinContent(24,1801.429); h_SL1L463->SetBinContent(25,1994.286); h_SL1L463->SetBinContent(26,2121.429); h_SL1L463->SetBinContent(27,2456.429); h_SL1L463->SetBinContent(28,3085.714); h_SL1L463->SetBinContent(29,3369.286); h_SL1L463->SetBinContent(30,3820.714); h_SL1L463->SetBinContent(31,4768.572); h_SL1L463->SetBinContent(32,8424.286); h_SL1L463->SetBinContent(33,32386.43); h_SL1L463->SetBinContent(34,63060.71); h_SL1L463->SetBinContent(35,58440); h_SL1L463->SetBinContent(36,57862.86); h_SL1L463->SetBinContent(37,53040); h_SL1L463->SetBinContent(38,46183.57); h_SL1L463->SetBinContent(39,34559.29); h_SL1L463->SetBinContent(40,10325.71); h_SL1L463->SetBinContent(41,5015.714); h_SL1L463->SetBinContent(42,3507.857); h_SL1L463->SetBinContent(43,3114.286); h_SL1L463->SetBinContent(44,2752.143); h_SL1L463->SetBinContent(45,2514.286); h_SL1L463->SetBinContent(46,2339.286); h_SL1L463->SetBinContent(47,2087.857); h_SL1L463->SetBinContent(48,1904.286); h_SL1L463->SetBinContent(49,1713.571); h_SL1L463->SetBinContent(50,1597.143); h_SL1L463->SetBinContent(51,1501.429); h_SL1L463->SetBinContent(52,1366.429); h_SL1L463->SetBinContent(53,1340); h_SL1L463->SetBinContent(54,1292.143); h_SL1L463->SetBinContent(55,0.7142857); h_SL1L463->SetBinContent(56,1252.143); h_SL1L463->SetBinContent(57,1170.714); h_SL1L463->SetBinContent(58,1208.571); h_SL1L463->SetBinContent(59,1189.286); h_SL1L463->SetMaximum(79791.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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 4991"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }