void RatesPerCell_Removing_noisy_cells_run_6495_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:42:50 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10463.28,67.5,94169.48); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6495",60,0,60); h_SL2L164->SetBinContent(1,598.5715); h_SL2L164->SetBinContent(2,669.2857); h_SL2L164->SetBinContent(3,832.1429); h_SL2L164->SetBinContent(4,870.7143); h_SL2L164->SetBinContent(5,900); h_SL2L164->SetBinContent(6,937.1429); h_SL2L164->SetBinContent(7,1081.429); h_SL2L164->SetBinContent(8,1111.429); h_SL2L164->SetBinContent(9,1222.857); h_SL2L164->SetBinContent(10,1354.286); h_SL2L164->SetBinContent(11,1447.857); h_SL2L164->SetBinContent(12,1600); h_SL2L164->SetBinContent(13,1652.857); h_SL2L164->SetBinContent(14,1780); h_SL2L164->SetBinContent(15,1819.286); h_SL2L164->SetBinContent(16,1918.572); h_SL2L164->SetBinContent(17,2062.143); h_SL2L164->SetBinContent(18,2284.286); h_SL2L164->SetBinContent(19,2417.143); h_SL2L164->SetBinContent(20,2558.572); h_SL2L164->SetBinContent(21,2705); h_SL2L164->SetBinContent(22,2867.143); h_SL2L164->SetBinContent(23,3063.572); h_SL2L164->SetBinContent(24,3698.572); h_SL2L164->SetBinContent(25,7915.714); h_SL2L164->SetBinContent(26,26177.86); h_SL2L164->SetBinContent(27,46068.57); h_SL2L164->SetBinContent(28,59511.43); h_SL2L164->SetBinContent(29,63294.29); h_SL2L164->SetBinContent(30,54262.14); h_SL2L164->SetBinContent(31,42602.14); h_SL2L164->SetBinContent(32,38466.43); h_SL2L164->SetBinContent(33,38776.43); h_SL2L164->SetBinContent(34,24630.71); h_SL2L164->SetBinContent(35,3.571429); h_SL2L164->SetBinContent(36,3644.286); h_SL2L164->SetBinContent(37,6482.857); h_SL2L164->SetBinContent(38,3789.286); h_SL2L164->SetBinContent(39,5377.143); h_SL2L164->SetBinContent(40,25297.14); h_SL2L164->SetBinContent(41,48983.57); h_SL2L164->SetBinContent(42,10658.57); h_SL2L164->SetBinContent(43,11347.14); h_SL2L164->SetBinContent(44,10947.14); h_SL2L164->SetBinContent(45,1202.857); h_SL2L164->SetBinContent(46,1173.571); h_SL2L164->SetBinContent(47,1007.857); h_SL2L164->SetBinContent(48,982.1429); h_SL2L164->SetBinContent(49,917.8572); h_SL2L164->SetBinContent(50,824.2857); h_SL2L164->SetBinContent(51,757.1429); h_SL2L164->SetBinContent(52,735.7143); h_SL2L164->SetBinContent(53,669.2857); h_SL2L164->SetBinContent(54,622.1429); h_SL2L164->SetBinContent(55,545); h_SL2L164->SetBinContent(56,506.4286); h_SL2L164->SetBinContent(57,476.4286); h_SL2L164->SetMaximum(83706.2); 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,587.1429); h_SL2L265->SetBinContent(2,663.5715); h_SL2L265->SetBinContent(3,732.8572); h_SL2L265->SetBinContent(4,827.8572); h_SL2L265->SetBinContent(5,832.8572); h_SL2L265->SetBinContent(6,936.4286); h_SL2L265->SetBinContent(7,1004.286); h_SL2L265->SetBinContent(8,1052.857); h_SL2L265->SetBinContent(9,1162.857); h_SL2L265->SetBinContent(10,1219.286); h_SL2L265->SetBinContent(11,1382.857); h_SL2L265->SetBinContent(12,1498.571); h_SL2L265->SetBinContent(13,1607.857); h_SL2L265->SetBinContent(14,1663.571); h_SL2L265->SetBinContent(15,1797.857); h_SL2L265->SetBinContent(16,1814.286); h_SL2L265->SetBinContent(17,1928.572); h_SL2L265->SetBinContent(18,2160); h_SL2L265->SetBinContent(19,2294.286); h_SL2L265->SetBinContent(20,2518.572); h_SL2L265->SetBinContent(21,2620); h_SL2L265->SetBinContent(22,2702.857); h_SL2L265->SetBinContent(23,2926.429); h_SL2L265->SetBinContent(24,3250); h_SL2L265->SetBinContent(25,4186.429); h_SL2L265->SetBinContent(26,16127.14); h_SL2L265->SetBinContent(27,35922.14); h_SL2L265->SetBinContent(28,54309.29); h_SL2L265->SetBinContent(29,62548.57); h_SL2L265->SetBinContent(30,60227.14); h_SL2L265->SetBinContent(31,47692.14); h_SL2L265->SetBinContent(32,39232.86); h_SL2L265->SetBinContent(33,38860); h_SL2L265->SetBinContent(34,34555.71); h_SL2L265->SetBinContent(35,13644.29); h_SL2L265->SetBinContent(36,4665); h_SL2L265->SetBinContent(37,3181.429); h_SL2L265->SetBinContent(38,2646.429); h_SL2L265->SetBinContent(39,3218.572); h_SL2L265->SetBinContent(40,4732.143); h_SL2L265->SetBinContent(41,2900.714); h_SL2L265->SetBinContent(42,2530); h_SL2L265->SetBinContent(43,1602.143); h_SL2L265->SetBinContent(44,1902.143); h_SL2L265->SetBinContent(45,1215.714); h_SL2L265->SetBinContent(46,1174.286); h_SL2L265->SetBinContent(47,1066.429); h_SL2L265->SetBinContent(48,950.7143); h_SL2L265->SetBinContent(49,965); h_SL2L265->SetBinContent(50,829.2857); h_SL2L265->SetBinContent(51,786.4286); h_SL2L265->SetBinContent(52,699.2857); h_SL2L265->SetBinContent(53,694.2857); h_SL2L265->SetBinContent(54,650.7143); h_SL2L265->SetBinContent(55,557.8572); h_SL2L265->SetBinContent(56,542.1429); h_SL2L265->SetBinContent(57,466.4286); h_SL2L265->SetMaximum(72788.43); 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,599.2857); h_SL2L366->SetBinContent(2,650.7143); h_SL2L366->SetBinContent(3,820.7143); h_SL2L366->SetBinContent(4,819.2857); h_SL2L366->SetBinContent(5,845); h_SL2L366->SetBinContent(6,924.2858); h_SL2L366->SetBinContent(7,1015.714); h_SL2L366->SetBinContent(8,1075.714); h_SL2L366->SetBinContent(9,1170.714); h_SL2L366->SetBinContent(10,1304.286); h_SL2L366->SetBinContent(11,1387.143); h_SL2L366->SetBinContent(12,1539.286); h_SL2L366->SetBinContent(13,1602.143); h_SL2L366->SetBinContent(14,1729.286); h_SL2L366->SetBinContent(15,1752.143); h_SL2L366->SetBinContent(16,1823.571); h_SL2L366->SetBinContent(17,1967.143); h_SL2L366->SetBinContent(18,2172.857); h_SL2L366->SetBinContent(19,2318.572); h_SL2L366->SetBinContent(20,2506.429); h_SL2L366->SetBinContent(21,2583.572); h_SL2L366->SetBinContent(22,2733.572); h_SL2L366->SetBinContent(23,2963.572); h_SL2L366->SetBinContent(24,3494.286); h_SL2L366->SetBinContent(25,7731.429); h_SL2L366->SetBinContent(26,26009.29); h_SL2L366->SetBinContent(27,45956.43); h_SL2L366->SetBinContent(28,59630); h_SL2L366->SetBinContent(29,62974.29); h_SL2L366->SetBinContent(30,54263.57); h_SL2L366->SetBinContent(31,42505); h_SL2L366->SetBinContent(32,38395.71); h_SL2L366->SetBinContent(33,38617.14); h_SL2L366->SetBinContent(34,24594.29); h_SL2L366->SetBinContent(35,6987.857); h_SL2L366->SetBinContent(36,3595); h_SL2L366->SetBinContent(37,2807.143); h_SL2L366->SetBinContent(38,2348.572); h_SL2L366->SetBinContent(39,2065.714); h_SL2L366->SetBinContent(40,3628.572); h_SL2L366->SetBinContent(41,2189.286); h_SL2L366->SetBinContent(42,1569.286); h_SL2L366->SetBinContent(43,1470); h_SL2L366->SetBinContent(44,1277.143); h_SL2L366->SetBinContent(45,1146.429); h_SL2L366->SetBinContent(46,1100.714); h_SL2L366->SetBinContent(47,962.8572); h_SL2L366->SetBinContent(48,944.2858); h_SL2L366->SetBinContent(49,877.8572); h_SL2L366->SetBinContent(50,775); h_SL2L366->SetBinContent(51,727.1429); h_SL2L366->SetBinContent(52,679.2857); h_SL2L366->SetBinContent(53,675.7143); h_SL2L366->SetBinContent(54,602.8572); h_SL2L366->SetBinContent(55,553.5715); h_SL2L366->SetBinContent(56,497.8571); h_SL2L366->SetBinContent(57,456.4286); h_SL2L366->SetMaximum(72788.43); 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,637.1429); h_SL2L467->SetBinContent(3,710); h_SL2L467->SetBinContent(4,795); h_SL2L467->SetBinContent(5,814.2857); h_SL2L467->SetBinContent(6,885.7143); h_SL2L467->SetBinContent(7,967.8572); h_SL2L467->SetBinContent(8,1018.571); h_SL2L467->SetBinContent(9,1102.857); h_SL2L467->SetBinContent(10,1200); h_SL2L467->SetBinContent(11,1319.286); h_SL2L467->SetBinContent(12,1435.714); h_SL2L467->SetBinContent(13,1526.429); h_SL2L467->SetBinContent(14,1585); h_SL2L467->SetBinContent(15,1709.286); h_SL2L467->SetBinContent(16,1783.571); h_SL2L467->SetBinContent(17,1812.143); h_SL2L467->SetBinContent(18,2039.286); h_SL2L467->SetBinContent(19,2177.857); h_SL2L467->SetBinContent(20,2362.143); h_SL2L467->SetBinContent(21,2510.714); h_SL2L467->SetBinContent(22,2615.714); h_SL2L467->SetBinContent(23,2799.286); h_SL2L467->SetBinContent(24,3083.572); h_SL2L467->SetBinContent(25,3961.429); h_SL2L467->SetBinContent(26,16048.57); h_SL2L467->SetBinContent(27,35925.71); h_SL2L467->SetBinContent(28,54217.14); h_SL2L467->SetBinContent(29,62595.71); h_SL2L467->SetBinContent(30,60603.57); h_SL2L467->SetBinContent(31,47692.14); h_SL2L467->SetBinContent(32,39240); h_SL2L467->SetBinContent(33,38881.43); h_SL2L467->SetBinContent(34,34531.43); h_SL2L467->SetBinContent(35,13602.14); h_SL2L467->SetBinContent(36,4515); h_SL2L467->SetBinContent(37,3068.572); h_SL2L467->SetBinContent(38,2492.857); h_SL2L467->SetBinContent(39,2152.143); h_SL2L467->SetBinContent(40,1873.572); h_SL2L467->SetBinContent(41,1613.571); h_SL2L467->SetBinContent(42,2130.714); h_SL2L467->SetBinContent(43,1473.571); h_SL2L467->SetBinContent(44,1332.143); h_SL2L467->SetBinContent(45,1173.571); h_SL2L467->SetBinContent(46,1150); h_SL2L467->SetBinContent(47,1028.571); h_SL2L467->SetBinContent(48,932.1429); h_SL2L467->SetBinContent(49,917.1429); h_SL2L467->SetBinContent(50,807.1429); h_SL2L467->SetBinContent(51,742.8572); h_SL2L467->SetBinContent(52,697.1429); h_SL2L467->SetBinContent(53,638.5715); h_SL2L467->SetBinContent(54,601.4286); h_SL2L467->SetBinContent(55,543.5714); h_SL2L467->SetBinContent(56,504.2857); h_SL2L467->SetBinContent(57,469.2857); h_SL2L467->SetMaximum(72788.43); 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 6495"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }