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