Skip to content

Commit 9f82e6c

Browse files
authored
[PWGLF] Add selection of reconstructed events that have an associated generat… (#15612)
1 parent 29864e6 commit 9f82e6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ struct StudyPnch {
357357
if (RecCol.globalIndex() != mcCollision.bestCollisionIndex()) {
358358
continue;
359359
}
360+
if (!RecCol.has_mcCollision()) {
361+
continue;
362+
}
360363
auto recTracksPart = RecTracks.sliceBy(perCollision, RecCol.globalIndex());
361364
auto multrec = countNTracksMcCol(recTracksPart, RecCol);
362365
if (multrec > 0) {

0 commit comments

Comments
 (0)