Skip to content

MCH: add the gas volumes to the parallel world - #16231

Merged
sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:swenzel/mch-parallel-world
Nov 29, 2026
Merged

sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:swenzel/mch-parallel-world

Conversation

@sawenzel

@sawenzel sawenzel commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

This PR adds the MCH gas volumes to the parallel world, ensuring that slats moved into their support panels by alignment retain their hits. Without it, the result of an overlap depends on the navigator: TGeo gives priority to the panel and can lose entire detection elements, while VecGeom gives priority to the gas.

The issue was identified by comparing TGeo and VecGeom navigation on anchored GRID productions (O2-7358). It is not limited to a single run: among the 20 MCH/Calib/Align objects currently in CCDB, 13 make at least one slat gas volume unreachable with TGeo, and 4 more cause partial hit losses.

The PR adds the 626 MCH gas placements obtained from geo::getSensitiveVolumes() to the parallel world. This gives the gas priority over the regular geometry for both navigators. For run 536683, shooting 2000 muons at the affected slats recovers the following hits:

DE TGeo, before TGeo, with PR VecGeom, with PR
600 0 1688 1682
612 0 1153 1153
500 (control) 1811 1811 1811

The recovered hits agree with VecGeom in their entry points for 99 % of the hits, and the median energy deposit per hit agrees within statistical uncertainties. On the ideal geometry, hit counts are unchanged for both navigators. With the parallel world off (the default), the hits are byte-identical to those without this PR. Adding the cathode and insulator layers was tested but did not recover additional hits, so they are not included.

Performance. In pp, adding MCH to the ITS parallel world increases transport time by about 5 % with TGeo and at most 1 % with VecGeom (within the measurement noise). The TGeo overhead comes from ROOT's safety cache: the parallel-world voxel grid spans all its nodes, and MCH extends its bounding box to z = -14.5 m. This produces large voxels around the ITS containing thousands of sensors. A small ROOT-side change to fall back to the BVH in such voxels reduces the overhead to about 1.5 %; this improvement will be proposed separately to ROOT.

Limitations. The parallel world remains opt-in through GeometryManagerParam.useParallelWorld. DE 825 is excluded because its placement uses a reflection matrix rather than a rotation (likely a typo in the MCH geometry description). Reflected placements are not handled correctly by either navigator in the parallel world: under TGeo, tracks stall at the boundary with zero-length steps, and building the VecGeom parallel world fails because the reflected placement matches no VecGeom path. The affected gas volume is therefore skipped with a warning; all other MCH gas volumes are included. The underlying geometry issue should be corrected in MCH.

Only the gas volumes take priority in overlaps; the material around them still depends on the navigator. The overlaps themselves remain and should ultimately be fixed in the alignment objects.

Assisted by Claude Code.

This adds the MCH gas volumes to the parallel world, so that a slat
which the alignment moves into its support panel keeps its hits.

- MCH::Detector now implements fillParallelWorld with the volumes of
  geo::getSensitiveVolumes().
- The detection elements are assemblies, so the gas volumes inside
  them are registered one by one.
- A sensitive volume that is not registered is reported as an error.
- Mirrored placements are left out with a warning that names the
  detection element, because a mirrored node in the parallel world
  stops tracks at its boundary. Today this concerns DE 825.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sawenzel
sawenzel requested review from a team and shahor02 as code owners November 28, 2026 11:24
@sawenzel
sawenzel merged commit 372695b into AliceO2Group:dev Nov 29, 2026
11 checks passed
@sawenzel
sawenzel deleted the swenzel/mch-parallel-world branch November 29, 2026 14:01
@sawenzel

Copy link
Copy Markdown
Collaborator Author

merged so that another validation round can be run on the GRID. Does not affect production.

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.

1 participant