void RatesPerCell_Removing_noisy_cells_run_5373_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:52:02 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9571.019,67.5,86139.17); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5373",60,0,60); h_SL2L164->SetBinContent(1,177.1429); h_SL2L164->SetBinContent(2,190); h_SL2L164->SetBinContent(3,185.7143); h_SL2L164->SetBinContent(4,190); h_SL2L164->SetBinContent(5,200); h_SL2L164->SetBinContent(6,200); h_SL2L164->SetBinContent(7,230); h_SL2L164->SetBinContent(8,237.1429); h_SL2L164->SetBinContent(9,257.1429); h_SL2L164->SetBinContent(10,295.7143); h_SL2L164->SetBinContent(11,298.5714); h_SL2L164->SetBinContent(12,374.2857); h_SL2L164->SetBinContent(13,360); h_SL2L164->SetBinContent(14,348.5714); h_SL2L164->SetBinContent(15,395.7143); h_SL2L164->SetBinContent(16,402.8571); h_SL2L164->SetBinContent(17,417.1429); h_SL2L164->SetBinContent(18,457.1429); h_SL2L164->SetBinContent(19,597.1429); h_SL2L164->SetBinContent(20,557.1429); h_SL2L164->SetBinContent(21,651.4286); h_SL2L164->SetBinContent(22,701.4286); h_SL2L164->SetBinContent(23,750); h_SL2L164->SetBinContent(24,670); h_SL2L164->SetBinContent(25,1215.714); h_SL2L164->SetBinContent(26,4174.286); h_SL2L164->SetBinContent(27,7355.714); h_SL2L164->SetBinContent(28,7205.714); h_SL2L164->SetBinContent(29,9891.429); h_SL2L164->SetBinContent(30,7852.857); h_SL2L164->SetBinContent(31,6705.714); h_SL2L164->SetBinContent(32,5688.572); h_SL2L164->SetBinContent(33,5924.286); h_SL2L164->SetBinContent(34,3450); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,794.2857); h_SL2L164->SetBinContent(37,660); h_SL2L164->SetBinContent(38,502.8571); h_SL2L164->SetBinContent(39,434.2857); h_SL2L164->SetBinContent(40,287.1429); h_SL2L164->SetBinContent(41,350); h_SL2L164->SetBinContent(42,344.2857); h_SL2L164->SetBinContent(43,331.4286); h_SL2L164->SetBinContent(44,332.8571); h_SL2L164->SetBinContent(45,310); h_SL2L164->SetBinContent(46,328.5714); h_SL2L164->SetBinContent(47,235.7143); h_SL2L164->SetBinContent(48,200); h_SL2L164->SetBinContent(49,240); h_SL2L164->SetBinContent(50,218.5714); h_SL2L164->SetBinContent(51,264.2857); h_SL2L164->SetBinContent(52,217.1429); h_SL2L164->SetBinContent(53,245.7143); h_SL2L164->SetBinContent(54,194.2857); h_SL2L164->SetBinContent(55,144.2857); h_SL2L164->SetBinContent(56,101.4286); h_SL2L164->SetBinContent(57,1032.857); h_SL2L164->SetMaximum(76568.15); 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,922.8572); h_SL2L265->SetBinContent(2,1115.714); h_SL2L265->SetBinContent(3,1205.714); h_SL2L265->SetBinContent(4,1377.143); h_SL2L265->SetBinContent(5,1438.571); h_SL2L265->SetBinContent(6,1467.143); h_SL2L265->SetBinContent(7,1511.429); h_SL2L265->SetBinContent(8,1601.429); h_SL2L265->SetBinContent(9,1775.714); h_SL2L265->SetBinContent(10,1851.429); h_SL2L265->SetBinContent(11,2111.429); h_SL2L265->SetBinContent(12,2250); h_SL2L265->SetBinContent(13,2572.857); h_SL2L265->SetBinContent(14,2515.714); h_SL2L265->SetBinContent(15,2964.286); h_SL2L265->SetBinContent(16,3094.286); h_SL2L265->SetBinContent(17,3181.429); h_SL2L265->SetBinContent(18,3510); h_SL2L265->SetBinContent(19,3707.143); h_SL2L265->SetBinContent(20,4122.857); h_SL2L265->SetBinContent(21,4234.286); h_SL2L265->SetBinContent(22,4702.857); h_SL2L265->SetBinContent(23,4880); h_SL2L265->SetBinContent(24,5220); h_SL2L265->SetBinContent(25,6054.286); h_SL2L265->SetBinContent(26,19521.43); h_SL2L265->SetBinContent(27,38991.43); h_SL2L265->SetBinContent(28,51910); h_SL2L265->SetBinContent(29,57514.29); h_SL2L265->SetBinContent(30,56801.43); h_SL2L265->SetBinContent(31,49835.71); h_SL2L265->SetBinContent(32,46021.43); h_SL2L265->SetBinContent(33,45971.43); h_SL2L265->SetBinContent(34,38331.43); h_SL2L265->SetBinContent(35,14350); h_SL2L265->SetBinContent(36,6272.857); h_SL2L265->SetBinContent(37,4777.143); h_SL2L265->SetBinContent(38,4008.572); h_SL2L265->SetBinContent(39,3365.714); h_SL2L265->SetBinContent(40,3028.572); h_SL2L265->SetBinContent(41,2898.572); h_SL2L265->SetBinContent(42,2658.572); h_SL2L265->SetBinContent(43,2508.572); h_SL2L265->SetBinContent(44,2208.572); h_SL2L265->SetBinContent(45,2027.143); h_SL2L265->SetBinContent(46,2012.857); h_SL2L265->SetBinContent(47,1815.714); h_SL2L265->SetBinContent(48,1665.714); h_SL2L265->SetBinContent(49,1595.714); h_SL2L265->SetBinContent(50,1475.714); h_SL2L265->SetBinContent(51,1392.857); h_SL2L265->SetBinContent(52,1345.714); h_SL2L265->SetBinContent(53,1352.857); h_SL2L265->SetBinContent(54,1311.429); h_SL2L265->SetBinContent(55,1195.714); h_SL2L265->SetBinContent(56,1132.857); h_SL2L265->SetBinContent(57,1162.857); h_SL2L265->SetMaximum(66581.72); 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,984.2858); h_SL2L366->SetBinContent(2,1102.857); h_SL2L366->SetBinContent(3,1341.429); h_SL2L366->SetBinContent(4,1338.571); h_SL2L366->SetBinContent(5,1507.143); h_SL2L366->SetBinContent(6,1470); h_SL2L366->SetBinContent(7,1550); h_SL2L366->SetBinContent(8,1637.143); h_SL2L366->SetBinContent(9,1837.143); h_SL2L366->SetBinContent(10,1935.714); h_SL2L366->SetBinContent(11,2128.572); h_SL2L366->SetBinContent(12,2332.857); h_SL2L366->SetBinContent(13,2522.857); h_SL2L366->SetBinContent(14,2717.143); h_SL2L366->SetBinContent(15,3011.429); h_SL2L366->SetBinContent(16,3088.572); h_SL2L366->SetBinContent(17,3231.429); h_SL2L366->SetBinContent(18,3591.429); h_SL2L366->SetBinContent(19,3894.286); h_SL2L366->SetBinContent(20,3964.286); h_SL2L366->SetBinContent(21,4444.286); h_SL2L366->SetBinContent(22,4688.572); h_SL2L366->SetBinContent(23,4905.714); h_SL2L366->SetBinContent(24,5424.286); h_SL2L366->SetBinContent(25,9968.571); h_SL2L366->SetBinContent(26,30445.71); h_SL2L366->SetBinContent(27,46334.29); h_SL2L366->SetBinContent(28,55632.86); h_SL2L366->SetBinContent(29,57897.14); h_SL2L366->SetBinContent(30,53638.57); h_SL2L366->SetBinContent(31,47182.86); h_SL2L366->SetBinContent(32,46190); h_SL2L366->SetBinContent(33,44538.57); h_SL2L366->SetBinContent(34,25892.86); h_SL2L366->SetBinContent(35,8358.571); h_SL2L366->SetBinContent(36,5365.714); h_SL2L366->SetBinContent(37,4330); h_SL2L366->SetBinContent(38,3695.714); h_SL2L366->SetBinContent(39,3072.857); h_SL2L366->SetBinContent(40,2861.429); h_SL2L366->SetBinContent(41,2771.429); h_SL2L366->SetBinContent(42,2540); h_SL2L366->SetBinContent(43,2365.714); h_SL2L366->SetBinContent(44,2121.429); h_SL2L366->SetBinContent(45,1954.286); h_SL2L366->SetBinContent(46,1825.714); h_SL2L366->SetBinContent(47,1817.143); h_SL2L366->SetBinContent(48,1580); h_SL2L366->SetBinContent(49,1561.429); h_SL2L366->SetBinContent(50,1431.429); h_SL2L366->SetBinContent(51,1360); h_SL2L366->SetBinContent(52,1302.857); h_SL2L366->SetBinContent(53,1380); h_SL2L366->SetBinContent(54,1241.429); h_SL2L366->SetBinContent(55,1198.571); h_SL2L366->SetBinContent(56,1147.143); h_SL2L366->SetBinContent(57,147.1429); h_SL2L366->SetMaximum(66581.72); 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,1080); h_SL2L467->SetBinContent(3,1251.429); h_SL2L467->SetBinContent(4,1282.857); h_SL2L467->SetBinContent(5,1404.286); h_SL2L467->SetBinContent(6,1395.714); h_SL2L467->SetBinContent(7,1501.429); h_SL2L467->SetBinContent(8,1637.143); h_SL2L467->SetBinContent(9,1735.714); h_SL2L467->SetBinContent(10,1828.572); h_SL2L467->SetBinContent(11,2070); h_SL2L467->SetBinContent(12,2195.714); h_SL2L467->SetBinContent(13,2470); h_SL2L467->SetBinContent(14,2410); h_SL2L467->SetBinContent(15,2877.143); h_SL2L467->SetBinContent(16,2972.857); h_SL2L467->SetBinContent(17,3020); h_SL2L467->SetBinContent(18,3424.286); h_SL2L467->SetBinContent(19,3694.286); h_SL2L467->SetBinContent(20,3972.857); h_SL2L467->SetBinContent(21,4180); h_SL2L467->SetBinContent(22,4550); h_SL2L467->SetBinContent(23,4804.286); h_SL2L467->SetBinContent(24,5021.429); h_SL2L467->SetBinContent(25,5845.714); h_SL2L467->SetBinContent(26,19544.29); h_SL2L467->SetBinContent(27,39194.29); h_SL2L467->SetBinContent(28,51934.29); h_SL2L467->SetBinContent(29,57540); h_SL2L467->SetBinContent(30,57317.14); h_SL2L467->SetBinContent(31,49910); h_SL2L467->SetBinContent(32,46194.29); h_SL2L467->SetBinContent(33,46112.86); h_SL2L467->SetBinContent(34,38397.14); h_SL2L467->SetBinContent(35,14350); h_SL2L467->SetBinContent(36,6241.429); h_SL2L467->SetBinContent(37,4697.143); h_SL2L467->SetBinContent(38,3941.429); h_SL2L467->SetBinContent(39,3391.429); h_SL2L467->SetBinContent(40,2945.714); h_SL2L467->SetBinContent(41,2761.429); h_SL2L467->SetBinContent(42,2564.286); h_SL2L467->SetBinContent(43,2444.286); h_SL2L467->SetBinContent(44,2144.286); h_SL2L467->SetBinContent(45,1994.286); h_SL2L467->SetBinContent(46,1932.857); h_SL2L467->SetBinContent(47,1735.714); h_SL2L467->SetBinContent(48,1627.143); h_SL2L467->SetBinContent(49,1572.857); h_SL2L467->SetBinContent(50,1470); h_SL2L467->SetBinContent(51,1361.429); h_SL2L467->SetBinContent(52,1321.429); h_SL2L467->SetBinContent(53,1367.143); h_SL2L467->SetBinContent(54,1262.857); h_SL2L467->SetBinContent(55,1167.143); h_SL2L467->SetBinContent(56,1105.714); h_SL2L467->SetBinContent(57,1171.429); h_SL2L467->SetMaximum(66581.72); 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 5373"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }