Skip to content

Commit

Permalink
Final adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
ddobrigk committed Sep 17, 2024
1 parent 5fcb782 commit 03b792b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1466,15 +1466,24 @@ 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();
bestCollisionFT0Mpercentile = recCollision.centFT0M();
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;
Expand Down

0 comments on commit 03b792b

Please sign in to comment.