source: trunk/examples/extended/gdml/README @ 1314

Last change on this file since 1314 was 807, checked in by garnier, 16 years ago

update

File size: 1.8 KB
Line 
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
11This example demonstrates the usage of the GDML reader and writer. It allows
12to export geometry descriptions in an application independent format (GDML,
13Geometry Description Markup Language).
14The GDML files can be then used to interchange geometries between different
15applications and users.
16
17The detector construction consists of a call to GDMLProcessor which parses a
18GDML file and returns the pointer to the world volume. The user can also write
19her/his own GDML file and use it as the primary input format for her/his Geant4
20application.
21
22More 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
28HOW 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).
Note: See TracBrowser for help on using the repository browser.