From 03b792b2a9936aec41c7d4fd9a87bbd4984e8db4 Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Tue, 17 Sep 2024 09:05:06 +0200 Subject: [PATCH] Final adjustments --- PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx b/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx index b0dd8978768..cf0f087a093 100644 --- a/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx +++ b/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx @@ -1466,6 +1466,8 @@ struct correlateStrangeness { bool bestCollisionSel8 = false; bool bestCollisionINELgtZERO = false; int biggestNContribs = -1; + uint32_t bestCollisionTriggerPresenceMap = 0; + for (auto& recCollision : recCollisions) { if (biggestNContribs < recCollision.numContrib()) { biggestNContribs = recCollision.numContrib(); @@ -1473,8 +1475,15 @@ struct correlateStrangeness { bestCollisionSel8 = recCollision.sel8(); bestCollisionVtxZ = recCollision.posZ(); bestCollisionINELgtZERO = recCollision.isInelGt0(); + bestCollisionTriggerPresenceMap = triggerPresenceMap[recCollision.globalIndex()]; } } + // ________________________________________________ + // skip if desired trigger not found + if (doprocessSelectEventWithTrigger && !bitcheck(bestCollisionTriggerPresenceMap, triggerBinToSelect)) { + return; + } + if (doGenEventSelection) { if (!bestCollisionSel8) return;