Skip to content

Commit 17f4bba

Browse files
authored
[PWGLF] Fix case for neutron in histogram filling (#17977)
1 parent ae259aa commit 17f4bba

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,8 +1995,11 @@ struct HadronNucleiCorrelation {
19951995
case -o2::constants::physics::Pdg::kDeuteron:
19961996
registry.fill(HIST("hGen_EtaPhiPt_Deuteron"), particle.eta(), particle.phi(), -1. * particle.pt());
19971997
break;
1998+
case PDG_t::kNeutron:
1999+
case -PDG_t::kNeutron:
2000+
break;
19982001
default:
1999-
LOG(fatal) << "Unhandled PDG code, should not happen, check the code!" << particle.pdgCode();
2002+
LOG(fatal) << "Unhandled PDG code, should not happen, check the code! " << particle.pdgCode();
20002003
break;
20012004
}
20022005
}

0 commit comments

Comments
 (0)