# File: geoprint.mac
# Brief: This fires geantinos accross the detector to see what geo is hit.
#
# Date: 2014-05-29
# Contact: A Mastbaum, <mastbaum@hep.upenn.edu>
# Revisions:
#       2014-05-29 : P Jones, added header info.
#
# This macro fires geantinos in all directions so that a test can query the
# step lengths.

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

/rat/tracking/store full

/run/initialize

# BEGIN EVENT LOOP
/rat/proc simpledaq

/rat/proc count
/rat/procset update 1000

/rat/proc outroot
/rat/procset file "geoprint.root"

# END EVENT LOOP

/generator/add combo gun:point
/generator/vtx/set geantino 0 0 0 0.020
/generator/pos/set 100 0 0
/generator/rate/set 1

/rat/run/start 100000