diff --git a/ALICE3/TableProducer/alice3strangenessFinder.cxx b/ALICE3/TableProducer/alice3strangenessFinder.cxx index 9743faf88b4..50683b8ccec 100644 --- a/ALICE3/TableProducer/alice3strangenessFinder.cxx +++ b/ALICE3/TableProducer/alice3strangenessFinder.cxx @@ -607,11 +607,11 @@ struct Alice3strangenessFinder { } histos.fill(HIST("hCascadeBuilding"), 1.0); - if (inLambdaMassWindow && bachTrack.sign() > 0) { + if (!inLambdaMassWindow && bachTrack.sign() < 0) { continue; // only consider lambda and neg bach track } - if (inAntiLambdaMassWindow && bachTrack.sign() < 0) { + if (!inAntiLambdaMassWindow && bachTrack.sign() > 0) { continue; // only consider anti-lambda and pos bach track }