Skip to content

Commit 6c64926

Browse files
authored
Fix strange decay counter
1 parent 3d3c880 commit 6c64926

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ struct StudyPnch {
345345
mcRecIDs.push_back(particle.globalIndex());
346346
if (particle.has_mothers()) {
347347
auto mcMother = particle.template mothers_as<aod::McParticles>().front();
348-
if (mcMother.pdgCode() == PDG_t::kK0Short || std::abs(mcMother.pdgCode() == PDG_t::kLambda0)) {
348+
if (mcMother.pdgCode() == PDG_t::kK0Short || std::abs(mcMother.pdgCode()) == PDG_t::kLambda0) {
349349
nTrkStrange++;
350350
}
351351
}

0 commit comments

Comments
 (0)