void RatesPerCell_Removing_noisy_cells_run_5663_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:25:35 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11978.26,67.5,107804.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5663",60,0,60); h_SL1L160->SetBinContent(1,591.4286); h_SL1L160->SetBinContent(2,597.1429); h_SL1L160->SetBinContent(3,550); h_SL1L160->SetBinContent(4,550); h_SL1L160->SetBinContent(5,568.5715); h_SL1L160->SetBinContent(6,624.2857); h_SL1L160->SetBinContent(7,622.8572); h_SL1L160->SetBinContent(8,672.8572); h_SL1L160->SetBinContent(9,732.8572); h_SL1L160->SetBinContent(10,742.8572); h_SL1L160->SetBinContent(11,852.8572); h_SL1L160->SetBinContent(12,945.7143); h_SL1L160->SetBinContent(13,1051.429); h_SL1L160->SetBinContent(14,1054.286); h_SL1L160->SetBinContent(15,995.7143); h_SL1L160->SetBinContent(16,967.1429); h_SL1L160->SetBinContent(17,1051.429); h_SL1L160->SetBinContent(18,1391.429); h_SL1L160->SetBinContent(19,1425.714); h_SL1L160->SetBinContent(20,1684.286); h_SL1L160->SetBinContent(21,1827.143); h_SL1L160->SetBinContent(22,1931.429); h_SL1L160->SetBinContent(23,2142.857); h_SL1L160->SetBinContent(24,2325.714); h_SL1L160->SetBinContent(25,2547.143); h_SL1L160->SetBinContent(26,2702.857); h_SL1L160->SetBinContent(27,2922.857); h_SL1L160->SetBinContent(28,3737.143); h_SL1L160->SetBinContent(29,4044.286); h_SL1L160->SetBinContent(30,4811.429); h_SL1L160->SetBinContent(31,6314.286); h_SL1L160->SetBinContent(32,9775.715); h_SL1L160->SetBinContent(33,37684.29); h_SL1L160->SetBinContent(34,51048.57); h_SL1L160->SetBinContent(35,59305.71); h_SL1L160->SetBinContent(36,67242.86); h_SL1L160->SetBinContent(37,72297.15); h_SL1L160->SetBinContent(38,66418.57); h_SL1L160->SetBinContent(39,43835.71); h_SL1L160->SetBinContent(40,10648.57); h_SL1L160->SetBinContent(41,6647.143); h_SL1L160->SetBinContent(42,5655.714); h_SL1L160->SetBinContent(43,5017.143); h_SL1L160->SetBinContent(44,4420); h_SL1L160->SetBinContent(45,4137.143); h_SL1L160->SetBinContent(46,3724.286); h_SL1L160->SetBinContent(47,3461.429); h_SL1L160->SetBinContent(48,3152.857); h_SL1L160->SetBinContent(49,2977.143); h_SL1L160->SetBinContent(50,2772.857); h_SL1L160->SetBinContent(51,2565.714); h_SL1L160->SetBinContent(52,2442.857); h_SL1L160->SetBinContent(53,2352.857); h_SL1L160->SetBinContent(54,2182.857); h_SL1L160->SetBinContent(55,2081.429); h_SL1L160->SetBinContent(56,1954.286); h_SL1L160->SetBinContent(57,1935.714); h_SL1L160->SetBinContent(58,1757.143); h_SL1L160->SetBinContent(59,1747.143); h_SL1L160->SetMaximum(95826.05); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,512.8572); h_SL1L261->SetBinContent(2,550); h_SL1L261->SetBinContent(3,504.2857); h_SL1L261->SetBinContent(4,475.7143); h_SL1L261->SetBinContent(5,507.1429); h_SL1L261->SetBinContent(6,554.2857); h_SL1L261->SetBinContent(7,562.8572); h_SL1L261->SetBinContent(8,625.7143); h_SL1L261->SetBinContent(9,578.5715); h_SL1L261->SetBinContent(10,645.7143); h_SL1L261->SetBinContent(11,724.2857); h_SL1L261->SetBinContent(12,817.1429); h_SL1L261->SetBinContent(13,878.5715); h_SL1L261->SetBinContent(14,1008.571); h_SL1L261->SetBinContent(15,960); h_SL1L261->SetBinContent(16,860); h_SL1L261->SetBinContent(17,887.1429); h_SL1L261->SetBinContent(18,1264.286); h_SL1L261->SetBinContent(19,1285.714); h_SL1L261->SetBinContent(20,1458.571); h_SL1L261->SetBinContent(21,1694.286); h_SL1L261->SetBinContent(22,1735.714); h_SL1L261->SetBinContent(23,1954.286); h_SL1L261->SetBinContent(24,2107.143); h_SL1L261->SetBinContent(25,2411.429); h_SL1L261->SetBinContent(26,2367.143); h_SL1L261->SetBinContent(27,2641.429); h_SL1L261->SetBinContent(28,3162.857); h_SL1L261->SetBinContent(29,3720); h_SL1L261->SetBinContent(30,4228.571); h_SL1L261->SetBinContent(31,5147.143); h_SL1L261->SetBinContent(32,8044.286); h_SL1L261->SetBinContent(33,20965.71); h_SL1L261->SetBinContent(34,46528.57); h_SL1L261->SetBinContent(35,55065.71); h_SL1L261->SetBinContent(36,63335.71); h_SL1L261->SetBinContent(37,70578.57); h_SL1L261->SetBinContent(38,71047.15); h_SL1L261->SetBinContent(39,59732.86); h_SL1L261->SetBinContent(40,20988.57); h_SL1L261->SetBinContent(41,8992.857); h_SL1L261->SetBinContent(42,5901.429); h_SL1L261->SetBinContent(43,5290); h_SL1L261->SetBinContent(44,4545.714); h_SL1L261->SetBinContent(45,4154.286); h_SL1L261->SetBinContent(46,3780); h_SL1L261->SetBinContent(47,3471.429); h_SL1L261->SetBinContent(48,3235.714); h_SL1L261->SetBinContent(49,3085.714); h_SL1L261->SetBinContent(50,2784.286); h_SL1L261->SetBinContent(51,2548.572); h_SL1L261->SetBinContent(52,2421.429); h_SL1L261->SetBinContent(53,2297.143); h_SL1L261->SetBinContent(54,2051.429); h_SL1L261->SetBinContent(55,2057.143); h_SL1L261->SetBinContent(56,1997.143); h_SL1L261->SetBinContent(57,1820); h_SL1L261->SetBinContent(58,1748.571); h_SL1L261->SetBinContent(59,1714.286); h_SL1L261->SetMaximum(83327.36); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,490); h_SL1L362->SetBinContent(2,484.2857); h_SL1L362->SetBinContent(3,467.1429); h_SL1L362->SetBinContent(4,451.4286); h_SL1L362->SetBinContent(5,491.4286); h_SL1L362->SetBinContent(6,478.5714); h_SL1L362->SetBinContent(7,535.7143); h_SL1L362->SetBinContent(8,588.5715); h_SL1L362->SetBinContent(9,598.5715); h_SL1L362->SetBinContent(10,670); h_SL1L362->SetBinContent(11,730); h_SL1L362->SetBinContent(12,797.1429); h_SL1L362->SetBinContent(13,885.7143); h_SL1L362->SetBinContent(14,912.8572); h_SL1L362->SetBinContent(15,924.2858); h_SL1L362->SetBinContent(16,891.4286); h_SL1L362->SetBinContent(17,1010); h_SL1L362->SetBinContent(18,1174.286); h_SL1L362->SetBinContent(19,1260); h_SL1L362->SetBinContent(20,1474.286); h_SL1L362->SetBinContent(21,1650); h_SL1L362->SetBinContent(22,1725.714); h_SL1L362->SetBinContent(23,1905.714); h_SL1L362->SetBinContent(24,2077.143); h_SL1L362->SetBinContent(25,2328.572); h_SL1L362->SetBinContent(26,2457.143); h_SL1L362->SetBinContent(27,2760); h_SL1L362->SetBinContent(28,3480); h_SL1L362->SetBinContent(29,3804.286); h_SL1L362->SetBinContent(30,4532.857); h_SL1L362->SetBinContent(31,6202.857); h_SL1L362->SetBinContent(32,9717.144); h_SL1L362->SetBinContent(33,37691.43); h_SL1L362->SetBinContent(34,51031.43); h_SL1L362->SetBinContent(35,59498.57); h_SL1L362->SetBinContent(36,67598.57); h_SL1L362->SetBinContent(37,72458.57); h_SL1L362->SetBinContent(38,66515.72); h_SL1L362->SetBinContent(39,44121.43); h_SL1L362->SetBinContent(40,10621.43); h_SL1L362->SetBinContent(41,6630); h_SL1L362->SetBinContent(42,5534.286); h_SL1L362->SetBinContent(43,4860); h_SL1L362->SetBinContent(44,4194.286); h_SL1L362->SetBinContent(45,3872.857); h_SL1L362->SetBinContent(46,3565.714); h_SL1L362->SetBinContent(47,3308.572); h_SL1L362->SetBinContent(48,2932.857); h_SL1L362->SetBinContent(49,2784.286); h_SL1L362->SetBinContent(50,2555.714); h_SL1L362->SetBinContent(51,2401.429); h_SL1L362->SetBinContent(52,2298.572); h_SL1L362->SetBinContent(53,2120); h_SL1L362->SetBinContent(54,1962.857); h_SL1L362->SetBinContent(55,1938.572); h_SL1L362->SetBinContent(56,1797.143); h_SL1L362->SetBinContent(57,1664.286); h_SL1L362->SetBinContent(58,1662.857); h_SL1L362->SetBinContent(59,1625.714); h_SL1L362->SetMaximum(83327.36); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,10); h_SL1L463->SetBinContent(3,8.571428); h_SL1L463->SetBinContent(4,7.142858); h_SL1L463->SetBinContent(5,11.42857); h_SL1L463->SetBinContent(6,7.142858); h_SL1L463->SetBinContent(7,14.28572); h_SL1L463->SetBinContent(8,8.571428); h_SL1L463->SetBinContent(9,10); h_SL1L463->SetBinContent(10,10); h_SL1L463->SetBinContent(11,14.28572); h_SL1L463->SetBinContent(12,14.28572); h_SL1L463->SetBinContent(13,31.42857); h_SL1L463->SetBinContent(14,15.71429); h_SL1L463->SetBinContent(15,22.85714); h_SL1L463->SetBinContent(16,17.14286); h_SL1L463->SetBinContent(17,21.42857); h_SL1L463->SetBinContent(18,22.85714); h_SL1L463->SetBinContent(19,24.28572); h_SL1L463->SetBinContent(20,25.71429); h_SL1L463->SetBinContent(21,35.71429); h_SL1L463->SetBinContent(22,37.14286); h_SL1L463->SetBinContent(23,31.42857); h_SL1L463->SetBinContent(24,34.28571); h_SL1L463->SetBinContent(25,42.85714); h_SL1L463->SetBinContent(26,35.71429); h_SL1L463->SetBinContent(27,45.71429); h_SL1L463->SetBinContent(28,65.71429); h_SL1L463->SetBinContent(29,54.28572); h_SL1L463->SetBinContent(30,70); h_SL1L463->SetBinContent(31,128.5714); h_SL1L463->SetBinContent(32,155.7143); h_SL1L463->SetBinContent(33,278.5714); h_SL1L463->SetBinContent(34,804.2857); h_SL1L463->SetBinContent(35,1221.429); h_SL1L463->SetBinContent(36,1221.429); h_SL1L463->SetBinContent(37,1047.143); h_SL1L463->SetBinContent(38,1197.143); h_SL1L463->SetBinContent(39,1222.857); h_SL1L463->SetBinContent(40,357.1429); h_SL1L463->SetBinContent(41,184.2857); h_SL1L463->SetBinContent(42,117.1429); h_SL1L463->SetBinContent(43,132.8571); h_SL1L463->SetBinContent(44,128.5714); h_SL1L463->SetBinContent(45,92.85715); h_SL1L463->SetBinContent(46,85.71429); h_SL1L463->SetBinContent(47,50); h_SL1L463->SetBinContent(48,55.71429); h_SL1L463->SetBinContent(49,60); h_SL1L463->SetBinContent(50,47.14286); h_SL1L463->SetBinContent(51,48.57143); h_SL1L463->SetBinContent(52,54.28572); h_SL1L463->SetBinContent(53,34.28571); h_SL1L463->SetBinContent(54,38.57143); h_SL1L463->SetBinContent(56,34.28571); h_SL1L463->SetBinContent(57,28.57143); h_SL1L463->SetBinContent(58,37.14286); h_SL1L463->SetBinContent(59,27.14286); h_SL1L463->SetMaximum(83327.36); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 5663"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }