# File: tracking.mac
# Brief: Macro showing the various tracking options
#
# Date: 2014-07-24
# Contact: P G Jones,
# Revisions:
#
# This macro demostrates how to change various aspects of the tracking and
# save the output events to a root file called output.root
# Store all the tracks via
/rat/tracking/store full
# OR Store condensed tracks via,
# Condensed tracks consist of only the first and last track steps
#/rat/tracking/store condensed
# Additionally, Omit tracking for particles by the particle name
# This is quicker than pruning particles
/rat/tracking/omit opticalphoton
/rat/tracking/omit e-
/run/initialize
# BEGIN EVENT LOOP
/rat/proc outroot
/rat/procset file "output.root"
# END EVENT LOOP
# Generate something to track, 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