void RatesPerCell_Removing_noisy_cells_run_6513_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:13:52 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12185.11,67.5,109666); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6513",60,0,60); h_SL2L164->SetBinContent(1,601.4286); h_SL2L164->SetBinContent(2,717.1429); h_SL2L164->SetBinContent(3,834.2857); h_SL2L164->SetBinContent(4,872.8572); h_SL2L164->SetBinContent(5,1020); h_SL2L164->SetBinContent(6,1000); h_SL2L164->SetBinContent(7,1061.429); h_SL2L164->SetBinContent(8,1200); h_SL2L164->SetBinContent(9,1251.429); h_SL2L164->SetBinContent(10,1451.429); h_SL2L164->SetBinContent(11,1550); h_SL2L164->SetBinContent(12,1705.714); h_SL2L164->SetBinContent(13,1780); h_SL2L164->SetBinContent(14,1822.857); h_SL2L164->SetBinContent(15,1854.286); h_SL2L164->SetBinContent(16,1987.143); h_SL2L164->SetBinContent(17,2105.714); h_SL2L164->SetBinContent(18,2380); h_SL2L164->SetBinContent(19,2627.143); h_SL2L164->SetBinContent(20,2588.572); h_SL2L164->SetBinContent(21,2598.572); h_SL2L164->SetBinContent(22,2950); h_SL2L164->SetBinContent(23,3274.286); h_SL2L164->SetBinContent(24,3801.429); h_SL2L164->SetBinContent(25,8005.714); h_SL2L164->SetBinContent(26,25710); h_SL2L164->SetBinContent(27,44995.71); h_SL2L164->SetBinContent(28,59428.57); h_SL2L164->SetBinContent(29,62502.86); h_SL2L164->SetBinContent(30,54615.71); h_SL2L164->SetBinContent(31,43144.29); h_SL2L164->SetBinContent(32,39251.43); h_SL2L164->SetBinContent(33,39614.29); h_SL2L164->SetBinContent(34,25505.71); h_SL2L164->SetBinContent(36,3844.286); h_SL2L164->SetBinContent(37,6612.857); h_SL2L164->SetBinContent(38,3792.857); h_SL2L164->SetBinContent(39,5951.429); h_SL2L164->SetBinContent(40,23327.14); h_SL2L164->SetBinContent(41,73710); h_SL2L164->SetBinContent(42,10754.29); h_SL2L164->SetBinContent(43,11491.43); h_SL2L164->SetBinContent(44,10895.71); h_SL2L164->SetBinContent(45,1247.143); h_SL2L164->SetBinContent(46,1255.714); h_SL2L164->SetBinContent(47,1212.857); h_SL2L164->SetBinContent(48,1054.286); h_SL2L164->SetBinContent(49,991.4286); h_SL2L164->SetBinContent(50,847.1429); h_SL2L164->SetBinContent(51,805.7143); h_SL2L164->SetBinContent(52,747.1429); h_SL2L164->SetBinContent(53,731.4286); h_SL2L164->SetBinContent(54,702.8572); h_SL2L164->SetBinContent(55,600); h_SL2L164->SetBinContent(56,550); h_SL2L164->SetBinContent(57,501.4286); h_SL2L164->SetMaximum(97480.9); 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,527.1429); h_SL2L265->SetBinContent(2,717.1429); h_SL2L265->SetBinContent(3,782.8572); h_SL2L265->SetBinContent(4,841.4286); h_SL2L265->SetBinContent(5,912.8572); h_SL2L265->SetBinContent(6,1045.714); h_SL2L265->SetBinContent(7,1021.429); h_SL2L265->SetBinContent(8,1062.857); h_SL2L265->SetBinContent(9,1274.286); h_SL2L265->SetBinContent(10,1281.429); h_SL2L265->SetBinContent(11,1464.286); h_SL2L265->SetBinContent(12,1584.286); h_SL2L265->SetBinContent(13,1672.857); h_SL2L265->SetBinContent(14,1790); h_SL2L265->SetBinContent(15,1838.572); h_SL2L265->SetBinContent(16,1900); h_SL2L265->SetBinContent(17,2050); h_SL2L265->SetBinContent(18,2171.429); h_SL2L265->SetBinContent(19,2465.714); h_SL2L265->SetBinContent(20,2645.714); h_SL2L265->SetBinContent(21,2644.286); h_SL2L265->SetBinContent(22,2730); h_SL2L265->SetBinContent(23,3030); h_SL2L265->SetBinContent(24,3507.143); h_SL2L265->SetBinContent(25,4285.714); h_SL2L265->SetBinContent(26,16142.86); h_SL2L265->SetBinContent(27,35442.86); h_SL2L265->SetBinContent(28,53148.57); h_SL2L265->SetBinContent(29,62218.57); h_SL2L265->SetBinContent(30,59484.29); h_SL2L265->SetBinContent(31,48504.29); h_SL2L265->SetBinContent(32,39980); h_SL2L265->SetBinContent(33,39895.71); h_SL2L265->SetBinContent(34,35530); h_SL2L265->SetBinContent(35,14067.14); h_SL2L265->SetBinContent(36,4884.286); h_SL2L265->SetBinContent(37,3298.572); h_SL2L265->SetBinContent(38,2854.286); h_SL2L265->SetBinContent(39,3431.429); h_SL2L265->SetBinContent(40,5531.429); h_SL2L265->SetBinContent(41,2815.714); h_SL2L265->SetBinContent(42,2457.143); h_SL2L265->SetBinContent(43,1731.429); h_SL2L265->SetBinContent(44,2064.286); h_SL2L265->SetBinContent(45,1254.286); h_SL2L265->SetBinContent(46,1265.714); h_SL2L265->SetBinContent(47,1150); h_SL2L265->SetBinContent(48,1087.143); h_SL2L265->SetBinContent(49,1034.286); h_SL2L265->SetBinContent(50,905.7143); h_SL2L265->SetBinContent(51,780); h_SL2L265->SetBinContent(52,744.2857); h_SL2L265->SetBinContent(53,725.7143); h_SL2L265->SetBinContent(54,688.5715); h_SL2L265->SetBinContent(55,655.7143); h_SL2L265->SetBinContent(56,532.8572); h_SL2L265->SetBinContent(57,504.2857); h_SL2L265->SetMaximum(84766.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,634.2857); h_SL2L366->SetBinContent(2,692.8572); h_SL2L366->SetBinContent(3,842.8572); h_SL2L366->SetBinContent(4,815.7143); h_SL2L366->SetBinContent(5,971.4286); h_SL2L366->SetBinContent(6,995.7143); h_SL2L366->SetBinContent(7,1037.143); h_SL2L366->SetBinContent(8,1174.286); h_SL2L366->SetBinContent(9,1194.286); h_SL2L366->SetBinContent(10,1397.143); h_SL2L366->SetBinContent(11,1528.571); h_SL2L366->SetBinContent(12,1620); h_SL2L366->SetBinContent(13,1697.143); h_SL2L366->SetBinContent(14,1787.143); h_SL2L366->SetBinContent(15,1812.857); h_SL2L366->SetBinContent(16,1960); h_SL2L366->SetBinContent(17,2072.857); h_SL2L366->SetBinContent(18,2307.143); h_SL2L366->SetBinContent(19,2514.286); h_SL2L366->SetBinContent(20,2508.572); h_SL2L366->SetBinContent(21,2562.857); h_SL2L366->SetBinContent(22,2878.572); h_SL2L366->SetBinContent(23,3178.572); h_SL2L366->SetBinContent(24,3728.572); h_SL2L366->SetBinContent(25,7872.857); h_SL2L366->SetBinContent(26,25704.29); h_SL2L366->SetBinContent(27,44907.14); h_SL2L366->SetBinContent(28,59387.14); h_SL2L366->SetBinContent(29,62341.43); h_SL2L366->SetBinContent(30,54425.71); h_SL2L366->SetBinContent(31,43141.43); h_SL2L366->SetBinContent(32,39295.71); h_SL2L366->SetBinContent(33,39675.71); h_SL2L366->SetBinContent(34,25358.57); h_SL2L366->SetBinContent(35,7188.572); h_SL2L366->SetBinContent(36,3875.714); h_SL2L366->SetBinContent(37,3042.857); h_SL2L366->SetBinContent(38,2601.429); h_SL2L366->SetBinContent(39,2097.143); h_SL2L366->SetBinContent(40,4180); h_SL2L366->SetBinContent(41,2114.286); h_SL2L366->SetBinContent(42,1674.286); h_SL2L366->SetBinContent(43,1492.857); h_SL2L366->SetBinContent(44,1391.429); h_SL2L366->SetBinContent(45,1171.429); h_SL2L366->SetBinContent(46,1182.857); h_SL2L366->SetBinContent(47,1098.571); h_SL2L366->SetBinContent(48,984.2858); h_SL2L366->SetBinContent(49,1001.429); h_SL2L366->SetBinContent(50,868.5715); h_SL2L366->SetBinContent(51,771.4286); h_SL2L366->SetBinContent(52,718.5715); h_SL2L366->SetBinContent(53,700); h_SL2L366->SetBinContent(54,681.4286); h_SL2L366->SetBinContent(55,597.1429); h_SL2L366->SetBinContent(56,535.7143); h_SL2L366->SetBinContent(57,505.7143); h_SL2L366->SetMaximum(84766.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,708.5715); h_SL2L467->SetBinContent(3,775.7143); h_SL2L467->SetBinContent(4,828.5715); h_SL2L467->SetBinContent(5,908.5715); h_SL2L467->SetBinContent(6,1012.857); h_SL2L467->SetBinContent(7,992.8572); h_SL2L467->SetBinContent(8,1050); h_SL2L467->SetBinContent(9,1210); h_SL2L467->SetBinContent(10,1242.857); h_SL2L467->SetBinContent(11,1410); h_SL2L467->SetBinContent(12,1640); h_SL2L467->SetBinContent(13,1624.286); h_SL2L467->SetBinContent(14,1741.429); h_SL2L467->SetBinContent(15,1774.286); h_SL2L467->SetBinContent(16,1841.429); h_SL2L467->SetBinContent(17,1977.143); h_SL2L467->SetBinContent(18,2127.143); h_SL2L467->SetBinContent(19,2395.714); h_SL2L467->SetBinContent(20,2484.286); h_SL2L467->SetBinContent(21,2577.143); h_SL2L467->SetBinContent(22,2678.572); h_SL2L467->SetBinContent(23,2850); h_SL2L467->SetBinContent(24,3298.572); h_SL2L467->SetBinContent(25,4328.571); h_SL2L467->SetBinContent(26,15791.43); h_SL2L467->SetBinContent(27,35494.29); h_SL2L467->SetBinContent(28,53075.71); h_SL2L467->SetBinContent(29,61957.14); h_SL2L467->SetBinContent(30,59920); h_SL2L467->SetBinContent(31,48341.43); h_SL2L467->SetBinContent(32,40011.43); h_SL2L467->SetBinContent(33,39940); h_SL2L467->SetBinContent(34,35492.86); h_SL2L467->SetBinContent(35,13837.14); h_SL2L467->SetBinContent(36,4698.572); h_SL2L467->SetBinContent(37,3222.857); h_SL2L467->SetBinContent(38,2781.429); h_SL2L467->SetBinContent(39,2291.429); h_SL2L467->SetBinContent(40,1938.572); h_SL2L467->SetBinContent(41,1797.143); h_SL2L467->SetBinContent(42,2038.572); h_SL2L467->SetBinContent(43,1594.286); h_SL2L467->SetBinContent(44,1425.714); h_SL2L467->SetBinContent(45,1225.714); h_SL2L467->SetBinContent(46,1182.857); h_SL2L467->SetBinContent(47,1041.429); h_SL2L467->SetBinContent(48,1061.429); h_SL2L467->SetBinContent(49,1002.857); h_SL2L467->SetBinContent(50,904.2857); h_SL2L467->SetBinContent(51,770); h_SL2L467->SetBinContent(52,682.8572); h_SL2L467->SetBinContent(53,715.7143); h_SL2L467->SetBinContent(54,614.2857); h_SL2L467->SetBinContent(55,640); h_SL2L467->SetBinContent(56,575.7143); h_SL2L467->SetBinContent(57,517.1429); h_SL2L467->SetMaximum(84766.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 6513"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }