void RatesPerCell_Removing_noisy_cells_run_5014_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:24:09 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9094.201,67.5,81847.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5014",60,0,60); h_SL2L164->SetBinContent(1,597.1429); h_SL2L164->SetBinContent(2,714.2857); h_SL2L164->SetBinContent(3,837.1429); h_SL2L164->SetBinContent(4,967.1429); h_SL2L164->SetBinContent(5,975.7143); h_SL2L164->SetBinContent(6,1017.143); h_SL2L164->SetBinContent(7,1060); h_SL2L164->SetBinContent(8,1110); h_SL2L164->SetBinContent(9,1247.143); h_SL2L164->SetBinContent(10,1381.429); h_SL2L164->SetBinContent(11,1535.714); h_SL2L164->SetBinContent(12,1534.286); h_SL2L164->SetBinContent(13,1702.857); h_SL2L164->SetBinContent(14,1894.286); h_SL2L164->SetBinContent(15,2047.143); h_SL2L164->SetBinContent(16,2065.714); h_SL2L164->SetBinContent(17,2295.714); h_SL2L164->SetBinContent(18,2411.429); h_SL2L164->SetBinContent(19,2784.286); h_SL2L164->SetBinContent(20,2920); h_SL2L164->SetBinContent(21,3127.143); h_SL2L164->SetBinContent(22,3125.714); h_SL2L164->SetBinContent(23,3560); h_SL2L164->SetBinContent(24,4234.286); h_SL2L164->SetBinContent(25,8900); h_SL2L164->SetBinContent(26,28885.71); h_SL2L164->SetBinContent(27,43997.14); h_SL2L164->SetBinContent(28,52161.43); h_SL2L164->SetBinContent(29,55012.86); h_SL2L164->SetBinContent(30,52510); h_SL2L164->SetBinContent(31,48427.14); h_SL2L164->SetBinContent(32,48645.71); h_SL2L164->SetBinContent(33,47257.14); h_SL2L164->SetBinContent(34,27214.29); h_SL2L164->SetBinContent(35,4.285714); h_SL2L164->SetBinContent(36,4427.143); h_SL2L164->SetBinContent(37,6861.429); h_SL2L164->SetBinContent(38,4581.429); h_SL2L164->SetBinContent(39,5177.143); h_SL2L164->SetBinContent(40,28077.14); h_SL2L164->SetBinContent(41,6908.572); h_SL2L164->SetBinContent(42,7655.714); h_SL2L164->SetBinContent(43,7670); h_SL2L164->SetBinContent(44,7825.714); h_SL2L164->SetBinContent(45,1357.143); h_SL2L164->SetBinContent(46,1307.143); h_SL2L164->SetBinContent(47,1210); h_SL2L164->SetBinContent(48,1058.571); h_SL2L164->SetBinContent(49,952.8572); h_SL2L164->SetBinContent(50,798.5715); h_SL2L164->SetBinContent(51,838.5715); h_SL2L164->SetBinContent(52,767.1429); h_SL2L164->SetBinContent(53,791.4286); h_SL2L164->SetBinContent(54,614.2857); h_SL2L164->SetBinContent(55,614.2857); h_SL2L164->SetBinContent(56,551.4286); h_SL2L164->SetBinContent(57,2504.286); h_SL2L164->SetMaximum(72753.6); 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,524.2857); h_SL2L265->SetBinContent(2,667.1429); h_SL2L265->SetBinContent(3,800); h_SL2L265->SetBinContent(4,850); h_SL2L265->SetBinContent(5,952.8572); h_SL2L265->SetBinContent(6,962.8572); h_SL2L265->SetBinContent(7,992.8572); h_SL2L265->SetBinContent(8,1047.143); h_SL2L265->SetBinContent(9,1171.429); h_SL2L265->SetBinContent(10,1234.286); h_SL2L265->SetBinContent(11,1424.286); h_SL2L265->SetBinContent(12,1500); h_SL2L265->SetBinContent(13,1577.143); h_SL2L265->SetBinContent(14,1727.143); h_SL2L265->SetBinContent(15,1928.572); h_SL2L265->SetBinContent(16,1977.143); h_SL2L265->SetBinContent(17,2194.286); h_SL2L265->SetBinContent(18,2282.857); h_SL2L265->SetBinContent(19,2544.286); h_SL2L265->SetBinContent(20,2830); h_SL2L265->SetBinContent(21,2935.714); h_SL2L265->SetBinContent(22,3152.857); h_SL2L265->SetBinContent(23,3334.286); h_SL2L265->SetBinContent(24,3892.857); h_SL2L265->SetBinContent(25,4592.857); h_SL2L265->SetBinContent(26,18232.86); h_SL2L265->SetBinContent(27,37300); h_SL2L265->SetBinContent(28,48892.86); h_SL2L265->SetBinContent(29,53870); h_SL2L265->SetBinContent(30,54000); h_SL2L265->SetBinContent(31,49847.14); h_SL2L265->SetBinContent(32,48098.57); h_SL2L265->SetBinContent(33,48314.29); h_SL2L265->SetBinContent(34,41020); h_SL2L265->SetBinContent(35,14458.57); h_SL2L265->SetBinContent(36,5387.143); h_SL2L265->SetBinContent(37,3647.143); h_SL2L265->SetBinContent(38,2930); h_SL2L265->SetBinContent(39,3447.143); h_SL2L265->SetBinContent(40,4190); h_SL2L265->SetBinContent(41,2568.572); h_SL2L265->SetBinContent(42,2482.857); h_SL2L265->SetBinContent(43,2148.572); h_SL2L265->SetBinContent(44,2644.286); h_SL2L265->SetBinContent(45,1404.286); h_SL2L265->SetBinContent(46,1327.143); h_SL2L265->SetBinContent(47,1235.714); h_SL2L265->SetBinContent(48,1045.714); h_SL2L265->SetBinContent(49,1014.286); h_SL2L265->SetBinContent(50,877.1429); h_SL2L265->SetBinContent(51,775.7143); h_SL2L265->SetBinContent(52,768.5715); h_SL2L265->SetBinContent(53,804.2857); h_SL2L265->SetBinContent(54,672.8572); h_SL2L265->SetBinContent(55,618.5715); h_SL2L265->SetBinContent(56,540); h_SL2L265->SetBinContent(57,522.8572); h_SL2L265->SetMaximum(63264.79); 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,622.8572); h_SL2L366->SetBinContent(2,688.5715); h_SL2L366->SetBinContent(3,804.2857); h_SL2L366->SetBinContent(4,898.5715); h_SL2L366->SetBinContent(5,937.1429); h_SL2L366->SetBinContent(6,967.1429); h_SL2L366->SetBinContent(7,1001.429); h_SL2L366->SetBinContent(8,1078.571); h_SL2L366->SetBinContent(9,1154.286); h_SL2L366->SetBinContent(10,1262.857); h_SL2L366->SetBinContent(11,1415.714); h_SL2L366->SetBinContent(12,1457.143); h_SL2L366->SetBinContent(13,1644.286); h_SL2L366->SetBinContent(14,1792.857); h_SL2L366->SetBinContent(15,1945.714); h_SL2L366->SetBinContent(16,2000); h_SL2L366->SetBinContent(17,2208.572); h_SL2L366->SetBinContent(18,2314.286); h_SL2L366->SetBinContent(19,2648.572); h_SL2L366->SetBinContent(20,2808.572); h_SL2L366->SetBinContent(21,3010); h_SL2L366->SetBinContent(22,3117.143); h_SL2L366->SetBinContent(23,3524.286); h_SL2L366->SetBinContent(24,4102.857); h_SL2L366->SetBinContent(25,8752.857); h_SL2L366->SetBinContent(26,28882.86); h_SL2L366->SetBinContent(27,43831.43); h_SL2L366->SetBinContent(28,51967.14); h_SL2L366->SetBinContent(29,54527.14); h_SL2L366->SetBinContent(30,52378.57); h_SL2L366->SetBinContent(31,48304.29); h_SL2L366->SetBinContent(32,48642.86); h_SL2L366->SetBinContent(33,47288.57); h_SL2L366->SetBinContent(34,27278.57); h_SL2L366->SetBinContent(35,7842.857); h_SL2L366->SetBinContent(36,4232.857); h_SL2L366->SetBinContent(37,3168.572); h_SL2L366->SetBinContent(38,2748.572); h_SL2L366->SetBinContent(39,2302.857); h_SL2L366->SetBinContent(40,3134.286); h_SL2L366->SetBinContent(41,1738.571); h_SL2L366->SetBinContent(42,1720); h_SL2L366->SetBinContent(43,1592.857); h_SL2L366->SetBinContent(44,1424.286); h_SL2L366->SetBinContent(45,1294.286); h_SL2L366->SetBinContent(46,1295.714); h_SL2L366->SetBinContent(47,1125.714); h_SL2L366->SetBinContent(48,995.7143); h_SL2L366->SetBinContent(49,955.7143); h_SL2L366->SetBinContent(50,744.2857); h_SL2L366->SetBinContent(51,757.1429); h_SL2L366->SetBinContent(52,760); h_SL2L366->SetBinContent(53,731.4286); h_SL2L366->SetBinContent(54,595.7143); h_SL2L366->SetBinContent(55,594.2857); h_SL2L366->SetBinContent(56,551.4286); h_SL2L366->SetBinContent(57,487.1429); h_SL2L366->SetMaximum(63264.79); 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,638.5715); h_SL2L467->SetBinContent(3,761.4286); h_SL2L467->SetBinContent(4,852.8572); h_SL2L467->SetBinContent(5,892.8572); h_SL2L467->SetBinContent(6,887.1429); h_SL2L467->SetBinContent(7,922.8572); h_SL2L467->SetBinContent(8,1030); h_SL2L467->SetBinContent(9,1102.857); h_SL2L467->SetBinContent(10,1118.571); h_SL2L467->SetBinContent(11,1338.571); h_SL2L467->SetBinContent(12,1412.857); h_SL2L467->SetBinContent(13,1471.429); h_SL2L467->SetBinContent(14,1650); h_SL2L467->SetBinContent(15,1825.714); h_SL2L467->SetBinContent(16,1875.714); h_SL2L467->SetBinContent(17,2088.572); h_SL2L467->SetBinContent(18,2232.857); h_SL2L467->SetBinContent(19,2387.143); h_SL2L467->SetBinContent(20,2640); h_SL2L467->SetBinContent(21,2838.572); h_SL2L467->SetBinContent(22,3048.572); h_SL2L467->SetBinContent(23,3238.572); h_SL2L467->SetBinContent(24,3712.857); h_SL2L467->SetBinContent(25,4458.572); h_SL2L467->SetBinContent(26,18277.14); h_SL2L467->SetBinContent(27,37552.86); h_SL2L467->SetBinContent(28,48695.71); h_SL2L467->SetBinContent(29,53932.86); h_SL2L467->SetBinContent(30,54551.43); h_SL2L467->SetBinContent(31,49921.43); h_SL2L467->SetBinContent(32,48144.29); h_SL2L467->SetBinContent(33,48460); h_SL2L467->SetBinContent(34,41130); h_SL2L467->SetBinContent(35,14355.71); h_SL2L467->SetBinContent(36,5342.857); h_SL2L467->SetBinContent(37,3518.572); h_SL2L467->SetBinContent(38,2840); h_SL2L467->SetBinContent(39,2471.429); h_SL2L467->SetBinContent(40,2130); h_SL2L467->SetBinContent(41,1950); h_SL2L467->SetBinContent(42,1625.714); h_SL2L467->SetBinContent(43,1584.286); h_SL2L467->SetBinContent(44,1442.857); h_SL2L467->SetBinContent(45,1322.857); h_SL2L467->SetBinContent(46,1291.429); h_SL2L467->SetBinContent(47,1161.429); h_SL2L467->SetBinContent(48,1035.714); h_SL2L467->SetBinContent(49,921.4286); h_SL2L467->SetBinContent(50,885.7143); h_SL2L467->SetBinContent(51,708.5715); h_SL2L467->SetBinContent(52,735.7143); h_SL2L467->SetBinContent(53,788.5715); h_SL2L467->SetBinContent(54,645.7143); h_SL2L467->SetBinContent(55,591.4286); h_SL2L467->SetBinContent(56,525.7143); h_SL2L467->SetBinContent(57,502.8571); h_SL2L467->SetMaximum(63264.79); 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 5014"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }