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.

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

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

Revision : Revised: 26.10.93<br />

Documentation :<br />

Steering routines for event processing<br />

CALL GRUN<br />

Main routine to control a run of events. The following flow chart is only valid for the batch execution mode.<br />

For interactive applications, see section XINT. A schematic description of the routine is shown in fig. 4.<br />

GRUN<br />

Gets time left<br />

TIMEL<br />

Initialises dynamic memory banks for next event<br />

GTRIGI<br />

Processes one event<br />

GTRIG<br />

Clears dynamic memory banks used for the event<br />

GTRIGC<br />

Checks time left<br />

and event number<br />

Figure 4: Flow of the GRUN routine.<br />

CALL GTRIGI<br />

Initialisation routine for event processing:<br />

• resets to 0 the flag IEOTRI in /GCFLAG/ and the counters NTRACK and NVERTX in /GCNUM/;<br />

• sets the debug flag IDEBUG in /GCFLAG/ to the value required for the current event;<br />

• creates a default header bank JHEAD for current event [BASE299];<br />

• prints the sequence number, the event number and the random number generator seeds, under control<br />

of the flag ITEST (data record DEBU).<br />

33 BASE200 – 1

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

Saved successfully!

Ooh no, something went wrong!