Python binding for Geant4 - Example 2
This example demonstrates how to use GDML geometry files as input for
G4 simulation in the Python environment. The geometry is loaded
from the geo.gdml file and converted into Geant4 geometry tree
using the PyGDML package (being part of the
GDML
project). The
standard detector construction is then replaced by a call to the
GDMLContentHandler which returns the top volume of the geometry
tree.
For general information concerning building and running a Geant4
application from Python see
Example 1.