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.

• after each tracking step along the track, control is given to the subroutine GUSTEP. From the information<br />

available in labelled common blocks the user is able to take the appropriate action, such as<br />

storing a hit or transferring a secondary product either in the stack JSTAK or in the event structure<br />

JVERTX/JKINE via the subroutine GSKING. In the subroutine GSSTAK, called by GSKING, a user routine<br />

GUSKIP is called which permits skipping any unwanted track before entering it in the stack for<br />

subsequent transport;<br />

• the subroutine GUSWIM is called by the the routines which transport charged particles when in a magnetic<br />

field; it selects and calls the appropriate routine to transport the particle. Although formally a<br />

user routine, the default version provided by GEANT is usually appropriate for most situations. The<br />

magnetic field, unless it is constant along the Z axis, has to be described via the subroutine GUFLD.<br />

5 Termination<br />

The termination phase is under the control of the user ([BASE300]) via the routine GULAST. In simple cases<br />

it may consist of a call to the subroutine GLAST which computes and prints some statistical information<br />

(time per event, use of dynamic memory, etc.).<br />

BASE001 – 4 15

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

Saved successfully!

Ooh no, something went wrong!