Skip to content

Fix wrong field-free media assignment in the beam pipe - #15685

Closed
sawenzel wants to merge 1 commit into
AliceO2Group:devfrom
sawenzel:fix-nf-media-in-field
Closed

Fix wrong field-free media assignment in the beam pipe#15685
sawenzel wants to merge 1 commit into
AliceO2Group:devfrom
sawenzel:fix-nf-media-in-field

Conversation

@sawenzel

Copy link
Copy Markdown
Collaborator

This fixes a problem in the beam pipe media assignment, diagnosed with the o2-sim-geometry-doctor tool (#15683). 22 volumes of the RB24 warm module, its ion pump and its B1 bellow, and the air shell at r = 79-80 cm, carried media labelled out-of-field, whereas their placements at z = 400-490 cm are inside the 4.2-4.6 kGauss solenoid fringe field. Geant4 honours the label and moved particles through these volumes on straight lines, about 171000 steps per min-bias event.

This is now fixed by assigning the in-field counterpart media at the construction site of these volumes. After the change no step in a field-free volume sees a non-zero field. The same volumes are also placed far down the beam line where the field really is zero. These placements now integrate the field too, which is correct but slower. A follow-up gives them cloned volumes of their own and restores the shortcut.

Related tickets:
https://its.cern.ch/jira/browse/O2-174
https://its.cern.ch/jira/browse/O2-175

This fixes a problem in the beam pipe media assignment, diagnosed with the
o2-sim-geometry-doctor tool (AliceO2Group#15683).
22 volumes of the RB24 warm module, its ion pump and its B1 bellow, and the
air shell at r = 79-80 cm, carried media labelled out-of-field, whereas their
placements at z = 400-490 cm are inside the 4.2-4.6 kGauss solenoid fringe
field. Geant4 honours the label and moved particles through these volumes on
straight lines, about 171000 steps per min-bias event.

This is now fixed by assigning the in-field counterpart media at the
construction site of these volumes. After the change no step in a field-free
volume sees a non-zero field. The same volumes are also placed far down the
beam line where the field really is zero. These placements now integrate the
field too, which is correct but slower. A follow-up gives them cloned volumes
of their own and restores the shortcut.

Related tickets:
https://its.cern.ch/jira/browse/O2-174
https://its.cern.ch/jira/browse/O2-175

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0178JHAQ2biaX5ac9ThppBXi
@sawenzel
sawenzel requested a review from amorsch August 17, 2026 12:51
@sawenzel
sawenzel force-pushed the fix-nf-media-in-field branch from 33fb9e2 to 478932f Compare August 17, 2026 12:52
@amorsch

amorsch commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

This was probably done intentionally, but I'm also not against fixing it. The field component transverse to the particle direction is much smaller than 0.5 T and has little effect on downstream detectors.

@sawenzel

Copy link
Copy Markdown
Collaborator Author

Thanks @amorsch : If there is a good reason for this (faster sim?) we can of course keep it. I could benchmark the difference it makes but maybe for consistency reasons it could be worth the simplification.

@amorsch

amorsch commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

I agree.
Probably more important for the pipe geometry used with FOCAL.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 478932f at 2026-08-17 22:02:

## sw/BUILD/O2Physics-latest/log
c++: fatal error: Killed signal terminated program cc1plus
ninja: build stopped: subcommand failed.

Full log here.

@sawenzel

Copy link
Copy Markdown
Collaborator Author

putting on hold (awaiting further benchmark studies + release validation)

@sawenzel sawenzel closed this Aug 17, 2026
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