Skip to content

[gdml] Resolve material fractions by exact reference#22834

Open
agheata wants to merge 1 commit into
root-project:masterfrom
agheata:fix-22831-gdml-material-element-collision
Open

[gdml] Resolve material fractions by exact reference#22834
agheata wants to merge 1 commit into
root-project:masterfrom
agheata:fix-22831-gdml-material-element-collision

Conversation

@agheata

@agheata agheata commented Jul 16, 2026

Copy link
Copy Markdown
Member

This Pull request:

GDML fraction references were resolved using names after stripping 0x... pointer suffixes. This could make an element reference resolve to an unrelated material with the same shortened name, silently producing incomplete or empty mixtures.

Changes or fixes:

Resolve fractions through the exact GDML element, material, and mixture identifiers before constructing the TGeoMixture.
A regression test covers both a pure material and an alloy whose element and material names collide after suffix stripping.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #22831

@agheata
agheata requested a review from bellenot as a code owner July 16, 2026 11:46
@dpiparo
dpiparo self-requested a review July 16, 2026 11:50
@olantwin

Copy link
Copy Markdown
Contributor

@agheata Thanks a lot for this quick fix!

@github-actions

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 3h 39m 7s ⏱️
 3 854 tests  3 854 ✅ 0 💤 0 ❌
71 817 runs  71 817 ✅ 0 💤 0 ❌

Results for commit 55925d5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TGDMLParse silently drops elements whose name collides with a material name after 0x pointer-suffix stripping

3 participants