next up previous index
Next: The Motif Interface Up: XINT001 The interactive Previous: XINT001 The interactive

Invoking the interactive version

Instead of writing a MAIN program to initialize the Geant batch version, it is possible to use the MAIN interactive program (GXINT321.F) provided in /cern/pro/lib exactly as the library LIBGEANT321.A. The user has simply to insert in his link file the file GXINT321.F as the main program, followed by the user object code and by the library LIBGEANT321.A.
Example:
PROGRAM GXINT
*
* GEANT main program. To link with the MOTIF user interface
* the routine GPAWPP(NWGEAN,NWPAW) should be called, whereas
* the routine GPAW(NWGEAN,NWPAW) gives access to the basic
* graphics version.
*
PARAMETER (NWGEAN=3000000,NWPAW=1000000)
COMMON/GCBANK/GEANT(NWGEAN)
COMMON/PAWC/PAW(NWPAW)
*
CALL GPAWPP(NWGEAN,NWPAW)
*
END
The user has to set the desired value of NWGEAN and NWPAW for the GEANT and PAW Zebra stores, and to call the desired initialization routine:

The interactive version, after the initialization, gives the control to the user at the prompt GEANT > ; then it is possible to type and execute commands (corresponding to batch routines) to edit the geometry, the materials or the tracking media at run time. It is also possible to execute commands to visualize the detectors, to set the kinematics and to run events. Again interactively, one can spy the histograms, change the kinematics, and run more events (visualizing the tracks and the hits, for example). The GXINT chapter contains in the following pages a full description of the available GEANT commands. See the PAW, KUIP, DZDOC, HIGZ manuals for a description of the relative commands executable from GEANT. All the commands are also documented by an on-line help. (Try to type HELP at the first GEANT > prompt). In the interactive version, a COMIS interface is also available: COMIS is a FORTRAN interpreter which allows: Of course the interpreter is slower than the compiled object code, then, since GEANT321, it is also possible to invoke the native compiler and to link dinamically to the executable the compiled routine (see the COMIS manual for further details).

The following write ups describe individual commands which can be typed one by one at the terminal, or grouped into macros which can be edited and saved in the KUIP environment.

The commands are listed in subsection 1 - 13:

1. General GEANT
2. Clipping commands GEANT/CVOL
3. Drawing commands GEANT/DRAWING
4. Graphics control commands GEANT/DRAWING
5. Geometry commands GEANT/GEOMETRY
6. Volume creation commands GEANT/CREATE
7. Control commands GEANT/CONTROL
8. ZEBRA/RZ commands GEANT/RZ
9. ZEBRA/FZ commands GEANT/FZ
10. Data structure commands GEANT/DZ
11. Scanning commands GEANT/SCAN
12. Physics parameter commands GEANT/PHYSICS
13. List commands GEANT/LISTS


next up previous index
Next: The Motif Interface Up: XINT001 The interactive Previous: XINT001 The interactive


Janne Saarela
Mon Apr 3 12:46:29 METDST 1995