# File: n16.mac
# Brief: This simulates N16 events in the N16 geometry
#
# Date: 2014-05-29
# Contact: M Mottram, <m.mottram@qmul.ac.uk>
# Revisions:
#       2014-05-29 : P Jones, added header info.
#
# The nhits etc... can then be tested

/rat/physics_list/OmitMuonicProcesses true
/rat/physics_list/OmitHadronicProcesses true

/rat/db/set DETECTOR geo_file "geo/snoplusnative_water.geo"

/rat/db/load geo/calib/N16Source.geo
/rat/db/set GEO[N16Source] position [ 0.0, 0.0, 0.0 ]

/rat/db/set DAQ dqxx_info 0

/run/initialize

# BEGIN EVENT LOOP
/rat/proc count
/rat/procset update 10
/rat/proc outroot
/rat/procset file "n16.root"
# END EVENT LOOP

/generator/add n16source

/rat/run/start 100
exit