Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/g3tog4/clGeometry/README is written in an unsupported language. File is not indexed.

0001 
0002                          Example clGeometry 
0003                          --------------------
0004 
0005 This examples demonstrates the usage of the g3tog4 tool for converting 
0006 Geant 3.21 simple geometries to Geant4 ones.
0007 
0008 It requires Geant4 installation with G3toG4 library (
0009 handled with GEANT4_USE_G3TOG4 option in CMake build or the G4LIB_USE_G3TOG4
0010 environment variable in GNUmake build).
0011 
0012 It demonstrates building a detector geometry using the call list
0013 mechanism and also provides visualization, see the G3toG4DetectorConstruction
0014 class. The executable is provided in clGeometry.cc.
0015 
0016 The example uses the GunPrimaryGeneratorAction class from the extended examples common 
0017 repository available in common subdirectory. This class is instatiated in G3toG4ActionInitialization class as it is required for processing with both sequential and multi-threaded Geant4 modes.
0018 
0019 To run the application, one must provide as input argument a call list file
0020 (few test samples are placed in data directory), generated by the rztog4 application
0021 which can be built typing "make bin" from $G4INSTALL/source/g3tog4.
0022 Then several optional arguments can be specified to define a macro, UI session 
0023 or number of threads (applicable only with multi-threading mode):
0024 
0025 clGeometry callListFile [-m macro ] [-u UIsession] [-t nThreads]
0026 
0027 There are provided clGeometry.in and run.mac macros which can be executed either interactively
0028 or in batch.
0029 
0030 For example:
0031 > clGeometry data/testmodel.dat -m clGeometry.in