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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CALL GDINIT<br />

This routine initialises the GEANT drawing package [DRAW001] and it has to be called before any other<br />

graphic routine. GEANT uses the <strong>CERN</strong>-developed HIGZ [1] graphic library, and this has to be initialised<br />

before the call to GDINIT. In the example given in [BASE100] the routines IGINIT and IGMETA are used.<br />

Alternatively, the routine HPLINT from HPLOT [7] can be used. This routine calls the appropriate procedures<br />

from HIGZ to initialise the underlaying graphics system. At the moment HIGZ can use several flavours<br />

of GKS [2, 3, 4] and X11 and it is available on all machines where the <strong>CERN</strong> <strong>Program</strong> <strong>Library</strong> has been<br />

installed.<br />

CALL GPHYSI<br />

Completes the data structure JMATE, (see [PHYS100]) calculating the cross-section and stopping power<br />

tables.<br />

CALL GBHSTA<br />

Initialises the standard histograms requested by the user via the data record HSTA. The following histogram<br />

keywords may be used :<br />

TIME<br />

SIZE<br />

MULT<br />

NTRA<br />

STAK<br />

time per event;<br />

size of division IXDIV per event;<br />

total number of tracks per event;<br />

number of long life tracks per event;<br />

maximum stack size per event.<br />

GBHSTA should be called after GFFGO.<br />

CALL GGCLOS<br />

This routine has to be called at the end of the definition of the geometry by the user, after thal all volumes<br />

have been defined and positioned and all detectors defined. Failure to call this routine will prevent the GEANT<br />

system from working correctly. Main tasks of this routine are:<br />

• close the geometry package;<br />

• complete the JVOLUM data structure;<br />

• process the detector definition provided by the user;<br />

• prepare the tables for the tracking speed optimisation requested by the user via the GSORD routine or<br />

the OPTI data record.<br />

BASE110 – 2 32

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

Saved successfully!

Ooh no, something went wrong!