# File: outsoc.mac
# Brief: Macro showing how to output to a SOC root file
#
# Date: 2014-07-24
# Contact: P G Jones,
# Revisions:
#
# This macro demostrates how to output events to a SOC root file called
# output.soc.root
/run/initialize
# BEGIN EVENT LOOP
/rat/proc count # An example processor
/rat/procset update 5
# Create the socdata
/rat/proc socdata
/rat/proc outsoc
/rat/procset file "output.soc.root"
# 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