void RatesPerCell_Removing_noisy_cells_run_6539_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:19:50 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8644.838,67.5,77803.54); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6539",60,0,60); h_SL2L164->SetBinContent(1,615.7143); h_SL2L164->SetBinContent(2,747.1429); h_SL2L164->SetBinContent(3,872.8572); h_SL2L164->SetBinContent(4,911.4286); h_SL2L164->SetBinContent(5,1040); h_SL2L164->SetBinContent(6,1058.571); h_SL2L164->SetBinContent(7,1011.429); h_SL2L164->SetBinContent(8,1104.286); h_SL2L164->SetBinContent(9,1132.857); h_SL2L164->SetBinContent(10,1351.429); h_SL2L164->SetBinContent(11,1402.857); h_SL2L164->SetBinContent(12,1587.143); h_SL2L164->SetBinContent(13,1572.857); h_SL2L164->SetBinContent(14,1615.714); h_SL2L164->SetBinContent(15,1911.429); h_SL2L164->SetBinContent(16,1771.429); h_SL2L164->SetBinContent(17,1890); h_SL2L164->SetBinContent(18,1957.143); h_SL2L164->SetBinContent(19,2168.572); h_SL2L164->SetBinContent(20,2311.429); h_SL2L164->SetBinContent(21,2427.143); h_SL2L164->SetBinContent(22,2651.429); h_SL2L164->SetBinContent(23,2825.714); h_SL2L164->SetBinContent(24,3454.286); h_SL2L164->SetBinContent(25,8301.429); h_SL2L164->SetBinContent(26,25910); h_SL2L164->SetBinContent(27,39562.86); h_SL2L164->SetBinContent(28,47871.43); h_SL2L164->SetBinContent(29,51785.71); h_SL2L164->SetBinContent(30,51057.14); h_SL2L164->SetBinContent(31,50604.29); h_SL2L164->SetBinContent(32,51524.29); h_SL2L164->SetBinContent(33,50704.29); h_SL2L164->SetBinContent(34,28725.71); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,3617.143); h_SL2L164->SetBinContent(37,8485.715); h_SL2L164->SetBinContent(38,4822.857); h_SL2L164->SetBinContent(39,6668.572); h_SL2L164->SetBinContent(40,38402.86); h_SL2L164->SetBinContent(41,50545.71); h_SL2L164->SetBinContent(42,12932.86); h_SL2L164->SetBinContent(43,12870); h_SL2L164->SetBinContent(44,13224.29); h_SL2L164->SetBinContent(45,1271.429); h_SL2L164->SetBinContent(46,1131.429); h_SL2L164->SetBinContent(47,1068.571); h_SL2L164->SetBinContent(48,1012.857); h_SL2L164->SetBinContent(49,988.5715); h_SL2L164->SetBinContent(50,832.8572); h_SL2L164->SetBinContent(51,810); h_SL2L164->SetBinContent(52,760); h_SL2L164->SetBinContent(53,715.7143); h_SL2L164->SetBinContent(54,664.2857); h_SL2L164->SetBinContent(55,658.5715); h_SL2L164->SetBinContent(56,528.5714); h_SL2L164->SetBinContent(57,6282.857); h_SL2L164->SetMaximum(69158.7); 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,540); h_SL2L265->SetBinContent(2,672.8572); h_SL2L265->SetBinContent(3,798.5715); h_SL2L265->SetBinContent(4,862.8572); h_SL2L265->SetBinContent(5,971.4286); h_SL2L265->SetBinContent(6,1022.857); h_SL2L265->SetBinContent(7,992.8572); h_SL2L265->SetBinContent(8,1042.857); h_SL2L265->SetBinContent(9,1155.714); h_SL2L265->SetBinContent(10,1174.286); h_SL2L265->SetBinContent(11,1355.714); h_SL2L265->SetBinContent(12,1407.143); h_SL2L265->SetBinContent(13,1575.714); h_SL2L265->SetBinContent(14,1545.714); h_SL2L265->SetBinContent(15,1740); h_SL2L265->SetBinContent(16,1817.143); h_SL2L265->SetBinContent(17,1818.571); h_SL2L265->SetBinContent(18,1932.857); h_SL2L265->SetBinContent(19,2072.857); h_SL2L265->SetBinContent(20,2238.572); h_SL2L265->SetBinContent(21,2348.572); h_SL2L265->SetBinContent(22,2442.857); h_SL2L265->SetBinContent(23,2572.857); h_SL2L265->SetBinContent(24,2980); h_SL2L265->SetBinContent(25,4084.286); h_SL2L265->SetBinContent(26,16914.29); h_SL2L265->SetBinContent(27,33417.14); h_SL2L265->SetBinContent(28,44452.86); h_SL2L265->SetBinContent(29,50234.29); h_SL2L265->SetBinContent(30,51404.29); h_SL2L265->SetBinContent(31,50085.71); h_SL2L265->SetBinContent(32,51001.43); h_SL2L265->SetBinContent(33,52145.71); h_SL2L265->SetBinContent(34,43022.86); h_SL2L265->SetBinContent(35,15052.86); h_SL2L265->SetBinContent(36,4597.143); h_SL2L265->SetBinContent(37,3074.286); h_SL2L265->SetBinContent(38,2584.286); h_SL2L265->SetBinContent(39,3781.429); h_SL2L265->SetBinContent(40,5182.857); h_SL2L265->SetBinContent(41,4295.714); h_SL2L265->SetBinContent(42,3412.857); h_SL2L265->SetBinContent(43,2181.429); h_SL2L265->SetBinContent(44,3325.714); h_SL2L265->SetBinContent(45,1257.143); h_SL2L265->SetBinContent(46,1134.286); h_SL2L265->SetBinContent(47,1062.857); h_SL2L265->SetBinContent(48,1012.857); h_SL2L265->SetBinContent(49,971.4286); h_SL2L265->SetBinContent(50,898.5715); h_SL2L265->SetBinContent(51,830); h_SL2L265->SetBinContent(52,788.5715); h_SL2L265->SetBinContent(53,702.8572); h_SL2L265->SetBinContent(54,670); h_SL2L265->SetBinContent(55,690); h_SL2L265->SetBinContent(56,588.5715); h_SL2L265->SetBinContent(57,502.8571); h_SL2L265->SetMaximum(60138.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,651.4286); h_SL2L366->SetBinContent(2,742.8572); h_SL2L366->SetBinContent(3,814.2857); h_SL2L366->SetBinContent(4,880); h_SL2L366->SetBinContent(5,1002.857); h_SL2L366->SetBinContent(6,990); h_SL2L366->SetBinContent(7,970); h_SL2L366->SetBinContent(8,1102.857); h_SL2L366->SetBinContent(9,1097.143); h_SL2L366->SetBinContent(10,1287.143); h_SL2L366->SetBinContent(11,1350); h_SL2L366->SetBinContent(12,1547.143); h_SL2L366->SetBinContent(13,1490); h_SL2L366->SetBinContent(14,1604.286); h_SL2L366->SetBinContent(15,1784.286); h_SL2L366->SetBinContent(16,1784.286); h_SL2L366->SetBinContent(17,1924.286); h_SL2L366->SetBinContent(18,1895.714); h_SL2L366->SetBinContent(19,2177.143); h_SL2L366->SetBinContent(20,2240); h_SL2L366->SetBinContent(21,2375.714); h_SL2L366->SetBinContent(22,2485.714); h_SL2L366->SetBinContent(23,2664.286); h_SL2L366->SetBinContent(24,3261.429); h_SL2L366->SetBinContent(25,8148.572); h_SL2L366->SetBinContent(26,26117.14); h_SL2L366->SetBinContent(27,39475.71); h_SL2L366->SetBinContent(28,48092.86); h_SL2L366->SetBinContent(29,51471.43); h_SL2L366->SetBinContent(30,50924.29); h_SL2L366->SetBinContent(31,50660); h_SL2L366->SetBinContent(32,51652.86); h_SL2L366->SetBinContent(33,50627.14); h_SL2L366->SetBinContent(34,28830); h_SL2L366->SetBinContent(35,7342.857); h_SL2L366->SetBinContent(36,3631.429); h_SL2L366->SetBinContent(37,2671.429); h_SL2L366->SetBinContent(38,2338.572); h_SL2L366->SetBinContent(39,1981.429); h_SL2L366->SetBinContent(40,3941.429); h_SL2L366->SetBinContent(41,2252.857); h_SL2L366->SetBinContent(42,1645.714); h_SL2L366->SetBinContent(43,1392.857); h_SL2L366->SetBinContent(44,1250); h_SL2L366->SetBinContent(45,1202.857); h_SL2L366->SetBinContent(46,1094.286); h_SL2L366->SetBinContent(47,988.5715); h_SL2L366->SetBinContent(48,1018.571); h_SL2L366->SetBinContent(49,941.4286); h_SL2L366->SetBinContent(50,802.8572); h_SL2L366->SetBinContent(51,761.4286); h_SL2L366->SetBinContent(52,681.4286); h_SL2L366->SetBinContent(53,631.4286); h_SL2L366->SetBinContent(54,638.5715); h_SL2L366->SetBinContent(55,607.1429); h_SL2L366->SetBinContent(56,534.2857); h_SL2L366->SetBinContent(57,565.7143); h_SL2L366->SetMaximum(60138.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,711.4286); h_SL2L467->SetBinContent(3,762.8572); h_SL2L467->SetBinContent(4,795.7143); h_SL2L467->SetBinContent(5,921.4286); h_SL2L467->SetBinContent(6,980); h_SL2L467->SetBinContent(7,985.7143); h_SL2L467->SetBinContent(8,994.2858); h_SL2L467->SetBinContent(9,1132.857); h_SL2L467->SetBinContent(10,1177.143); h_SL2L467->SetBinContent(11,1264.286); h_SL2L467->SetBinContent(12,1435.714); h_SL2L467->SetBinContent(13,1515.714); h_SL2L467->SetBinContent(14,1465.714); h_SL2L467->SetBinContent(15,1727.143); h_SL2L467->SetBinContent(16,1722.857); h_SL2L467->SetBinContent(17,1758.571); h_SL2L467->SetBinContent(18,1924.286); h_SL2L467->SetBinContent(19,2047.143); h_SL2L467->SetBinContent(20,2204.286); h_SL2L467->SetBinContent(21,2280); h_SL2L467->SetBinContent(22,2357.143); h_SL2L467->SetBinContent(23,2452.857); h_SL2L467->SetBinContent(24,2870); h_SL2L467->SetBinContent(25,3867.143); h_SL2L467->SetBinContent(26,16804.29); h_SL2L467->SetBinContent(27,33540); h_SL2L467->SetBinContent(28,44382.86); h_SL2L467->SetBinContent(29,50275.71); h_SL2L467->SetBinContent(30,51934.29); h_SL2L467->SetBinContent(31,50198.57); h_SL2L467->SetBinContent(32,51268.57); h_SL2L467->SetBinContent(33,52294.29); h_SL2L467->SetBinContent(34,43001.43); h_SL2L467->SetBinContent(35,15047.14); h_SL2L467->SetBinContent(36,4538.572); h_SL2L467->SetBinContent(37,3007.143); h_SL2L467->SetBinContent(38,2512.857); h_SL2L467->SetBinContent(39,2131.429); h_SL2L467->SetBinContent(40,1832.857); h_SL2L467->SetBinContent(41,1705.714); h_SL2L467->SetBinContent(42,2067.143); h_SL2L467->SetBinContent(43,1458.571); h_SL2L467->SetBinContent(44,1190); h_SL2L467->SetBinContent(45,1207.143); h_SL2L467->SetBinContent(46,1094.286); h_SL2L467->SetBinContent(47,1030); h_SL2L467->SetBinContent(48,970); h_SL2L467->SetBinContent(49,925.7143); h_SL2L467->SetBinContent(50,898.5715); h_SL2L467->SetBinContent(51,801.4286); h_SL2L467->SetBinContent(52,755.7143); h_SL2L467->SetBinContent(53,650); h_SL2L467->SetBinContent(54,648.5715); h_SL2L467->SetBinContent(55,677.1429); h_SL2L467->SetBinContent(56,598.5715); h_SL2L467->SetBinContent(57,494.2857); h_SL2L467->SetMaximum(60138.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 6539"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }