Prev Up Next
Go backward to Doloop command
Go up to *COMMANDS
Go forward to Endevent command

Output command

The OUTPUT command allows data words, 16-bit sortwords and parameter lists to be output on up to 4 different streams. The output <stream number> must be an integer value between 1 and 4 (inclusive). The data will automatically be output in Eurogam-style format with an event-header, etc. per event.


OUTPUT <stream number> <output-parameter> [<output-parameter>]r

where <output-parameter> may be one of the following:

<single-parameter-word>

<group-parameter-word>

<group-parameter-list>

<group-parameter-word>(<item-list>)

<group-parameter-list>(<item-list>)

where <item-list> is a subset of the original item list associated with the group that was declared in the *FORMATS section.


eg.
*FORMATS
TRIG[255] (MUSER,MTAC)
GE[1:54] (E1,E2)
*COMMANDS
OUTPUT  1   TRIG(MTAC) GE(E2)

 


OUTPUT <stream number> EVENT


eg.
SELECT (I)
(1) OUTPUT  1  EVENT
(2) OUTPUT  2  EVENT
(3) OUTPUT  1  EVENT

This command can be used either to generate simple variables6 (first format specified above) or to write out complete events on the output stream (second format).

Note If any commands have been used to alter any event parameters, eg. GAIN, INVALIDATE or arithmetic operations, prior to OUTPUT EVENT then the altered values will be output.

 


OUTPUT <stream number> GROUP <group number> [<item-list>]

where <group number> is an integer or sortword.
where <item-list> is a list of sortwords.


eg.
OUTPUT  1 GROUP 234  ( A, B)

This command can be used either to output an existing group with a modified item list, or a new group.

Care must be taken that group numbers are not duplicated within an event. The following example is illegal if group 15 is present in the raw data, but would not be checked for by the compiler.

eg.

OUTPUT  1  EVENT
...
OUTPUT  1  GROUP 15 (A, B, C)

support@ns.ph.liv.ac.uk

Prev Up Next