void RatesPerCell_Removing_noisy_cells_run_5496_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:52:09 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18120.55,67.5,163085); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5496",60,0,60); h_SL1L160->SetBinContent(1,471.4286); h_SL1L160->SetBinContent(2,421.4286); h_SL1L160->SetBinContent(3,492.8571); h_SL1L160->SetBinContent(4,485.7143); h_SL1L160->SetBinContent(5,492.8571); h_SL1L160->SetBinContent(6,500); h_SL1L160->SetBinContent(7,514.2857); h_SL1L160->SetBinContent(8,539.2857); h_SL1L160->SetBinContent(9,539.2857); h_SL1L160->SetBinContent(10,675); h_SL1L160->SetBinContent(11,646.4286); h_SL1L160->SetBinContent(12,678.5714); h_SL1L160->SetBinContent(13,710.7143); h_SL1L160->SetBinContent(14,800); h_SL1L160->SetBinContent(15,714.2857); h_SL1L160->SetBinContent(16,707.1428); h_SL1L160->SetBinContent(17,700); h_SL1L160->SetBinContent(18,928.5714); h_SL1L160->SetBinContent(19,1060.714); h_SL1L160->SetBinContent(20,1289.286); h_SL1L160->SetBinContent(21,1464.286); h_SL1L160->SetBinContent(22,1553.571); h_SL1L160->SetBinContent(23,1560.714); h_SL1L160->SetBinContent(24,1835.714); h_SL1L160->SetBinContent(25,1935.714); h_SL1L160->SetBinContent(26,1964.286); h_SL1L160->SetBinContent(27,2200); h_SL1L160->SetBinContent(28,2882.143); h_SL1L160->SetBinContent(29,2878.571); h_SL1L160->SetBinContent(30,3346.428); h_SL1L160->SetBinContent(31,4071.428); h_SL1L160->SetBinContent(32,5335.714); h_SL1L160->SetBinContent(33,15000); h_SL1L160->SetBinContent(34,22585.71); h_SL1L160->SetBinContent(35,33046.43); h_SL1L160->SetBinContent(36,53210.71); h_SL1L160->SetBinContent(37,90467.86); h_SL1L160->SetBinContent(38,109203.6); h_SL1L160->SetBinContent(39,62496.43); h_SL1L160->SetBinContent(40,11057.14); h_SL1L160->SetBinContent(41,5639.286); h_SL1L160->SetBinContent(42,4603.571); h_SL1L160->SetBinContent(43,4010.714); h_SL1L160->SetBinContent(44,3542.857); h_SL1L160->SetBinContent(45,3164.286); h_SL1L160->SetBinContent(46,2771.428); h_SL1L160->SetBinContent(47,2892.857); h_SL1L160->SetBinContent(48,2442.857); h_SL1L160->SetBinContent(49,2275); h_SL1L160->SetBinContent(50,2207.143); h_SL1L160->SetBinContent(51,1978.571); h_SL1L160->SetBinContent(52,2000); h_SL1L160->SetBinContent(53,1796.429); h_SL1L160->SetBinContent(54,1560.714); h_SL1L160->SetBinContent(55,1660.714); h_SL1L160->SetBinContent(56,1400); h_SL1L160->SetBinContent(57,1492.857); h_SL1L160->SetBinContent(58,1342.857); h_SL1L160->SetBinContent(59,1160.714); h_SL1L160->SetMaximum(144964.4); 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,428.5714); h_SL1L261->SetBinContent(2,367.8571); h_SL1L261->SetBinContent(3,392.8571); h_SL1L261->SetBinContent(4,432.1429); h_SL1L261->SetBinContent(5,500); h_SL1L261->SetBinContent(6,350); h_SL1L261->SetBinContent(7,439.2857); h_SL1L261->SetBinContent(8,464.2857); h_SL1L261->SetBinContent(9,492.8571); h_SL1L261->SetBinContent(10,485.7143); h_SL1L261->SetBinContent(11,632.1428); h_SL1L261->SetBinContent(12,567.8571); h_SL1L261->SetBinContent(13,596.4286); h_SL1L261->SetBinContent(14,635.7143); h_SL1L261->SetBinContent(15,714.2857); h_SL1L261->SetBinContent(16,575); h_SL1L261->SetBinContent(17,692.8571); h_SL1L261->SetBinContent(18,764.2857); h_SL1L261->SetBinContent(19,982.1428); h_SL1L261->SetBinContent(20,1067.857); h_SL1L261->SetBinContent(21,1225); h_SL1L261->SetBinContent(22,1396.429); h_SL1L261->SetBinContent(23,1464.286); h_SL1L261->SetBinContent(24,1550); h_SL1L261->SetBinContent(25,1735.714); h_SL1L261->SetBinContent(26,1739.286); h_SL1L261->SetBinContent(27,1796.429); h_SL1L261->SetBinContent(28,2560.714); h_SL1L261->SetBinContent(29,2775); h_SL1L261->SetBinContent(30,3132.143); h_SL1L261->SetBinContent(31,3589.286); h_SL1L261->SetBinContent(32,4600); h_SL1L261->SetBinContent(33,8953.571); h_SL1L261->SetBinContent(34,19150); h_SL1L261->SetBinContent(35,27242.86); h_SL1L261->SetBinContent(36,41200); h_SL1L261->SetBinContent(37,70396.43); h_SL1L261->SetBinContent(38,106910.7); h_SL1L261->SetBinContent(39,95767.86); h_SL1L261->SetBinContent(40,24435.71); h_SL1L261->SetBinContent(41,8903.571); h_SL1L261->SetBinContent(42,4732.143); h_SL1L261->SetBinContent(43,4035.714); h_SL1L261->SetBinContent(44,3664.286); h_SL1L261->SetBinContent(45,3189.286); h_SL1L261->SetBinContent(46,2892.857); h_SL1L261->SetBinContent(47,2750); h_SL1L261->SetBinContent(48,2460.714); h_SL1L261->SetBinContent(49,2382.143); h_SL1L261->SetBinContent(50,2132.143); h_SL1L261->SetBinContent(51,1942.857); h_SL1L261->SetBinContent(52,2000); h_SL1L261->SetBinContent(53,1846.429); h_SL1L261->SetBinContent(54,1532.143); h_SL1L261->SetBinContent(55,1500); h_SL1L261->SetBinContent(56,1457.143); h_SL1L261->SetBinContent(57,1400); h_SL1L261->SetBinContent(58,1285.714); h_SL1L261->SetBinContent(59,1089.286); h_SL1L261->SetMaximum(126056.4); 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,389.2857); h_SL1L362->SetBinContent(2,350); h_SL1L362->SetBinContent(3,428.5714); h_SL1L362->SetBinContent(4,400); h_SL1L362->SetBinContent(5,346.4286); h_SL1L362->SetBinContent(6,332.1429); h_SL1L362->SetBinContent(7,396.4286); h_SL1L362->SetBinContent(8,467.8571); h_SL1L362->SetBinContent(9,435.7143); h_SL1L362->SetBinContent(10,546.4286); h_SL1L362->SetBinContent(11,557.1428); h_SL1L362->SetBinContent(12,575); h_SL1L362->SetBinContent(13,635.7143); h_SL1L362->SetBinContent(14,653.5714); h_SL1L362->SetBinContent(15,592.8571); h_SL1L362->SetBinContent(16,592.8571); h_SL1L362->SetBinContent(17,660.7143); h_SL1L362->SetBinContent(18,825); h_SL1L362->SetBinContent(19,960.7143); h_SL1L362->SetBinContent(20,1042.857); h_SL1L362->SetBinContent(21,1225); h_SL1L362->SetBinContent(22,1303.571); h_SL1L362->SetBinContent(23,1432.143); h_SL1L362->SetBinContent(24,1489.286); h_SL1L362->SetBinContent(25,1725); h_SL1L362->SetBinContent(26,1721.429); h_SL1L362->SetBinContent(27,1975); h_SL1L362->SetBinContent(28,2707.143); h_SL1L362->SetBinContent(29,2817.857); h_SL1L362->SetBinContent(30,3182.143); h_SL1L362->SetBinContent(31,3857.143); h_SL1L362->SetBinContent(32,5246.429); h_SL1L362->SetBinContent(33,14917.86); h_SL1L362->SetBinContent(34,22628.57); h_SL1L362->SetBinContent(35,33010.71); h_SL1L362->SetBinContent(36,53292.86); h_SL1L362->SetBinContent(37,90907.14); h_SL1L362->SetBinContent(38,109614.3); h_SL1L362->SetBinContent(39,63025); h_SL1L362->SetBinContent(40,11067.86); h_SL1L362->SetBinContent(41,5750); h_SL1L362->SetBinContent(42,4364.286); h_SL1L362->SetBinContent(43,3825); h_SL1L362->SetBinContent(44,3260.714); h_SL1L362->SetBinContent(45,2917.857); h_SL1L362->SetBinContent(46,2732.143); h_SL1L362->SetBinContent(47,2750); h_SL1L362->SetBinContent(48,2285.714); h_SL1L362->SetBinContent(49,2157.143); h_SL1L362->SetBinContent(50,1871.429); h_SL1L362->SetBinContent(51,1953.571); h_SL1L362->SetBinContent(52,1821.429); h_SL1L362->SetBinContent(53,1557.143); h_SL1L362->SetBinContent(54,1475); h_SL1L362->SetBinContent(55,1403.571); h_SL1L362->SetBinContent(56,1271.429); h_SL1L362->SetBinContent(57,1292.857); h_SL1L362->SetBinContent(58,1175); h_SL1L362->SetBinContent(59,1025); h_SL1L362->SetMaximum(126056.4); 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,32.14286); h_SL1L463->SetBinContent(3,21.42857); h_SL1L463->SetBinContent(4,67.85714); h_SL1L463->SetBinContent(5,39.28571); h_SL1L463->SetBinContent(6,35.71429); h_SL1L463->SetBinContent(7,46.42857); h_SL1L463->SetBinContent(8,21.42857); h_SL1L463->SetBinContent(9,39.28571); h_SL1L463->SetBinContent(10,32.14286); h_SL1L463->SetBinContent(11,53.57143); h_SL1L463->SetBinContent(12,39.28571); h_SL1L463->SetBinContent(13,92.85714); h_SL1L463->SetBinContent(14,50); h_SL1L463->SetBinContent(15,42.85714); h_SL1L463->SetBinContent(16,53.57143); h_SL1L463->SetBinContent(17,57.14286); h_SL1L463->SetBinContent(18,35.71429); h_SL1L463->SetBinContent(19,107.1429); h_SL1L463->SetBinContent(20,75); h_SL1L463->SetBinContent(21,82.14285); h_SL1L463->SetBinContent(22,121.4286); h_SL1L463->SetBinContent(23,128.5714); h_SL1L463->SetBinContent(24,96.42857); h_SL1L463->SetBinContent(25,128.5714); h_SL1L463->SetBinContent(26,157.1429); h_SL1L463->SetBinContent(27,117.8571); h_SL1L463->SetBinContent(28,264.2857); h_SL1L463->SetBinContent(29,225); h_SL1L463->SetBinContent(30,257.1429); h_SL1L463->SetBinContent(31,382.1429); h_SL1L463->SetBinContent(32,367.8571); h_SL1L463->SetBinContent(33,635.7143); h_SL1L463->SetBinContent(34,1789.286); h_SL1L463->SetBinContent(35,2867.857); h_SL1L463->SetBinContent(36,3917.857); h_SL1L463->SetBinContent(37,5392.857); h_SL1L463->SetBinContent(38,8707.143); h_SL1L463->SetBinContent(39,9100); h_SL1L463->SetBinContent(40,1689.286); h_SL1L463->SetBinContent(41,785.7143); h_SL1L463->SetBinContent(42,478.5714); h_SL1L463->SetBinContent(43,489.2857); h_SL1L463->SetBinContent(44,357.1429); h_SL1L463->SetBinContent(45,242.8571); h_SL1L463->SetBinContent(46,314.2857); h_SL1L463->SetBinContent(47,192.8571); h_SL1L463->SetBinContent(48,214.2857); h_SL1L463->SetBinContent(49,164.2857); h_SL1L463->SetBinContent(50,153.5714); h_SL1L463->SetBinContent(51,139.2857); h_SL1L463->SetBinContent(52,167.8571); h_SL1L463->SetBinContent(53,175); h_SL1L463->SetBinContent(54,142.8571); h_SL1L463->SetBinContent(56,110.7143); h_SL1L463->SetBinContent(57,92.85714); h_SL1L463->SetBinContent(58,135.7143); h_SL1L463->SetBinContent(59,89.28571); h_SL1L463->SetMaximum(126056.4); 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 5496"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }