Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/persistency/gdml/G04/README.md is written in an unsupported language. File is not indexed.

0001 \page ExampleG04 Example G04
0002 
0003 
0004 ## GDML DETECTOR SENSITIVITY
0005                     
0006 This example demonstrates the usage of the GDML auxiliary information for
0007 associating a sensitive detector to a volume.
0008 
0009 The detector construction consists of a call to GDMLProcessor which parses a
0010 GDML file and returns the pointer to the world volume. The user can also write
0011 her/his own GDML file and use it as the primary input format for her/his Geant4
0012 application.
0013 
0014 A simple GDML files is provided:
0015 - auxiliary.gdml, showing association of a volume with the auxiliary
0016   information, related to the sensitive detector.
0017 
0018 ## HOW TO BUILD THE EXAMPLE ?
0019 
0020 - You need to have built the persistency/gdml module by having
0021   set the `-DGEANT4_USE_GDML=ON` flag during the CMAKE configuration step, 
0022   as well as the `-DXERCESC_ROOT_DIR=path_to_xercesc` flag pointing to 
0023   the path where the XercesC XML parser package is installed in your system.
0024 
0025 - Compile and link to generate the executable (in your CMAKE build directory):
0026 ```
0027 % make
0028 ```
0029 
0030 - Execute the application for parsing interactively the GDML file:
0031 ```
0032 % ./gdml_det auxiliary.gdml
0033 ```