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