# File: fixedSeed.mac
# Brief: Short macro showing how to produce a fixed seed
#
# Date: 19-05-2014
# Contact: P G Jones, <p.g.jones@qmul.ac.uk>
# Revisions:
#       19-05-2014 I. Coulter <icoulter@hep.upenn.edu> Initial commit.
#
# This is a macro which shows how to produce a fixed seed for a fitter.
#

/run/initialize

# BEGIN EVENT LOOP
/rat/proc frontend
/rat/proc trigger
/rat/proc eventbuilder
/rat/proc count
/rat/procset update 10
/rat/proc calibratePMT

# Choose a fixed position for the seed
/rat/proc fitter
/rat/procset method "fixedSeed"
/rat/procset method.position 100 200 -50 200

/rat/proclast outroot
/rat/procset file "fixedSeed.root"
# END EVENTLOOP

/generator/add combo gun:fill
/generator/vtx/set e- 0 0 0 1.0
/generator/pos/set 0 0 0
/generator/rate/set 1

/rat/run/start 10
exit