-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Check duplicate issues.
- Checked for duplicates
Description
I can import auxiliary values of a gdml file. They are saved as UserExtension in TGDMLParse but there is no way to export any auxiliary values with TGDMLWrite.
Reproducer
- Import a gdml file with an auxiliary value, e.g. one containing
<volume name="test_volume">
<materialref ref="test_mat"/>
<solidref ref="test_solid"/>
<auxiliary auxtype="test_type" auxvalue="test_value"/>
</volume>
with gGeoManager->Import("testfile.gdml")
- Export it with
gGeoManager->Export("testfile_export.gdml")
or add directly to vol and export (e.g. with pyroot)
ue = vol.GrabUserExtension()
if not ue:
aux_map = r.TMap()
vol.SetUserExtension(r.TGeoRCExtension(aux_map))
else:
aux_map = ue.GetUserObject()
key = r.TObjString("test_type")
value = r.TObjString("test_value")
aux_map.Add(key, value)
and export with
r.gGeoManager.Export("test_file_export.gdml")
In both cases no auxiliary is being exportet.
ROOT version
all
Installation method
all
Operating system
all
Additional context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status
Status
No status