# File: innet.mac
# Brief: Macro showing how to listen for events over the network
#
# Date: 2014-07-24
# Contact: P G Jones,
# Revisions:
#
# This macro demostrates how to listen to events over the network and run
# processors on it including output to a root file called output.root.
/run/initialize
# BEGIN EVENT LOOP
/rat/proc count # An example processor
/rat/procset update 5
/rat/proc outroot
/rat/procset file "output.root"
# END EVENT LOOP
/rat/innet/listen 2014 # Port number
exit