GEANT4 Geometry import export

Is there a way to make the TGeometry package work with GEANT4?
I’ve tried to find a way to export a geometry from GEANT4 to root and vice-versa with no luck.


Did you see ?

You have 2 options:
-Use the VMC (Virtual MontCarlo) and the Geant4VMC interface where Geant4 can use directly the ROOT geometry.
-export your ROOT geometry in GDML format with

root > gGeoManager->Export("mygeometry.gdml"); where the GDML file is an XML file readable directly in G4