Line | |
---|
1 | |
---|
2 | G3toG4 tool's examples |
---|
3 | ---------------------- |
---|
4 | |
---|
5 | This directory includes two applications to demonstrate the usage of the |
---|
6 | g3tog4 tool for converting Geant 3.21 simple geometries to Geant4 ones. |
---|
7 | |
---|
8 | The environment variable G4LIB_USE_G3TOG4 should be defined. |
---|
9 | |
---|
10 | clGeometry |
---|
11 | ---------- |
---|
12 | Contains the code to build a detector geometry using the call list |
---|
13 | mechanism and also provides visualization. The name of the executable is |
---|
14 | clGeometry. |
---|
15 | |
---|
16 | To run the application, one must provide as input argument a call list file |
---|
17 | (few test samples are placed in ../data), generated by the rztog4 application |
---|
18 | which can be built typing "gmake bin" from $G4INSTALL/source/g3tog4. |
---|
19 | |
---|
20 | clGeometry.in is a macro to be executed either interactively or in batch. |
---|
21 | |
---|
22 | For example: |
---|
23 | > cd $G4INSTALL/examples/extended/g3tog4 |
---|
24 | > clGeometry data/testmodel.dat clGeometry.in |
---|
25 | |
---|
26 | cltog4 |
---|
27 | ------ |
---|
28 | is a simple example which simply invokes the call list interpreter method |
---|
29 | G4BuildGeom from G3toG4DetectorConstruction class, builds the geometry |
---|
30 | and exits. |
---|
31 | |
---|
32 | As for clGeometry, a call list needs to be fed to cltog4. A macro cltog4.in |
---|
33 | is available to be executed either interactively or in batch. |
---|
Note: See
TracBrowser
for help on using the repository browser.