From a4095b2ca2bb2e4235c28212ed7a6a6e337d4d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Jacazio?= Date: Sun, 20 Sep 2026 08:43:34 +0200 Subject: [PATCH] Fix logging for unhandled PDG code --- PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx b/PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx index 593e5838f84..87b437c192b 100644 --- a/PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx +++ b/PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx @@ -1995,8 +1995,11 @@ struct HadronNucleiCorrelation { case -o2::constants::physics::Pdg::kDeuteron: registry.fill(HIST("hGen_EtaPhiPt_Deuteron"), particle.eta(), particle.phi(), -1. * particle.pt()); break; + case PDG_t::kNeutron: + case -PDG_t::kNeutron: + break; default: - LOG(fatal) << "Unhandled PDG code, should not happen, check the code!" << particle.pdgCode(); + LOG(fatal) << "Unhandled PDG code, should not happen, check the code! " << particle.pdgCode(); break; } }