Conversion Geant4 to ROOT Geometry

Hi Rooters

What if I have an application that takes a ROOT geometry as an input but I am given a Geant4 geometry instead? Is there any tool to convert A Geant4 Geometry into a ROOT one?


yes, you can use the GDML converter provided by Geant4 and read directly the gdml file within ROOT with something like

root > TGeoManager::Import("mygeometry.gdml");

Thanks René, that will save me a lot of time!