Skip to content

Commit bed4674

Browse files
added a missing std::abs in checking the pdgCode
1 parent 41d60bb commit bed4674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGLF/TableProducer/QC/nucleiQC.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ struct nucleiQC {
409409
if (track.has_mcParticle()) {
410410
const auto& particle = track.mcParticle();
411411
if (cfgDoCheckPdgCode) {
412-
if (particle.pdgCode() != nuclei::pdgCodes[kSpeciesRt])
412+
if (std::abs(particle.pdgCode()) != nuclei::pdgCodes[kSpeciesRt])
413413
return;
414414
}
415415
if ((particle.y() - cfgRapidityCenterMass) < cfgRapidityMin || (particle.y() - cfgRapidityCenterMass) > cfgRapidityMax) {

0 commit comments

Comments
 (0)