Geant4 Cross Reference |
1 ------------------------------------------------------------------- 2 3 ========================================================= 4 Geant4 - an Object-Oriented Toolkit for Simulation in HEP 5 ========================================================= 6 7 GDML detector sensitivity 8 ------------------------- 9 10 This example demonstrates the usage of the GDML auxiliary information for 11 associating a sensitive detector to a volume. 12 13 The detector construction consists of a call to GDMLProcessor which parses a 14 GDML file and returns the pointer to the world volume. The user can also write 15 her/his own GDML file and use it as the primary input format for her/his Geant4 16 application. 17 18 A simple GDML files is provided: 19 - auxiliary.gdml, showing association of a volume with the auxiliary 20 information, related to the sensitive detector. 21 22 HOW TO BUILD THE EXAMPLE ? 23 24 - You need to have built the persistency/gdml module by having 25 set the -DGEANT4_USE_GDML=ON flag during the CMAKE configuration step, 26 as well as the -DXERCESC_ROOT_DIR=<path_to_xercesc> flag pointing to 27 the path where the XercesC XML parser package is installed in your system. 28 29 - Compile and link to generate the executable (in your CMAKE build directory): 30 % make 31 32 - Execute the application. 33 o For parsing interactively the GDML file: 34 % gdml_det auxiliary.gdml