void RatesPerCell_Removing_noisy_cells_run_4995_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:37:55 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11133.87,67.5,100204.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 4995",60,0,60); h_SL1L160->SetBinContent(1,328.3927); h_SL1L160->SetBinContent(2,359.9378); h_SL1L160->SetBinContent(3,378.5414); h_SL1L160->SetBinContent(4,371.6662); h_SL1L160->SetBinContent(5,378.137); h_SL1L160->SetBinContent(6,396.3361); h_SL1L160->SetBinContent(7,416.5573); h_SL1L160->SetBinContent(8,466.3015); h_SL1L160->SetBinContent(9,488.9493); h_SL1L160->SetBinContent(10,529.3917); h_SL1L160->SetBinContent(11,597.3351); h_SL1L160->SetBinContent(12,620.7917); h_SL1L160->SetBinContent(13,1530.343); h_SL1L160->SetBinContent(14,692.7792); h_SL1L160->SetBinContent(15,630.4979); h_SL1L160->SetBinContent(16,639.3952); h_SL1L160->SetBinContent(17,716.6403); h_SL1L160->SetBinContent(18,950.8021); h_SL1L160->SetBinContent(19,1015.51); h_SL1L160->SetBinContent(20,1193.052); h_SL1L160->SetBinContent(21,1376.661); h_SL1L160->SetBinContent(22,1543.284); h_SL1L160->SetBinContent(23,1707.076); h_SL1L160->SetBinContent(24,1832.043); h_SL1L160->SetBinContent(25,1972.379); h_SL1L160->SetBinContent(26,2054.072); h_SL1L160->SetBinContent(27,2298.345); h_SL1L160->SetBinContent(28,3105.98); h_SL1L160->SetBinContent(29,3349.849); h_SL1L160->SetBinContent(30,3711.809); h_SL1L160->SetBinContent(31,5912.687); h_SL1L160->SetBinContent(32,12082.59); h_SL1L160->SetBinContent(33,62388.55); h_SL1L160->SetBinContent(34,64462.85); h_SL1L160->SetBinContent(35,62617.05); h_SL1L160->SetBinContent(36,61210.46); h_SL1L160->SetBinContent(37,56227.55); h_SL1L160->SetBinContent(38,44893.15); h_SL1L160->SetBinContent(39,25496.14); h_SL1L160->SetBinContent(40,6320.751); h_SL1L160->SetBinContent(41,3925.345); h_SL1L160->SetBinContent(42,3398.379); h_SL1L160->SetBinContent(43,3083.333); h_SL1L160->SetBinContent(44,2791.338); h_SL1L160->SetBinContent(45,2532.102); h_SL1L160->SetBinContent(46,2392.171); h_SL1L160->SetBinContent(47,2113.118); h_SL1L160->SetBinContent(48,1917.781); h_SL1L160->SetBinContent(49,1740.643); h_SL1L160->SetBinContent(50,1515.783); h_SL1L160->SetBinContent(51,1317.615); h_SL1L160->SetBinContent(52,1252.907); h_SL1L160->SetBinContent(53,1209.634); h_SL1L160->SetBinContent(54,1183.346); h_SL1L160->SetBinContent(55,1094.777); h_SL1L160->SetBinContent(56,1022.385); h_SL1L160->SetBinContent(57,1022.79); h_SL1L160->SetBinContent(58,1009.039); h_SL1L160->SetBinContent(59,926.5366); h_SL1L160->SetMaximum(89070.95); 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,249.1255); h_SL1L261->SetBinContent(2,293.2078); h_SL1L261->SetBinContent(3,307.3627); h_SL1L261->SetBinContent(4,304.9361); h_SL1L261->SetBinContent(5,329.2016); h_SL1L261->SetBinContent(6,334.8635); h_SL1L261->SetBinContent(7,343.7609); h_SL1L261->SetBinContent(8,376.9237); h_SL1L261->SetBinContent(9,412.513); h_SL1L261->SetBinContent(10,435.9697); h_SL1L261->SetBinContent(11,481.2652); h_SL1L261->SetBinContent(12,516.0457); h_SL1L261->SetBinContent(13,573.0696); h_SL1L261->SetBinContent(14,611.8943); h_SL1L261->SetBinContent(15,603.4014); h_SL1L261->SetBinContent(16,573.8784); h_SL1L261->SetBinContent(17,616.7474); h_SL1L261->SetBinContent(18,761.127); h_SL1L261->SetBinContent(19,881.2411); h_SL1L261->SetBinContent(20,1020.768); h_SL1L261->SetBinContent(21,1151.801); h_SL1L261->SetBinContent(22,1360.889); h_SL1L261->SetBinContent(23,1499.202); h_SL1L261->SetBinContent(24,1639.537); h_SL1L261->SetBinContent(25,1812.631); h_SL1L261->SetBinContent(26,1813.44); h_SL1L261->SetBinContent(27,2100.177); h_SL1L261->SetBinContent(28,2687.401); h_SL1L261->SetBinContent(29,3089.399); h_SL1L261->SetBinContent(30,3402.828); h_SL1L261->SetBinContent(31,4062.849); h_SL1L261->SetBinContent(32,8293.938); h_SL1L261->SetBinContent(33,35609.18); h_SL1L261->SetBinContent(34,67351.25); h_SL1L261->SetBinContent(35,62664.77); h_SL1L261->SetBinContent(36,62348.11); h_SL1L261->SetBinContent(37,59408.35); h_SL1L261->SetBinContent(38,51063.86); h_SL1L261->SetBinContent(39,37831.89); h_SL1L261->SetBinContent(40,11527.72); h_SL1L261->SetBinContent(41,5216.672); h_SL1L261->SetBinContent(42,3445.697); h_SL1L261->SetBinContent(43,3075.649); h_SL1L261->SetBinContent(44,2781.228); h_SL1L261->SetBinContent(45,2518.756); h_SL1L261->SetBinContent(46,2340); h_SL1L261->SetBinContent(47,2109.883); h_SL1L261->SetBinContent(48,1925.87); h_SL1L261->SetBinContent(49,1734.172); h_SL1L261->SetBinContent(50,1552.181); h_SL1L261->SetBinContent(51,1346.329); h_SL1L261->SetBinContent(52,1184.964); h_SL1L261->SetBinContent(53,1181.729); h_SL1L261->SetBinContent(54,1147.352); h_SL1L261->SetBinContent(55,1078.196); h_SL1L261->SetBinContent(56,1045.438); h_SL1L261->SetBinContent(57,954.8464); h_SL1L261->SetBinContent(58,992.4578); h_SL1L261->SetBinContent(59,939.4782); h_SL1L261->SetMaximum(77453.94); 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,244.2724); h_SL1L362->SetBinContent(2,271.7733); h_SL1L362->SetBinContent(3,272.9866); h_SL1L362->SetBinContent(4,271.3689); h_SL1L362->SetBinContent(5,292.8034); h_SL1L362->SetBinContent(6,287.9503); h_SL1L362->SetBinContent(7,328.7971); h_SL1L362->SetBinContent(8,343.3564); h_SL1L362->SetBinContent(9,394.3139); h_SL1L362->SetBinContent(10,399.9759); h_SL1L362->SetBinContent(11,431.9254); h_SL1L362->SetBinContent(12,487.3316); h_SL1L362->SetBinContent(13,541.9289); h_SL1L362->SetBinContent(14,563.7678); h_SL1L362->SetBinContent(15,524.5386); h_SL1L362->SetBinContent(16,546.3776); h_SL1L362->SetBinContent(17,627.6669); h_SL1L362->SetBinContent(18,778.5173); h_SL1L362->SetBinContent(19,892.565); h_SL1L362->SetBinContent(20,1020.363); h_SL1L362->SetBinContent(21,1189.413); h_SL1L362->SetBinContent(22,1336.219); h_SL1L362->SetBinContent(23,1484.238); h_SL1L362->SetBinContent(24,1639.537); h_SL1L362->SetBinContent(25,1749.541); h_SL1L362->SetBinContent(26,1864.397); h_SL1L362->SetBinContent(27,2188.746); h_SL1L362->SetBinContent(28,2919.945); h_SL1L362->SetBinContent(29,3173.924); h_SL1L362->SetBinContent(30,3533.053); h_SL1L362->SetBinContent(31,5790.551); h_SL1L362->SetBinContent(32,12105.64); h_SL1L362->SetBinContent(33,62602.49); h_SL1L362->SetBinContent(34,64625.43); h_SL1L362->SetBinContent(35,62774.78); h_SL1L362->SetBinContent(36,61464.04); h_SL1L362->SetBinContent(37,56517.52); h_SL1L362->SetBinContent(38,45043.59); h_SL1L362->SetBinContent(39,25600.48); h_SL1L362->SetBinContent(40,6192.549); h_SL1L362->SetBinContent(41,3772.068); h_SL1L362->SetBinContent(42,3178.373); h_SL1L362->SetBinContent(43,2835.42); h_SL1L362->SetBinContent(44,2552.323); h_SL1L362->SetBinContent(45,2292.683); h_SL1L362->SetBinContent(46,2134.148); h_SL1L362->SetBinContent(47,1915.759); h_SL1L362->SetBinContent(48,1748.732); h_SL1L362->SetBinContent(49,1537.218); h_SL1L362->SetBinContent(50,1395.265); h_SL1L362->SetBinContent(51,1248.459); h_SL1L362->SetBinContent(52,1157.463); h_SL1L362->SetBinContent(53,1124.3); h_SL1L362->SetBinContent(54,1087.902); h_SL1L362->SetBinContent(55,982.7516); h_SL1L362->SetBinContent(56,955.2508); h_SL1L362->SetBinContent(57,939.0738); h_SL1L362->SetBinContent(58,923.7057); h_SL1L362->SetBinContent(59,854.5491); h_SL1L362->SetMaximum(77453.94); 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,96.65747); h_SL1L463->SetBinContent(3,86.54685); h_SL1L463->SetBinContent(4,90.18668); h_SL1L463->SetBinContent(5,96.65747); h_SL1L463->SetBinContent(6,103.9371); h_SL1L463->SetBinContent(7,103.5327); h_SL1L463->SetBinContent(8,109.1946); h_SL1L463->SetBinContent(9,131.8424); h_SL1L463->SetBinContent(10,130.6291); h_SL1L463->SetBinContent(11,135.0778); h_SL1L463->SetBinContent(12,156.9167); h_SL1L463->SetBinContent(13,162.9831); h_SL1L463->SetBinContent(14,187.2486); h_SL1L463->SetBinContent(15,177.138); h_SL1L463->SetBinContent(16,180.7778); h_SL1L463->SetBinContent(17,177.138); h_SL1L463->SetBinContent(18,226.0733); h_SL1L463->SetBinContent(19,281.8839); h_SL1L463->SetBinContent(20,312.2158); h_SL1L463->SetBinContent(21,342.952); h_SL1L463->SetBinContent(22,434.7564); h_SL1L463->SetBinContent(23,465.4926); h_SL1L463->SetBinContent(24,490.567); h_SL1L463->SetBinContent(25,514.8325); h_SL1L463->SetBinContent(26,602.5926); h_SL1L463->SetBinContent(27,705.3164); h_SL1L463->SetBinContent(28,946.3535); h_SL1L463->SetBinContent(29,995.6932); h_SL1L463->SetBinContent(30,1128.344); h_SL1L463->SetBinContent(31,1538.431); h_SL1L463->SetBinContent(32,2888.4); h_SL1L463->SetBinContent(33,12043.76); h_SL1L463->SetBinContent(34,26690.4); h_SL1L463->SetBinContent(35,26644.7); h_SL1L463->SetBinContent(36,25723.02); h_SL1L463->SetBinContent(37,20624.04); h_SL1L463->SetBinContent(38,19688.6); h_SL1L463->SetBinContent(39,15751.93); h_SL1L463->SetBinContent(40,3788.649); h_SL1L463->SetBinContent(41,1989.769); h_SL1L463->SetBinContent(42,1288.901); h_SL1L463->SetBinContent(43,1257.356); h_SL1L463->SetBinContent(44,1127.94); h_SL1L463->SetBinContent(45,897.4181); h_SL1L463->SetBinContent(46,856.5712); h_SL1L463->SetBinContent(47,704.1031); h_SL1L463->SetBinContent(48,651.1235); h_SL1L463->SetBinContent(49,541.1201); h_SL1L463->SetBinContent(50,474.39); h_SL1L463->SetBinContent(51,477.221); h_SL1L463->SetBinContent(52,411.7042); h_SL1L463->SetBinContent(53,414.5352); h_SL1L463->SetBinContent(54,379.7546); h_SL1L463->SetBinContent(55,0.4044245); h_SL1L463->SetBinContent(56,358.7246); h_SL1L463->SetBinContent(57,318.6866); h_SL1L463->SetBinContent(58,330.8193); h_SL1L463->SetBinContent(59,283.5016); h_SL1L463->SetMaximum(77453.94); 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 4995"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }