# File: outnet.mac
# Brief: Macro showing how to output to the network
#
# Date: 2014-07-24
# Contact: P G Jones,
# Revisions:
#
# This macro demostrates how to output events to the network
/run/initialize
# BEGIN EVENT LOOP
/rat/proc count # An example processor
/rat/procset update 5
/rat/proc outnet
/rat/procset host "localhost:2014" # host:port
# END EVENT LOOP
# Generate something to save, 1MeV electrons
/generator/add combo gun:point
/generator/vtx/set e- 0 0 0 1.0
/generator/pos/set 0 0 0
/generator/rate/set 1
/rat/run/start 10
exit