Back to home page

EIC code displayed by LXR

 
 

    


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

0001 -------------------------------------------------------------------
0002 
0003      =========================================================
0004      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
0005      =========================================================
0006 
0007                           GDML read/write
0008                           ---------------
0009 
0010 This example demonstrates the usage of the GDML reader and writer. It allows
0011 to export geometry descriptions in an application independent format (GDML,
0012 Geometry Description Markup Language).
0013 The GDML files can be then used to interchange geometries between different
0014 applications and users.
0015 
0016 The detector construction consists of a call to GDMLProcessor which parses a
0017 GDML file and returns the pointer to the world volume. The user can also write
0018 her/his own GDML file and use it as the primary input format for her/his Geant4
0019 application.
0020 
0021 Several simple GDML files are provided:
0022 - axes.gdml,   showing loading and orientation of Cartesian axes;
0023 - solids.gdml, list of all supported solids with placement; 
0024 - scale.gdml,  a simple diamond structure made of extruded solids;
0025 - divisionvol.gdml, a divided box;
0026 - parameterized.gdml, a parameterised box;
0027 - pTube.gdml, a parameterised tube;
0028 - auxiliary.gdml, showing association of volume with auxiliary information;
0029 - etc...
0030 
0031 HOW TO BUILD THE EXAMPLE ?
0032 
0033 - You need to have built the persistency/gdml module by having
0034   set the -DGEANT4_USE_GDML=ON flag during the CMAKE configuration step, 
0035   as well as the -DXERCESC_ROOT_DIR=<path_to_xercesc> flag pointing to 
0036   the path where the XercesC XML parser package is installed in your system.
0037 
0038 - Compile and link to generate the executable (in your CMAKE build directory):
0039               % make
0040 
0041 - Execute the application.
0042   o For reading and visualize interactively a GDML file:
0043               % load_gdml [GDML-file-in].gdml
0044 
0045   o For reading, writing and visualize interactively a GDML file:
0046               % load_gdml [GDML-file-in].gdml [GDML-file-out].gdml
0047 
0048   o For reading, writing a GDML file and running in batch a macro:
0049               % load_gdml [GDML-file-in].gdml [GDML-file-out].gdml [macro].in