[807] | 1 | $Id: README,v 1.10 2007/11/20 08:34:16 gcosmo Exp $ |
---|
| 2 | ------------------------------------------------------------------- |
---|
| 3 | |
---|
| 4 | ========================================================= |
---|
| 5 | Geant4 - an Object-Oriented Toolkit for Simulation in HEP |
---|
| 6 | ========================================================= |
---|
| 7 | |
---|
| 8 | GDML read/write |
---|
| 9 | --------------- |
---|
| 10 | |
---|
| 11 | This example demonstrates the usage of the GDML reader and writer. It allows |
---|
| 12 | to export geometry descriptions in an application independent format (GDML, |
---|
| 13 | Geometry Description Markup Language). |
---|
| 14 | The GDML files can be then used to interchange geometries between different |
---|
| 15 | applications and users. |
---|
| 16 | |
---|
| 17 | The detector construction consists of a call to GDMLProcessor which parses a |
---|
| 18 | GDML file and returns the pointer to the world volume. The user can also write |
---|
| 19 | her/his own GDML file and use it as the primary input format for her/his Geant4 |
---|
| 20 | application. |
---|
| 21 | |
---|
| 22 | More than one simple GDML files are provided: |
---|
| 23 | - axes.gdml, showing loading and orientation of Cartesian axes; |
---|
| 24 | - diamond.gdml, a simple diamond structure made of tessellated solids; |
---|
| 25 | - modular.gdml, the combination of the two GDML files above loaded as |
---|
| 26 | separate modules in the same setup. |
---|
| 27 | |
---|
| 28 | HOW TO BUILD THE EXAMPLE ? |
---|
| 29 | |
---|
| 30 | - You need to have built the persistency/gdml plugin module by having |
---|
| 31 | set G4LIB_BUILD_GDML variable in your environment. |
---|
| 32 | It is also required you specify the path where the XercesC XML parser |
---|
| 33 | package is installed in your system, through the variable XERCESCROOT. |
---|
| 34 | |
---|
| 35 | - Compile and link to generate the executable: |
---|
| 36 | % gmake |
---|
| 37 | |
---|
| 38 | - Execute the application: |
---|
| 39 | % load_gdml [GDML-file].gdml |
---|
| 40 | Note: if you are using dynamic libraries, you should add and |
---|
| 41 | $XERCESCROOT/lib paths to the LD_LIBRARY_PATH directory (or |
---|
| 42 | equivalent on your system). |
---|