22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Geant 3.16 GEANT User’s Guide BASE110<br />

Origin : R.Brun Submitted: 01.06.83<br />

Revision : Revised: 16.12.93<br />

Documentation :<br />

The system initialisation routines<br />

CALL GZEBRA<br />

(NZ)<br />

Initialises the ZEBRA memory manager to use the common /GCBANK/ to store the GEANT data structures.<br />

NZ<br />

(INTEGER) size of the /GCBANK/ common as it is dimensioned in the main program.<br />

The size of the dynamic memory is set to NZ-30. The common /GCBANK/ must be dimensioned in the main<br />

program. ZEBRA [8] must be initialised only once. The call to the HBOOK initialisation routine HLIMIT<br />

tries to initialise ZEBRA as well, and this will cause a program abort. To avoid this, HLIMIT must be called<br />

after GZEBRA and its argument must be a negative number whose absolute value is the size of the /PAWC/<br />

common containing the histograms. This is shown in the example of main program given in [BASE100].<br />

CALL GINIT<br />

Presets labelled common block variables to default values. See [BASE030] for more information.<br />

CALL GFFGO<br />

Reads a set of data records via the FFREAD package. See [BASE040] for more information on the possible<br />

data records. GFFGO must be called after GINIT.<br />

CALL GZINIT<br />

Initialises the ZEBRA permanent data structures in division 2 of the GEANT main store in common /GCBANK/.<br />

Creates the user long term division (index IXCONS) (minimum size 2000, maximum size 8*NZEBRA/10).<br />

The ZEBRA division IXDIV is reserved for the event data structures and the division IXCONS for the initialisation<br />

data structures. Allocates 5200 words of working space. Initialises the link areas and a default run<br />

header bank JRUNG [BASE299]. Defines banks format for I/O. GZINIT must be called after GFFGO.<br />

A layout of the dynamic store is shown in fig 3.<br />

/GCBANK/<br />

Fence<br />

Working<br />

space<br />

Reserve<br />

area<br />

Event<br />

division<br />

IXDIV<br />

Constant<br />

division<br />

IXCONS<br />

System<br />

division<br />

Figure 3: Layout of the dynamic store<br />

31 BASE110 – 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!