Skip to content

TPC track reader: do not accumulate MC labels over entries - #15910

Merged
sawenzel merged 1 commit into
AliceO2Group:devfrom
matthias-kleiner:tpc-trackreader-mclabels
Oct 8, 2026
Merged

sawenzel merged 1 commit into
AliceO2Group:devfrom
matthias-kleiner:tpc-trackreader-mclabels

Conversation

@matthias-kleiner

Copy link
Copy Markdown
Contributor

With one entry per call, TrackReader::accumulate swapped the tracks and cluster references of the new entry in, but appended its MC labels to mMCTruthOut, which is never cleared. From the second tree entry on, the consumers therefore got the labels of the first entry for the tracks of the current one (label i = label of track i of entry 0). Swap the labels as well.

Only visible when a tpctracks.root holds more than one TF (e.g. merged MC files); O2DPG writes one TF per file.

With one entry per call, TrackReader::accumulate swapped the tracks and
cluster references of the new entry in, but appended its MC labels to
mMCTruthOut, which is never cleared. From the second tree entry on, the
consumers therefore got the labels of the first entry for the tracks of
the current one (label i = label of track i of entry 0). Swap the labels
as well.

Only visible when a tpctracks.root holds more than one TF (e.g. merged
MC files); O2DPG writes one TF per file.

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

@shahor02 shahor02 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that the merge MC trees will not be supported by the MCKinematicsReader

@sawenzel
sawenzel merged commit 0f0e233 into AliceO2Group:dev Oct 8, 2026
11 of 12 checks passed
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