Skip to content

Commit 7af6639

Browse files
authored
[PWGJE] add particle selection to trigger track selections at MC level for se… (#15179)
1 parent 982dd8b commit 7af6639

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

PWGJE/TableProducer/derivedDataSelector.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,14 @@ struct JetDerivedDataSelector {
369369
continue;
370370
}
371371
}
372+
if constexpr (std::is_same_v<std::decay_t<T>, aod::JMcParticles>) {
373+
if (!selectionObject.isPhysicalPrimary()) {
374+
continue;
375+
}
376+
if (selectionObject.pt() < config.trackPtSelectionMin || std::abs(selectionObject.eta()) > config.trackEtaSelectionMax) {
377+
continue;
378+
}
379+
}
372380
if (selectionObject.pt() >= selectionObjectPtMin) {
373381
isTriggerObject = true;
374382
}

0 commit comments

Comments
 (0)