Skip to content

Commit 3b333c7

Browse files
committed
Fix process MC reco: remove cascades block in particle loop
1 parent 9f44006 commit 3b333c7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎PWGLF/Tasks/Strangeness/strangenessInJetsIons.cxx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3308,7 +3308,9 @@ struct StrangenessInJetsIons {
33083308
continue;
33093309

33103310
int absPdg = std::abs(particle.pdgCode());
3311-
if (absPdg != kK0Short && absPdg != kLambda0)
3311+
const bool isSelectedV0 = (absPdg == kK0Short || absPdg == kLambda0) && particleOfInterestDict[ParticleOfInterest::kV0Particles];
3312+
const bool isSelectedCascade = (absPdg == kXiMinus || absPdg == kOmegaMinus) && particleOfInterestDict[ParticleOfInterest::kCascades];
3313+
if (!isSelectedV0 && !isSelectedCascade)
33123314
continue;
33133315

33143316
TVector3 momVec(particle.px(), particle.py(), particle.pz());

0 commit comments

Comments
 (0)