UINIT

Called by SETUP once at the beginning of each run of the program, UINIT is may be used to initialize user variables, and/or setup user specified histograms (the USER's favorite package can be used).

USTART

Called by UMC once at the beginning of each event, USTART is used to start events off at a point selected by the USER. The subroutine STKRD may prove useful. See also HELP UMC USTACK Starting_the_Stack The default version of USTART provides several methods of stopping Kaons in the E787 target. See KAON_BEAM and comments in ustart.cdf.

UAUS

Called by AUSGAB foreach step of the event, UAUS can be used to extract detailed information about an event, to discard the current particle ( by setting IDISCU=1 ), or to stop processing an entire event (by setting IQUIT=1 ). Since UAUS is typically called hundreds or thousands of times in a single event, it is a good idea to make it as efficient as possible. UAUS is called when the energy deposition for the upcoming step is known, but BEFORE the step is actually taken.

The calling sequence for UAUS is: CALL UAUS(IARG,EDEP,STEP,IRRR,XX,YY,ZZ,UUU,VVV,WWW,TIME)

Additional Information on:

  • IARG
  • EDEP
  • STEP
  • IRRR
  • XX,YY,ZZ
  • UUU,VVV,WWW
  • TIME
  • UEVENT

    Called by UMC once after each event, when the track bank and UENER arrays are complete. Used to increment histograms, etc.

    UEND

    Called at the end of a run. UEND may be used to print out user gen- erated run summary information and to initiate the printing of histograms.