Skip to content

Wrap the QED event IDs at the number of QED events available - #15715

Merged
sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:qed-roundrobin-event-ids
Aug 24, 2026
Merged

Wrap the QED event IDs at the number of QED events available#15715
sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:qed-roundrobin-event-ids

Conversation

@sawenzel

Copy link
Copy Markdown
Collaborator

This fixes a problem in the QED round robin of the collision context and adds a guard in the MCKinematicsReader.

  • o2-steer-colcontexttool passed the number of MC events asked to fillQED, so the round robin never wrapped and the QED event parts named events which are not in the QED kinematics.
  • The number of events available is used now, with a warning when it is missing or larger than an MCEventLabel can encode.
  • MCKinematicsReader read past the end of its header, track and track-reference vectors for such an event ID. It throws std::out_of_range now, and the getters returning a pointer or a span report the miss instead.
  • The range test shares the branch of the lazy load and the message is built out of line, so the accessors keep their fast path.

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

This fixes a problem in the QED round robin of the collision context and adds a
guard in the MCKinematicsReader.

- o2-steer-colcontexttool passed the number of MC events asked to fillQED, so the
  round robin never wrapped and the QED event parts named events which are not in
  the QED kinematics.
- The number of events available is used now, with a warning when it is missing
  or larger than an MCEventLabel can encode.
- MCKinematicsReader read past the end of its header, track and track-reference
  vectors for such an event ID. It throws std::out_of_range now, and the getters
  returning a pointer or a span report the miss instead.
- The range test shares the branch of the lazy load and the message is built out
  of line, so the accessors keep their fast path.

https://its.cern.ch/jira/browse/O2-7132
@sawenzel
sawenzel requested a review from shahor02 as a code owner August 24, 2026 11:59
@sawenzel
sawenzel merged commit 039b162 into AliceO2Group:dev Aug 24, 2026
11 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.

2 participants