Repository navigation
MCH: add the gas volumes to the parallel world - #16231
Merged
Merged
Conversation
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>
Collaborator
Author
|
merged so that another validation round can be run on the GRID. Does not affect production. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/Alignobjects 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: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.