Skip to content

Fix minor reproducibility issues in TPC hit creation - #15846

Open
sawenzel wants to merge 2 commits into
AliceO2Group:devfrom
sawenzel:swenzel/tpc-hitgroup-reset
Open

sawenzel wants to merge 2 commits into
AliceO2Group:devfrom
sawenzel:swenzel/tpc-hitgroup-reset

Conversation

@sawenzel

Copy link
Copy Markdown
Collaborator

Fixes a small unitialized variable problem and achieves 100% hit reproducibility between any 2 runs of o2-sim.
Fix is by moving from a static var to a class member.

sawenzel and others added 2 commits September 25, 2026 11:12
This fixes TPC hits in parallel o2-sim depending on which events a worker simulated before.

- The hit-grouping state in tpc::Detector::ProcessHits was kept in function-local statics and carried over into the next event.
- In parallel mode the next event is any chunk, so the number of empty hit groups varied from run to run.
- The state is now a set of detector members that EndOfEvent resets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This fixes the electron count that the TPC detector prints at the end of a run.

- The charge of the buffered hit was read after it had been reset to -1.
- It is now added before the reset.

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

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 641b890 at 2026-09-25 11:32:

No log files found

Full log here.

This branch has not been deployed

No deployments
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