# File: simpleDirection.mac # Brief: Short macro showing how to run the simpleDirection fitter # # Date: 19-05-2014 # Contact: P G Jones, # Revisions: # 19-05-2014 I. Coulter Initial commit. # # This is a macro which shows how to run the simpleDirection fitter. # Finds the direction as the direction from the seeded position to # the centroid of PMT hits. # # Load a water geometry /rat/db/set DETECTOR geo_file "geo/snoplus_water.geo" /run/initialize # BEGIN EVENT LOOP /rat/proc frontend /rat/proc trigger /rat/proc eventbuilder /rat/proc count /rat/procset update 10 /rat/proc calibratePMT # simpleDirection fitter requires a position seed /rat/proc fitter /rat/procset method "quad" # Now run the simpleDirection fitter /rat/proc fitter /rat/procset method "simpleDirection" /rat/procset seed "quad" /rat/proclast outroot /rat/procset file "simpleDirection.root" # END EVENTLOOP /generator/add combo gun:fill /generator/vtx/set e- 0 0 0 5.0 /generator/pos/set 0 0 0 /generator/rate/set 1 /rat/run/start 10 exit