GDML Import/Export Issue with Composite Shapes in 5.16-00

Hello ROOT-ers,

I have a question about exporting and importing GDML files.

I have created a geometry using the TGeo classes, and then exported it to a root file (RDKBore.root), and as a GDML file (RDKBore.gdml).

If I then restart root and then import the geometry from the root file:

root [0] new TGeoManager (class TGeoManager*)0x9cd3f0 root [1] gGeoManager->Import("RDKBore.root") Info: TGeoManager::Import : Reading geometry from file: RDKBore.root Info in <TGeoManager::CloseGeometry>: Geometry loaded from file... Info in <TGeoManager::SetTopVolume>: Top volume is UNIVERSE. Master volume is UNIVERSE Info in <TGeoManager::CloseGeometry>: Voxelization retrieved from file Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100 Info in <TGeoManager::CloseGeometry>: 31 nodes/ 18 volume UID's in Geometry Manager for RDKBore Info in <TGeoManager::CloseGeometry>: ----------------modeler ready---------------- (class TGeoManager*)0xbacb70 root [2] gGeoManager->GetTopVolume()->Draw("ogl")

I get what I expect, (the top image in viewers.png)

However if instead import the GDML version:

root [0] new TGeoManager                         
(class TGeoManager*)0x9cd6c0
root [1] gGeoManager->Import("RDKBore.gdml")     
Info: TGeoManager::Import : Reading geometry from file: RDKBore.gdml
Info in <TGeoManager::TGeoManager>: Geometry Geometry, default geometry created
Info in <TGeoManager::SetTopVolume>: Top volume is UNIVERSE. Master volume is UNIVERSE
Info in <TGeoManager::CheckGeometry>: Fixing runtime shapes...
Info in <TGeoManager::CheckGeometry>: ...Nothing to fix
Info in <TGeoManager::CloseGeometry>: Counting nodes...
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoManager::CloseGeometry>: Building cache...
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::CloseGeometry>: 31 nodes/ 18 volume UID's in default geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
(class TGeoManager*)0xa6a300
root [2] gGeoManager->GetTopVolume()->Draw("ogl")

some of the rotation angles of parts of some TGeoCompositeShape’s seem to be wrong (as in the bottom part of viewers.png)

Am I doing something wrong? Do I need to define things differently?

Thanks for any help you can give.
RDKBore.gdml.txt (26.4 KB)



RDKBore.root (15.9 KB)

Witek will process your mail once back from holidays.

Rene