From b6b1cbd73c840b374a5212d4f70b55e3ca4527c9 Mon Sep 17 00:00:00 2001 From: rspijkers Date: Mon, 6 Oct 2025 16:50:42 +0200 Subject: [PATCH] fix INEL evsel --- PWGLF/Tasks/Strangeness/cascadecorrelations.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;