void RatesPerCell_Removing_noisy_cells_run_6842_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:08:02 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10996.59,67.5,98969.29); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6842",60,0,60); h_SL1L160->SetBinContent(1,362.2449); h_SL1L160->SetBinContent(2,306.1224); h_SL1L160->SetBinContent(3,367.3469); h_SL1L160->SetBinContent(4,357.1429); h_SL1L160->SetBinContent(5,413.2653); h_SL1L160->SetBinContent(6,392.8571); h_SL1L160->SetBinContent(7,367.3469); h_SL1L160->SetBinContent(8,469.3878); h_SL1L160->SetBinContent(9,413.2653); h_SL1L160->SetBinContent(10,551.0204); h_SL1L160->SetBinContent(11,505.1021); h_SL1L160->SetBinContent(12,765.3061); h_SL1L160->SetBinContent(13,709.1837); h_SL1L160->SetBinContent(14,857.1428); h_SL1L160->SetBinContent(15,545.9183); h_SL1L160->SetBinContent(16,811.2245); h_SL1L160->SetBinContent(17,811.2245); h_SL1L160->SetBinContent(18,984.6938); h_SL1L160->SetBinContent(19,1183.673); h_SL1L160->SetBinContent(20,1357.143); h_SL1L160->SetBinContent(21,1290.816); h_SL1L160->SetBinContent(22,1607.143); h_SL1L160->SetBinContent(23,1540.816); h_SL1L160->SetBinContent(24,1775.51); h_SL1L160->SetBinContent(25,1816.327); h_SL1L160->SetBinContent(26,1989.796); h_SL1L160->SetBinContent(27,1984.694); h_SL1L160->SetBinContent(28,2704.082); h_SL1L160->SetBinContent(29,2734.694); h_SL1L160->SetBinContent(30,3255.102); h_SL1L160->SetBinContent(31,4341.837); h_SL1L160->SetBinContent(32,7622.449); h_SL1L160->SetBinContent(33,32030.61); h_SL1L160->SetBinContent(34,47260.2); h_SL1L160->SetBinContent(35,52637.75); h_SL1L160->SetBinContent(36,55040.82); h_SL1L160->SetBinContent(37,59127.55); h_SL1L160->SetBinContent(38,53739.8); h_SL1L160->SetBinContent(39,34346.94); h_SL1L160->SetBinContent(40,8035.714); h_SL1L160->SetBinContent(41,4688.775); h_SL1L160->SetBinContent(42,4051.02); h_SL1L160->SetBinContent(43,3479.592); h_SL1L160->SetBinContent(44,3142.857); h_SL1L160->SetBinContent(45,2882.653); h_SL1L160->SetBinContent(46,2321.428); h_SL1L160->SetBinContent(47,2193.877); h_SL1L160->SetBinContent(48,2224.49); h_SL1L160->SetBinContent(49,2188.775); h_SL1L160->SetBinContent(50,1903.061); h_SL1L160->SetBinContent(51,1775.51); h_SL1L160->SetBinContent(52,1479.592); h_SL1L160->SetBinContent(53,1561.224); h_SL1L160->SetBinContent(54,1290.816); h_SL1L160->SetBinContent(55,1311.224); h_SL1L160->SetBinContent(56,1357.143); h_SL1L160->SetBinContent(57,1306.122); h_SL1L160->SetBinContent(58,1321.429); h_SL1L160->SetBinContent(59,1372.449); h_SL1L160->SetMaximum(87972.7); 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,229.5918); h_SL1L261->SetBinContent(2,301.0204); h_SL1L261->SetBinContent(3,229.5918); h_SL1L261->SetBinContent(4,331.6327); h_SL1L261->SetBinContent(5,295.9184); h_SL1L261->SetBinContent(6,362.2449); h_SL1L261->SetBinContent(7,397.9592); h_SL1L261->SetBinContent(8,397.9592); h_SL1L261->SetBinContent(9,418.3673); h_SL1L261->SetBinContent(10,408.1633); h_SL1L261->SetBinContent(11,566.3265); h_SL1L261->SetBinContent(12,602.0408); h_SL1L261->SetBinContent(13,678.5714); h_SL1L261->SetBinContent(14,806.1224); h_SL1L261->SetBinContent(15,709.1837); h_SL1L261->SetBinContent(16,668.3674); h_SL1L261->SetBinContent(17,790.8163); h_SL1L261->SetBinContent(18,938.7755); h_SL1L261->SetBinContent(19,1163.265); h_SL1L261->SetBinContent(20,1285.714); h_SL1L261->SetBinContent(21,1377.551); h_SL1L261->SetBinContent(22,1408.163); h_SL1L261->SetBinContent(23,1683.673); h_SL1L261->SetBinContent(24,1744.898); h_SL1L261->SetBinContent(25,2066.326); h_SL1L261->SetBinContent(26,1862.245); h_SL1L261->SetBinContent(27,1989.796); h_SL1L261->SetBinContent(28,2377.551); h_SL1L261->SetBinContent(29,2714.286); h_SL1L261->SetBinContent(30,3321.428); h_SL1L261->SetBinContent(31,3867.347); h_SL1L261->SetBinContent(32,6704.082); h_SL1L261->SetBinContent(33,18260.2); h_SL1L261->SetBinContent(34,49193.88); h_SL1L261->SetBinContent(35,56683.67); h_SL1L261->SetBinContent(36,61576.53); h_SL1L261->SetBinContent(37,65734.7); h_SL1L261->SetBinContent(38,65346.94); h_SL1L261->SetBinContent(39,53887.75); h_SL1L261->SetBinContent(40,18428.57); h_SL1L261->SetBinContent(41,7551.021); h_SL1L261->SetBinContent(42,4596.939); h_SL1L261->SetBinContent(43,4142.857); h_SL1L261->SetBinContent(44,3408.163); h_SL1L261->SetBinContent(45,3178.571); h_SL1L261->SetBinContent(46,2908.163); h_SL1L261->SetBinContent(47,2571.428); h_SL1L261->SetBinContent(48,2357.143); h_SL1L261->SetBinContent(49,2301.021); h_SL1L261->SetBinContent(50,2005.102); h_SL1L261->SetBinContent(51,2025.51); h_SL1L261->SetBinContent(52,1770.408); h_SL1L261->SetBinContent(53,1760.204); h_SL1L261->SetBinContent(54,1540.816); h_SL1L261->SetBinContent(55,1413.265); h_SL1L261->SetBinContent(56,1576.531); h_SL1L261->SetBinContent(57,1438.776); h_SL1L261->SetBinContent(58,1270.408); h_SL1L261->SetBinContent(59,1362.245); h_SL1L261->SetMaximum(76498.47); 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,270.4082); h_SL1L362->SetBinContent(2,244.8979); h_SL1L362->SetBinContent(3,275.5102); h_SL1L362->SetBinContent(4,316.3265); h_SL1L362->SetBinContent(5,331.6327); h_SL1L362->SetBinContent(6,397.9592); h_SL1L362->SetBinContent(7,372.449); h_SL1L362->SetBinContent(8,413.2653); h_SL1L362->SetBinContent(9,382.653); h_SL1L362->SetBinContent(10,438.7755); h_SL1L362->SetBinContent(11,494.8979); h_SL1L362->SetBinContent(12,551.0204); h_SL1L362->SetBinContent(13,637.7551); h_SL1L362->SetBinContent(14,801.0204); h_SL1L362->SetBinContent(15,607.1428); h_SL1L362->SetBinContent(16,719.3878); h_SL1L362->SetBinContent(17,846.9388); h_SL1L362->SetBinContent(18,857.1428); h_SL1L362->SetBinContent(19,1127.551); h_SL1L362->SetBinContent(20,1234.694); h_SL1L362->SetBinContent(21,1224.49); h_SL1L362->SetBinContent(22,1438.776); h_SL1L362->SetBinContent(23,1418.367); h_SL1L362->SetBinContent(24,1760.204); h_SL1L362->SetBinContent(25,1780.612); h_SL1L362->SetBinContent(26,1923.469); h_SL1L362->SetBinContent(27,2127.551); h_SL1L362->SetBinContent(28,2637.755); h_SL1L362->SetBinContent(29,2821.428); h_SL1L362->SetBinContent(30,3382.653); h_SL1L362->SetBinContent(31,4933.673); h_SL1L362->SetBinContent(32,8724.489); h_SL1L362->SetBinContent(33,36867.35); h_SL1L362->SetBinContent(34,53658.16); h_SL1L362->SetBinContent(35,60051.02); h_SL1L362->SetBinContent(36,63887.75); h_SL1L362->SetBinContent(37,66520.41); h_SL1L362->SetBinContent(38,60795.92); h_SL1L362->SetBinContent(39,38392.86); h_SL1L362->SetBinContent(40,9137.755); h_SL1L362->SetBinContent(41,5214.286); h_SL1L362->SetBinContent(42,4306.123); h_SL1L362->SetBinContent(43,3454.082); h_SL1L362->SetBinContent(44,3035.714); h_SL1L362->SetBinContent(45,2938.775); h_SL1L362->SetBinContent(46,2525.51); h_SL1L362->SetBinContent(47,2464.286); h_SL1L362->SetBinContent(48,2270.408); h_SL1L362->SetBinContent(49,2076.531); h_SL1L362->SetBinContent(50,1964.286); h_SL1L362->SetBinContent(51,1913.265); h_SL1L362->SetBinContent(52,1622.449); h_SL1L362->SetBinContent(53,1637.755); h_SL1L362->SetBinContent(54,1372.449); h_SL1L362->SetBinContent(55,1387.755); h_SL1L362->SetBinContent(56,1321.429); h_SL1L362->SetBinContent(57,1311.224); h_SL1L362->SetBinContent(58,1204.082); h_SL1L362->SetBinContent(59,1250); h_SL1L362->SetMaximum(76498.47); 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,244.8979); h_SL1L463->SetBinContent(3,188.7755); h_SL1L463->SetBinContent(4,270.4082); h_SL1L463->SetBinContent(5,198.9796); h_SL1L463->SetBinContent(6,331.6327); h_SL1L463->SetBinContent(7,346.9388); h_SL1L463->SetBinContent(8,265.3061); h_SL1L463->SetBinContent(9,326.5306); h_SL1L463->SetBinContent(10,326.5306); h_SL1L463->SetBinContent(11,357.1429); h_SL1L463->SetBinContent(12,489.7959); h_SL1L463->SetBinContent(13,535.7143); h_SL1L463->SetBinContent(14,668.3674); h_SL1L463->SetBinContent(15,632.6531); h_SL1L463->SetBinContent(16,571.4286); h_SL1L463->SetBinContent(17,647.9592); h_SL1L463->SetBinContent(18,709.1837); h_SL1L463->SetBinContent(19,938.7755); h_SL1L463->SetBinContent(20,1015.306); h_SL1L463->SetBinContent(21,1010.204); h_SL1L463->SetBinContent(22,1066.327); h_SL1L463->SetBinContent(23,1290.816); h_SL1L463->SetBinContent(24,1392.857); h_SL1L463->SetBinContent(25,1637.755); h_SL1L463->SetBinContent(26,1647.959); h_SL1L463->SetBinContent(27,1770.408); h_SL1L463->SetBinContent(28,2173.469); h_SL1L463->SetBinContent(29,2341.837); h_SL1L463->SetBinContent(30,2744.898); h_SL1L463->SetBinContent(31,3464.286); h_SL1L463->SetBinContent(32,5673.469); h_SL1L463->SetBinContent(33,15826.53); h_SL1L463->SetBinContent(34,45270.41); h_SL1L463->SetBinContent(35,52566.32); h_SL1L463->SetBinContent(36,57183.67); h_SL1L463->SetBinContent(37,59448.98); h_SL1L463->SetBinContent(38,59877.55); h_SL1L463->SetBinContent(39,49877.55); h_SL1L463->SetBinContent(40,16479.59); h_SL1L463->SetBinContent(41,6551.021); h_SL1L463->SetBinContent(42,3938.775); h_SL1L463->SetBinContent(43,3668.367); h_SL1L463->SetBinContent(44,2913.265); h_SL1L463->SetBinContent(45,2653.061); h_SL1L463->SetBinContent(46,2377.551); h_SL1L463->SetBinContent(47,2198.979); h_SL1L463->SetBinContent(48,1969.388); h_SL1L463->SetBinContent(49,1826.531); h_SL1L463->SetBinContent(50,1714.286); h_SL1L463->SetBinContent(51,1602.041); h_SL1L463->SetBinContent(52,1551.02); h_SL1L463->SetBinContent(53,1382.653); h_SL1L463->SetBinContent(54,1234.694); h_SL1L463->SetBinContent(56,1219.388); h_SL1L463->SetBinContent(57,1198.98); h_SL1L463->SetBinContent(58,1030.612); h_SL1L463->SetBinContent(59,1198.98); h_SL1L463->SetMaximum(76498.47); 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 6842"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }