From 98a1b883f63b1ab11a9bc04b097da6af674a55ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Jos=C3=A9?= <52935244+lucasjsilva@users.noreply.github.com> Date: Wed, 1 Apr 2026 17:38:13 +0200 Subject: [PATCH] Add selection of reconstructed events that have an associated generated event --- PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx b/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx index a0ef2af5aa0..62f5e93d830 100644 --- a/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx @@ -357,6 +357,9 @@ struct StudyPnch { if (RecCol.globalIndex() != mcCollision.bestCollisionIndex()) { continue; } + if (!RecCol.has_mcCollision()) { + continue; + } auto recTracksPart = RecTracks.sliceBy(perCollision, RecCol.globalIndex()); auto multrec = countNTracksMcCol(recTracksPart, RecCol); if (multrec > 0) {