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.
Regards,
Chris
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.
Regards,
Chris
Did you see root.cern.ch/root/vmc/Geant4VMC.html ?
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
Rene