Skip to content

[PWGLF] strangederivedbuilder: StraCollisionLink for other tasks of a derivation; fix of the RCT requirement - #18970

Draft
scannito wants to merge 2 commits into
AliceO2Group:masterfrom
scannito:stra-collision-refs
Draft

scannito wants to merge 2 commits into
AliceO2Group:masterfrom
scannito:stra-collision-refs

Conversation

@scannito

Copy link
Copy Markdown
Contributor
  • New table aod::StraCollisionLink (AOD/STRACOLLLINK), produced by strangederivedbuilder: one row per AO2D
    collision, joinable with aod::Collisions, holding its row in StraCollisions (straCollisionId()), or -1 if
    the collision was not written. It lets another task of the same derivation train index its own tables to
    StraCollisions without replicating the builder's acceptance logic. Not meant to be saved.
  • Fix of the RCT requirement of the strangeness event preselection (strangederivedbuilder.cxx,
    strangenessBuilderModule.h): the condition tested !cfgApplyRCTrequirement, so with the requirement on the
    flags were never checked, and with it off and fillOnlySelectedCollisions on the uninitialised
    RCTFlagsChecker threw. Introduced in [Common,PWGLF] Add event preselections in strangeness derived data producer #17066.

Tested on local data and MC AO2Ds, before and after: the 91 tables of strangederivedbuilder and
propagationservice identical (data and MC, fillEmptyCollisions on and off, fillOnlySelectedCollisions + RCT);
the new table one row per collision, its indices distinct and consistent with StraCollisions; the throw gone.

🤖 Generated with Claude Code

scannito and others added 2 commits November 27, 2026 14:00
…ision for other tasks

A table joinable with aod::Collisions, StraCollisionLink, holding for each
AO2D collision its row in StraCollisions (straCollisionId), -1 if the
collision was not written (not selected, or no V0/cascade with
fillEmptyCollisions off). It is filled from products.strangeColl.lastIndex()
where StraCollisions is written, and emitted with the other references.

For a builder running in the same derivation train that writes tables of its
own (e.g. tracks) and must point them to the same collisions as the
strangeness tables: the mapping exists only inside strangederivedbuilder, and
rebuilding it elsewhere would mean replicating its acceptance logic. One int
per collision; not meant to be saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…requested

isCollisionAccepted, in strangederivedbuilder and in the strangeness builder
module of the propagation service, tested !cfgApplyRCTrequirement, while the
RCTFlagsChecker is initialised only when cfgApplyRCTrequirement is true. So:
- requirement on: the condition is always false, the RCT flags are never
  checked;
- requirement off, with fillOnlySelectedCollisions: the uninitialised checker
  is called and throws (empty RCTSelectionFlags mask) at the first collision
  passing the other selections.
Introduced in 90ebdcc (AliceO2Group#17066).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 261 warnings, 🔕 0 disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant