diff --git a/PWGLF/Tasks/Strangeness/cascadecorrelations.cxx b/PWGLF/Tasks/Strangeness/cascadecorrelations.cxx index 56354e1502f..e45c18eed51 100644 --- a/PWGLF/Tasks/Strangeness/cascadecorrelations.cxx +++ b/PWGLF/Tasks/Strangeness/cascadecorrelations.cxx @@ -505,7 +505,7 @@ struct CascadeSelector { void processGenMC(aod::McCollision const& mcCollision, soa::SmallGroups> const& collisions, aod::McParticles const& mcParticles) { // evsel - if (INEL < 0 || pwglf::isINELgtNmc(mcParticles, INEL, pdgDB)) + if (INEL >= 0 && !pwglf::isINELgtNmc(mcParticles, INEL, pdgDB)) return; if (std::abs(mcCollision.posZ()) > maxVertexZ) return;