next up previous contents
Next: The $output_file Command Up: FILE OUT Commands Previous: Output Format   Contents

Multiple Output Streams

The way events are selected for output is determined by a word in the TEIO bank that can be modified by the $MULTI_OUTPUT_SEL symbolic command e.g.:-

$multi_output_sel $all

Currently output selection is very basic; and only the following are available:-

$all
The event is written to every output stream.

$user_sel
In this case the routine EIO_O_SELECT_USER is called for each stream in turn and it is up to the user to decide if the event is to be output. The user does not have to write the code to perform the output, simply return a yes/no flag.

$pel_args
EIO assumes that it is running within a Programmable Event Loop (see section 9) and uses the argument to the call to OUT as the stream number. For example:-

define event_loop
   call inp
   call upk
   call flt($charge_cut)     *perform the charge cut
   if_ok goto good_event
   call out(3)               *output bad events on stream 3
   quit_event
good_event
   call out(2)               *output good events on stream 2
end_def



sno Guest Acct 2009-09-09