Skip to content

[6.40] [geom] Keep reflections through a GDML round trip - #23250

Merged
dpiparo merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_23238
Sep 4, 2026
Merged

[6.40] [geom] Keep reflections through a GDML round trip#23250
dpiparo merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_23238

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #23238, requested by @dpiparo. For your information @sawenzel

This fixes root-project#23237, a bug in the
GDML writer and reader that could lose reflections when a geometry was
exported to GDML and read back.

The writer now preserves reflections combined with rotations by factoring the
reflection into a z-mirror and writing the remaining proper rotation. Diagonal
reflection matrices keep their existing representation.

The reader now also handles the scale of placements inside assemblies, so
reflections are preserved there as well.

A new test exports and re-imports a reflected box with an off-centre daughter,
both in the world and in an assembly. It checks the global position, frame
handedness and TGeoHMatrix::IsReflection() before and after the round trip.

The ALICE geometry is now correctly exported to GDML, with reflections
preserved through the round trip.

(cherry picked from commit d7dca56)
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 11h 27m 18s ⏱️
 3 870 tests  3 870 ✅ 0 💤 0 ❌
77 310 runs  77 310 ✅ 0 💤 0 ❌

Results for commit 49e6dcc.

@dpiparo
dpiparo merged commit 5fc7287 into root-project:v6-40-00-patches Sep 4, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants