Geant4 Cross Reference |
>> 1 $Id: README,v 1.1 2010-10-11 08:40:51 gcosmo Exp $ 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 plugin module by having 25 set the -DGEANT4_USE_GDML=ON flag during the << 26 set G4LIB_BUILD_GDML variable in your environment. 26 as well as the -DXERCESC_ROOT_DIR=<path_to_x << 27 It is also required you specify the path where the XercesC XML parser 27 the path where the XercesC XML parser packag << 28 package is installed in your system, through the variable XERCESCROOT. 28 << 29 29 - Compile and link to generate the executable << 30 - Compile and link to generate the executable: 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