void RatesPerCell_Removing_noisy_cells_run_6592_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 20:04:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-14231.68,67.5,128085.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6592",60,0,60); h_SL2L164->SetBinContent(1,670); h_SL2L164->SetBinContent(2,828.5715); h_SL2L164->SetBinContent(3,867.1429); h_SL2L164->SetBinContent(4,938.5715); h_SL2L164->SetBinContent(5,951.4286); h_SL2L164->SetBinContent(6,1025.714); h_SL2L164->SetBinContent(7,1101.429); h_SL2L164->SetBinContent(8,1147.143); h_SL2L164->SetBinContent(9,1184.286); h_SL2L164->SetBinContent(10,1235.714); h_SL2L164->SetBinContent(11,1481.429); h_SL2L164->SetBinContent(12,1524.286); h_SL2L164->SetBinContent(13,1602.857); h_SL2L164->SetBinContent(14,1774.286); h_SL2L164->SetBinContent(15,1790); h_SL2L164->SetBinContent(16,1920); h_SL2L164->SetBinContent(17,1897.143); h_SL2L164->SetBinContent(18,2014.286); h_SL2L164->SetBinContent(19,2281.429); h_SL2L164->SetBinContent(20,2400); h_SL2L164->SetBinContent(21,2502.857); h_SL2L164->SetBinContent(22,2677.143); h_SL2L164->SetBinContent(23,2801.429); h_SL2L164->SetBinContent(24,3302.857); h_SL2L164->SetBinContent(25,8308.571); h_SL2L164->SetBinContent(26,25512.86); h_SL2L164->SetBinContent(27,38535.71); h_SL2L164->SetBinContent(28,45827.14); h_SL2L164->SetBinContent(29,49125.71); h_SL2L164->SetBinContent(30,48860); h_SL2L164->SetBinContent(31,47077.14); h_SL2L164->SetBinContent(32,47698.57); h_SL2L164->SetBinContent(33,46890); h_SL2L164->SetBinContent(34,26594.29); h_SL2L164->SetBinContent(36,3545.714); h_SL2L164->SetBinContent(37,8432.857); h_SL2L164->SetBinContent(38,4998.572); h_SL2L164->SetBinContent(39,6621.429); h_SL2L164->SetBinContent(40,62668.57); h_SL2L164->SetBinContent(41,86090); h_SL2L164->SetBinContent(42,13285.71); h_SL2L164->SetBinContent(43,13508.57); h_SL2L164->SetBinContent(44,13852.86); h_SL2L164->SetBinContent(45,1257.143); h_SL2L164->SetBinContent(46,1182.857); h_SL2L164->SetBinContent(47,1137.143); h_SL2L164->SetBinContent(48,1070); h_SL2L164->SetBinContent(49,941.4286); h_SL2L164->SetBinContent(50,895.7143); h_SL2L164->SetBinContent(51,887.1429); h_SL2L164->SetBinContent(52,768.5715); h_SL2L164->SetBinContent(53,797.1429); h_SL2L164->SetBinContent(54,665.7143); h_SL2L164->SetBinContent(55,661.4286); h_SL2L164->SetBinContent(56,581.4286); h_SL2L164->SetBinContent(57,6310); h_SL2L164->SetMaximum(113853.4); 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,652.8572); h_SL2L265->SetBinContent(2,730); h_SL2L265->SetBinContent(3,777.1429); h_SL2L265->SetBinContent(4,952.8572); h_SL2L265->SetBinContent(5,928.5715); h_SL2L265->SetBinContent(6,982.8572); h_SL2L265->SetBinContent(7,1041.429); h_SL2L265->SetBinContent(8,1064.286); h_SL2L265->SetBinContent(9,1168.571); h_SL2L265->SetBinContent(10,1178.571); h_SL2L265->SetBinContent(11,1338.571); h_SL2L265->SetBinContent(12,1494.286); h_SL2L265->SetBinContent(13,1625.714); h_SL2L265->SetBinContent(14,1650); h_SL2L265->SetBinContent(15,1732.857); h_SL2L265->SetBinContent(16,1735.714); h_SL2L265->SetBinContent(17,1825.714); h_SL2L265->SetBinContent(18,1940); h_SL2L265->SetBinContent(19,2084.286); h_SL2L265->SetBinContent(20,2364.286); h_SL2L265->SetBinContent(21,2291.429); h_SL2L265->SetBinContent(22,2530); h_SL2L265->SetBinContent(23,2600); h_SL2L265->SetBinContent(24,2980); h_SL2L265->SetBinContent(25,4130); h_SL2L265->SetBinContent(26,16791.43); h_SL2L265->SetBinContent(27,32628.57); h_SL2L265->SetBinContent(28,43044.29); h_SL2L265->SetBinContent(29,47622.86); h_SL2L265->SetBinContent(30,49250); h_SL2L265->SetBinContent(31,47528.57); h_SL2L265->SetBinContent(32,46791.43); h_SL2L265->SetBinContent(33,48792.86); h_SL2L265->SetBinContent(34,39801.43); h_SL2L265->SetBinContent(35,14191.43); h_SL2L265->SetBinContent(36,4581.429); h_SL2L265->SetBinContent(37,3187.143); h_SL2L265->SetBinContent(38,2460); h_SL2L265->SetBinContent(39,3515.714); h_SL2L265->SetBinContent(40,5032.857); h_SL2L265->SetBinContent(41,3410); h_SL2L265->SetBinContent(42,3331.429); h_SL2L265->SetBinContent(43,2262.857); h_SL2L265->SetBinContent(44,3548.572); h_SL2L265->SetBinContent(45,1294.286); h_SL2L265->SetBinContent(46,1218.571); h_SL2L265->SetBinContent(47,1137.143); h_SL2L265->SetBinContent(48,1031.429); h_SL2L265->SetBinContent(49,984.2858); h_SL2L265->SetBinContent(50,931.4286); h_SL2L265->SetBinContent(51,858.5715); h_SL2L265->SetBinContent(52,788.5715); h_SL2L265->SetBinContent(53,782.8572); h_SL2L265->SetBinContent(54,732.8572); h_SL2L265->SetBinContent(55,678.5715); h_SL2L265->SetBinContent(56,614.2857); h_SL2L265->SetBinContent(57,544.2857); h_SL2L265->SetMaximum(99003.5); 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,702.8572); h_SL2L366->SetBinContent(2,781.4286); h_SL2L366->SetBinContent(3,820); h_SL2L366->SetBinContent(4,897.1429); h_SL2L366->SetBinContent(5,911.4286); h_SL2L366->SetBinContent(6,982.8572); h_SL2L366->SetBinContent(7,1061.429); h_SL2L366->SetBinContent(8,1168.571); h_SL2L366->SetBinContent(9,1154.286); h_SL2L366->SetBinContent(10,1215.714); h_SL2L366->SetBinContent(11,1408.571); h_SL2L366->SetBinContent(12,1500); h_SL2L366->SetBinContent(13,1590); h_SL2L366->SetBinContent(14,1701.429); h_SL2L366->SetBinContent(15,1740); h_SL2L366->SetBinContent(16,1758.571); h_SL2L366->SetBinContent(17,1880); h_SL2L366->SetBinContent(18,1912.857); h_SL2L366->SetBinContent(19,2278.572); h_SL2L366->SetBinContent(20,2284.286); h_SL2L366->SetBinContent(21,2390); h_SL2L366->SetBinContent(22,2507.143); h_SL2L366->SetBinContent(23,2708.572); h_SL2L366->SetBinContent(24,3250); h_SL2L366->SetBinContent(25,8275.715); h_SL2L366->SetBinContent(26,25677.14); h_SL2L366->SetBinContent(27,38582.86); h_SL2L366->SetBinContent(28,45805.71); h_SL2L366->SetBinContent(29,48808.57); h_SL2L366->SetBinContent(30,48568.57); h_SL2L366->SetBinContent(31,47177.14); h_SL2L366->SetBinContent(32,47968.57); h_SL2L366->SetBinContent(33,46798.57); h_SL2L366->SetBinContent(34,26647.14); h_SL2L366->SetBinContent(35,7191.429); h_SL2L366->SetBinContent(36,3527.143); h_SL2L366->SetBinContent(37,2688.572); h_SL2L366->SetBinContent(38,2300); h_SL2L366->SetBinContent(39,1972.857); h_SL2L366->SetBinContent(40,3791.429); h_SL2L366->SetBinContent(41,2054.286); h_SL2L366->SetBinContent(42,1680); h_SL2L366->SetBinContent(43,1490); h_SL2L366->SetBinContent(44,1482.857); h_SL2L366->SetBinContent(45,1195.714); h_SL2L366->SetBinContent(46,1152.857); h_SL2L366->SetBinContent(47,1057.143); h_SL2L366->SetBinContent(48,1015.714); h_SL2L366->SetBinContent(49,952.8572); h_SL2L366->SetBinContent(50,864.2857); h_SL2L366->SetBinContent(51,804.2857); h_SL2L366->SetBinContent(52,747.1429); h_SL2L366->SetBinContent(53,807.1429); h_SL2L366->SetBinContent(54,668.5715); h_SL2L366->SetBinContent(55,652.8572); h_SL2L366->SetBinContent(56,584.2857); h_SL2L366->SetBinContent(57,587.1429); h_SL2L366->SetMaximum(99003.5); 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,747.1429); h_SL2L467->SetBinContent(3,778.5715); h_SL2L467->SetBinContent(4,861.4286); h_SL2L467->SetBinContent(5,882.8572); h_SL2L467->SetBinContent(6,922.8572); h_SL2L467->SetBinContent(7,1015.714); h_SL2L467->SetBinContent(8,1037.143); h_SL2L467->SetBinContent(9,1108.571); h_SL2L467->SetBinContent(10,1197.143); h_SL2L467->SetBinContent(11,1328.571); h_SL2L467->SetBinContent(12,1434.286); h_SL2L467->SetBinContent(13,1557.143); h_SL2L467->SetBinContent(14,1641.429); h_SL2L467->SetBinContent(15,1622.857); h_SL2L467->SetBinContent(16,1675.714); h_SL2L467->SetBinContent(17,1814.286); h_SL2L467->SetBinContent(18,1907.143); h_SL2L467->SetBinContent(19,1997.143); h_SL2L467->SetBinContent(20,2312.857); h_SL2L467->SetBinContent(21,2211.429); h_SL2L467->SetBinContent(22,2458.572); h_SL2L467->SetBinContent(23,2521.429); h_SL2L467->SetBinContent(24,2877.143); h_SL2L467->SetBinContent(25,4008.572); h_SL2L467->SetBinContent(26,16721.43); h_SL2L467->SetBinContent(27,32814.29); h_SL2L467->SetBinContent(28,42907.14); h_SL2L467->SetBinContent(29,47534.29); h_SL2L467->SetBinContent(30,49702.86); h_SL2L467->SetBinContent(31,47684.29); h_SL2L467->SetBinContent(32,46972.86); h_SL2L467->SetBinContent(33,48814.29); h_SL2L467->SetBinContent(34,39698.57); h_SL2L467->SetBinContent(35,14211.43); h_SL2L467->SetBinContent(36,4437.143); h_SL2L467->SetBinContent(37,3051.429); h_SL2L467->SetBinContent(38,2370); h_SL2L467->SetBinContent(39,2098.572); h_SL2L467->SetBinContent(40,1924.286); h_SL2L467->SetBinContent(41,1757.143); h_SL2L467->SetBinContent(42,1991.429); h_SL2L467->SetBinContent(43,1465.714); h_SL2L467->SetBinContent(44,1465.714); h_SL2L467->SetBinContent(45,1340); h_SL2L467->SetBinContent(46,1180); h_SL2L467->SetBinContent(47,1061.429); h_SL2L467->SetBinContent(48,1028.571); h_SL2L467->SetBinContent(49,938.5715); h_SL2L467->SetBinContent(50,927.1429); h_SL2L467->SetBinContent(51,791.4286); h_SL2L467->SetBinContent(52,770); h_SL2L467->SetBinContent(53,748.5715); h_SL2L467->SetBinContent(54,758.5715); h_SL2L467->SetBinContent(55,674.2857); h_SL2L467->SetBinContent(56,600); h_SL2L467->SetBinContent(57,551.4286); h_SL2L467->SetMaximum(99003.5); 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 6592"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }