Skip to content

Write tracked V0s, cascades and 3-bodies in collision order - #15838

Merged
sawenzel merged 2 commits into
AliceO2Group:devfrom
sawenzel:swenzel/aod-tracked-strangeness-by-collision
Sep 24, 2026
Merged

sawenzel merged 2 commits into
AliceO2Group:devfrom
sawenzel:swenzel/aod-tracked-strangeness-by-collision

Conversation

@sawenzel

Copy link
Copy Markdown
Collaborator

This fixes the row order of the tracked strangeness tables written by the AOD producer.

  • The tracked V0, cascade and 3-body rows were written in strangeness-tracker order, which is not always collision order.
  • Analyses slicing them by collision then abort with "TraCascIndices index fIndexCollisions is not sorted".
  • The rows are now written in the per-collision order already built in prepareStrangenessTracking.
  • The track index of a row no longer comes from a running counter, so a skipped strange track cannot shift the rows after it.

Fixes https://its.cern.ch/jira/browse/O2-7197

This fixes the row order of the tracked strangeness tables written by the AOD producer.

- The tracked V0, cascade and 3-body rows were written in strangeness-tracker order, which is not always collision order.
- Analyses slicing them by collision then abort with "TraCascIndices index fIndexCollisions is not sorted".
- The rows are now written in the per-collision order already built in prepareStrangenessTracking.
- The track index of a row no longer comes from a running counter, so a skipped strange track cannot shift the rows after it.

https://its.cern.ch/jira/browse/O2-7197

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sawenzel
sawenzel requested a review from a team as a code owner September 24, 2026 14:18
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 29cf278 at 2026-09-24 16:20:

No log files found

Full log here.

@alcaliva
alcaliva enabled auto-merge (squash) September 24, 2026 15:05
alcaliva
alcaliva previously approved these changes Sep 24, 2026
This makes the order of the tracked strangeness tables within a collision the same in MC as in data.

- SVertexer sorted the strange tracks by decay only when running with more than one thread; MC reconstruction runs it with one.
- The strange tracks are now sorted by decay in all cases.
- The AOD producer groups them by collision with a stable sort, so the decay order within a collision is kept.

https://its.cern.ch/jira/browse/O2-7197

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

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for d526624 at 2026-09-24 18:32:

No log files found

Full log here.

@sawenzel
sawenzel disabled auto-merge September 24, 2026 20:40
@sawenzel
sawenzel merged commit d482315 into AliceO2Group:dev Sep 24, 2026
8 of 11 checks passed
@sawenzel
sawenzel deleted the swenzel/aod-tracked-strangeness-by-collision branch September 24, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants