Routine ID: BASE110 | |
---|---|
Author(s): | Submitted: 01.06.83 |
Origin: R.Brun | Revised: 16.12.93 |
Initialises the ZEBRA memory manager to use the common /GCBANK/ to store the GEANT data structures.
CALL GINIT Presets labelled common block variables to default values. See [BASE030] for more information.
CALL GFFGO Reads a set of data records via the FFREAD package. See [BASE040] for more information on the possible data records. GFFGO must be called after GINIT.
Initialises the ZEBRA permanent data structures in division 2 of the GEANT main store in common /GCBANK/. Creates the user long term division (index IXCONS) (minimum size 2000, maximum size 8*NZEBRA/10). The ZEBRA division IXDIV is reserved for the event data structures and the division IXCONS for the initialisation data structures. Allocates 5200 words of working space. Initialises the link areas and a default run header bank JRUNG [BASE299]. Defines banks format for I/O. GZINIT must be called after GFFGO.
A layout of the dynamic store is shown in fig .
Figure: Layout of the dynamic store
CALL GDINIT This routine initialises the GEANT drawing package [DRAW001] and it has to be called before any other graphic routine. GEANT uses the CERN-developed HIGZ [] graphic library, and this has to be initialised before the call to GDINIT. In the example given in [BASE100] the routines IGINIT and IGMETA are used. Alternatively, the routine HPLINT from HPLOT [] can be used. This routine calls the appropriate procedures from HIGZ to initialise the underlaying graphics system. At the moment HIGZ can use several flavours of GKS [,,] and X11 and it is available on all machines where the CERN Program Library has been installed.
CALL GPHYSI Completes the data structure JMATE, (see [PHYS100]) calculating the cross-section and stopping power tables.
CALL GBHSTA Initialises the standard histograms requested by the user via the data record HSTA. The following histogram keywords may be used :
GBHSTA should be called after GFFGO.
CALL GGCLOS This routine has to be called at the end of the definition of the geometry by the user, after thal all volumes have been defined and positioned and all detectors defined. Failure to call this routine will prevent the GEANT system from working correctly. Main tasks of this routine are: