Skip to content

Fix for name resolution of GDML objects defined in children files.#9908

Merged
agheata merged 1 commit intoroot-project:masterfrom
agheata:root-9744
Feb 17, 2022
Merged

Fix for name resolution of GDML objects defined in children files.#9908
agheata merged 1 commit intoroot-project:masterfrom
agheata:root-9744

Conversation

@agheata
Copy link
Copy Markdown
Member

@agheata agheata commented Feb 16, 2022

This Pull request:

Fixes GDML name resolution for positions, rotations, scales, solids and volumes defined in a secondary file.

Changes or fixes:

GDML allows implicit namespacing for objects defined in children files. The current implementation of the ROOT GDML parser is flawed in this respect. Objects are temporarily stored with an appended suffix to their name, but their subsequent search by name ignores the suffix, not finding the ones already defined. The fix corrects this by first searching in the local file namespace, then in the global namespace.

Checklist:

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

This PR fixes #9744

@agheata agheata requested a review from couet February 16, 2022 15:04
@agheata agheata self-assigned this Feb 16, 2022
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@couet
Copy link
Copy Markdown
Member

couet commented Feb 16, 2022

LGTM - I trust you.

@agheata agheata merged commit aacaeec into root-project:master Feb 17, 2022
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.

GDML module not working with Tessellated solid

3 participants