In this directory you can find a example showing how to use GDML module for reading and writing. It is also shown how to Read STEP Tools files. In this example the DetectorConstruction consists of a Simple Detector, then this Detector is filled/written in GDML. The different options for writing and reading GDML files are shown in the Detector Construction: writing modular files, using different schema location, setting parameters for names in GDML file, etc. For more information, please, refer to the GDML Documentation.
The Geometry is a Simple Detector Box with 4 Subdetectors. This setup shows how to use Reflection Factory, Assembly of Volumes and Parameterisation. Using commands or macros it possible to read or write GDML file.
% make
% geotest [macro-file].mac
You can run this application with the following macro file: