void RatesPerCell_Removing_noisy_cells_run_6605_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:57:24 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12819.63,67.5,115376.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6605",60,0,60); h_SL2L164->SetBinContent(1,835.7143); h_SL2L164->SetBinContent(2,975.7143); h_SL2L164->SetBinContent(3,1108.571); h_SL2L164->SetBinContent(4,1192.857); h_SL2L164->SetBinContent(5,1244.286); h_SL2L164->SetBinContent(6,1290); h_SL2L164->SetBinContent(7,1352.857); h_SL2L164->SetBinContent(8,1377.143); h_SL2L164->SetBinContent(9,1574.286); h_SL2L164->SetBinContent(10,1578.571); h_SL2L164->SetBinContent(11,1782.857); h_SL2L164->SetBinContent(12,1942.857); h_SL2L164->SetBinContent(13,1980); h_SL2L164->SetBinContent(14,2098.572); h_SL2L164->SetBinContent(15,2158.572); h_SL2L164->SetBinContent(16,2274.286); h_SL2L164->SetBinContent(17,2442.857); h_SL2L164->SetBinContent(18,2410); h_SL2L164->SetBinContent(19,2784.286); h_SL2L164->SetBinContent(20,2760); h_SL2L164->SetBinContent(21,2752.857); h_SL2L164->SetBinContent(22,3074.286); h_SL2L164->SetBinContent(23,3408.572); h_SL2L164->SetBinContent(24,3842.857); h_SL2L164->SetBinContent(25,9194.286); h_SL2L164->SetBinContent(26,27805.71); h_SL2L164->SetBinContent(27,42121.43); h_SL2L164->SetBinContent(28,50091.43); h_SL2L164->SetBinContent(29,54251.43); h_SL2L164->SetBinContent(30,52494.29); h_SL2L164->SetBinContent(31,50464.29); h_SL2L164->SetBinContent(32,49848.57); h_SL2L164->SetBinContent(33,47801.43); h_SL2L164->SetBinContent(34,26950); h_SL2L164->SetBinContent(36,3897.143); h_SL2L164->SetBinContent(37,8552.857); h_SL2L164->SetBinContent(38,5207.143); h_SL2L164->SetBinContent(39,6652.857); h_SL2L164->SetBinContent(40,55787.14); h_SL2L164->SetBinContent(41,77548.57); h_SL2L164->SetBinContent(42,13242.86); h_SL2L164->SetBinContent(43,13442.86); h_SL2L164->SetBinContent(44,13968.57); h_SL2L164->SetBinContent(45,1585.714); h_SL2L164->SetBinContent(46,1414.286); h_SL2L164->SetBinContent(47,1274.286); h_SL2L164->SetBinContent(48,1220); h_SL2L164->SetBinContent(49,1128.571); h_SL2L164->SetBinContent(50,975.7143); h_SL2L164->SetBinContent(51,931.4286); h_SL2L164->SetBinContent(52,984.2858); h_SL2L164->SetBinContent(53,851.4286); h_SL2L164->SetBinContent(54,790); h_SL2L164->SetBinContent(55,768.5715); h_SL2L164->SetBinContent(56,675.7143); h_SL2L164->SetBinContent(57,6700); h_SL2L164->SetMaximum(102557); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,748.5715); h_SL2L265->SetBinContent(2,931.4286); h_SL2L265->SetBinContent(3,1030); h_SL2L265->SetBinContent(4,1137.143); h_SL2L265->SetBinContent(5,1188.571); h_SL2L265->SetBinContent(6,1257.143); h_SL2L265->SetBinContent(7,1277.143); h_SL2L265->SetBinContent(8,1355.714); h_SL2L265->SetBinContent(9,1502.857); h_SL2L265->SetBinContent(10,1508.571); h_SL2L265->SetBinContent(11,1677.143); h_SL2L265->SetBinContent(12,1811.429); h_SL2L265->SetBinContent(13,1928.572); h_SL2L265->SetBinContent(14,2032.857); h_SL2L265->SetBinContent(15,2030); h_SL2L265->SetBinContent(16,2262.857); h_SL2L265->SetBinContent(17,2230); h_SL2L265->SetBinContent(18,2402.857); h_SL2L265->SetBinContent(19,2607.143); h_SL2L265->SetBinContent(20,2710); h_SL2L265->SetBinContent(21,2727.143); h_SL2L265->SetBinContent(22,2782.857); h_SL2L265->SetBinContent(23,3191.429); h_SL2L265->SetBinContent(24,3580); h_SL2L265->SetBinContent(25,4694.286); h_SL2L265->SetBinContent(26,18368.57); h_SL2L265->SetBinContent(27,35417.14); h_SL2L265->SetBinContent(28,47157.14); h_SL2L265->SetBinContent(29,52504.29); h_SL2L265->SetBinContent(30,53238.57); h_SL2L265->SetBinContent(31,51027.14); h_SL2L265->SetBinContent(32,49952.86); h_SL2L265->SetBinContent(33,50331.43); h_SL2L265->SetBinContent(34,40222.86); h_SL2L265->SetBinContent(35,14142.86); h_SL2L265->SetBinContent(36,5074.286); h_SL2L265->SetBinContent(37,3598.572); h_SL2L265->SetBinContent(38,2825.714); h_SL2L265->SetBinContent(39,3864.286); h_SL2L265->SetBinContent(40,5248.572); h_SL2L265->SetBinContent(41,3564.286); h_SL2L265->SetBinContent(42,3680); h_SL2L265->SetBinContent(43,2534.286); h_SL2L265->SetBinContent(44,3668.572); h_SL2L265->SetBinContent(45,1494.286); h_SL2L265->SetBinContent(46,1452.857); h_SL2L265->SetBinContent(47,1342.857); h_SL2L265->SetBinContent(48,1145.714); h_SL2L265->SetBinContent(49,1174.286); h_SL2L265->SetBinContent(50,1021.429); h_SL2L265->SetBinContent(51,981.4286); h_SL2L265->SetBinContent(52,951.4286); h_SL2L265->SetBinContent(53,854.2857); h_SL2L265->SetBinContent(54,792.8572); h_SL2L265->SetBinContent(55,747.1429); h_SL2L265->SetBinContent(56,691.4286); h_SL2L265->SetBinContent(57,674.2857); h_SL2L265->SetMaximum(89180.86); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,861.4286); h_SL2L366->SetBinContent(2,981.4286); h_SL2L366->SetBinContent(3,1051.429); h_SL2L366->SetBinContent(4,1138.571); h_SL2L366->SetBinContent(5,1237.143); h_SL2L366->SetBinContent(6,1224.286); h_SL2L366->SetBinContent(7,1310); h_SL2L366->SetBinContent(8,1340); h_SL2L366->SetBinContent(9,1527.143); h_SL2L366->SetBinContent(10,1502.857); h_SL2L366->SetBinContent(11,1677.143); h_SL2L366->SetBinContent(12,1885.714); h_SL2L366->SetBinContent(13,1930); h_SL2L366->SetBinContent(14,2014.286); h_SL2L366->SetBinContent(15,2185.714); h_SL2L366->SetBinContent(16,2182.857); h_SL2L366->SetBinContent(17,2320); h_SL2L366->SetBinContent(18,2308.572); h_SL2L366->SetBinContent(19,2738.572); h_SL2L366->SetBinContent(20,2700); h_SL2L366->SetBinContent(21,2675.714); h_SL2L366->SetBinContent(22,2947.143); h_SL2L366->SetBinContent(23,3311.429); h_SL2L366->SetBinContent(24,3662.857); h_SL2L366->SetBinContent(25,9097.144); h_SL2L366->SetBinContent(26,27788.57); h_SL2L366->SetBinContent(27,42231.43); h_SL2L366->SetBinContent(28,49950); h_SL2L366->SetBinContent(29,53818.57); h_SL2L366->SetBinContent(30,52420); h_SL2L366->SetBinContent(31,50682.86); h_SL2L366->SetBinContent(32,49878.57); h_SL2L366->SetBinContent(33,47924.29); h_SL2L366->SetBinContent(34,26835.71); h_SL2L366->SetBinContent(35,7414.286); h_SL2L366->SetBinContent(36,3998.572); h_SL2L366->SetBinContent(37,3117.143); h_SL2L366->SetBinContent(38,2644.286); h_SL2L366->SetBinContent(39,2230); h_SL2L366->SetBinContent(40,4037.143); h_SL2L366->SetBinContent(41,2428.572); h_SL2L366->SetBinContent(42,1827.143); h_SL2L366->SetBinContent(43,1657.143); h_SL2L366->SetBinContent(44,1625.714); h_SL2L366->SetBinContent(45,1482.857); h_SL2L366->SetBinContent(46,1380); h_SL2L366->SetBinContent(47,1268.571); h_SL2L366->SetBinContent(48,1185.714); h_SL2L366->SetBinContent(49,1100); h_SL2L366->SetBinContent(50,1028.571); h_SL2L366->SetBinContent(51,918.5715); h_SL2L366->SetBinContent(52,935.7143); h_SL2L366->SetBinContent(53,865.7143); h_SL2L366->SetBinContent(54,762.8572); h_SL2L366->SetBinContent(55,718.5715); h_SL2L366->SetBinContent(56,685.7143); h_SL2L366->SetBinContent(57,691.4286); h_SL2L366->SetMaximum(89180.86); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,927.1429); h_SL2L467->SetBinContent(3,978.5715); h_SL2L467->SetBinContent(4,1121.429); h_SL2L467->SetBinContent(5,1127.143); h_SL2L467->SetBinContent(6,1177.143); h_SL2L467->SetBinContent(7,1234.286); h_SL2L467->SetBinContent(8,1322.857); h_SL2L467->SetBinContent(9,1374.286); h_SL2L467->SetBinContent(10,1452.857); h_SL2L467->SetBinContent(11,1590); h_SL2L467->SetBinContent(12,1720); h_SL2L467->SetBinContent(13,1872.857); h_SL2L467->SetBinContent(14,1930); h_SL2L467->SetBinContent(15,2028.572); h_SL2L467->SetBinContent(16,2232.857); h_SL2L467->SetBinContent(17,2195.714); h_SL2L467->SetBinContent(18,2298.572); h_SL2L467->SetBinContent(19,2545.714); h_SL2L467->SetBinContent(20,2604.286); h_SL2L467->SetBinContent(21,2642.857); h_SL2L467->SetBinContent(22,2764.286); h_SL2L467->SetBinContent(23,3108.572); h_SL2L467->SetBinContent(24,3465.714); h_SL2L467->SetBinContent(25,4567.143); h_SL2L467->SetBinContent(26,18240); h_SL2L467->SetBinContent(27,35638.57); h_SL2L467->SetBinContent(28,46747.14); h_SL2L467->SetBinContent(29,52504.29); h_SL2L467->SetBinContent(30,53842.86); h_SL2L467->SetBinContent(31,50887.14); h_SL2L467->SetBinContent(32,50142.86); h_SL2L467->SetBinContent(33,50335.71); h_SL2L467->SetBinContent(34,40357.14); h_SL2L467->SetBinContent(35,14257.14); h_SL2L467->SetBinContent(36,4900); h_SL2L467->SetBinContent(37,3522.857); h_SL2L467->SetBinContent(38,2740); h_SL2L467->SetBinContent(39,2420); h_SL2L467->SetBinContent(40,2034.286); h_SL2L467->SetBinContent(41,1891.429); h_SL2L467->SetBinContent(42,2358.572); h_SL2L467->SetBinContent(43,1724.286); h_SL2L467->SetBinContent(44,1622.857); h_SL2L467->SetBinContent(45,1540); h_SL2L467->SetBinContent(46,1378.571); h_SL2L467->SetBinContent(47,1332.857); h_SL2L467->SetBinContent(48,1164.286); h_SL2L467->SetBinContent(49,1104.286); h_SL2L467->SetBinContent(50,972.8572); h_SL2L467->SetBinContent(51,967.1429); h_SL2L467->SetBinContent(52,931.4286); h_SL2L467->SetBinContent(53,857.1429); h_SL2L467->SetBinContent(54,790); h_SL2L467->SetBinContent(55,715.7143); h_SL2L467->SetBinContent(56,664.2857); h_SL2L467->SetBinContent(57,667.1429); h_SL2L467->SetMaximum(89180.86); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 6605"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }