# File: positionTimeDirectionFit.mac # Brief: Short macro showing how to run the position+direction # likelihood fitter # # Date: 19-05-2014 # Contact: Dr M Mottram # Revisions: # 19-05-2014 I. Coulter Initial commit. # # This is a macro which shows how to run a position + direction # likelihood fitter. This uses the positionTimeDirectionLikelihood # method, the positionDirectionPDF, the simulated annealing optimiser # and the modeCut PMTselector which selects only PMTs within 50ns of # the mode hit time. # # 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 # Requires a position+direction seed /rat/proc fitter /rat/procset method "quad" /rat/proc fitter /rat/procset method "simpleDirection" /rat/procset seed "quad" # Run the position+direction likelihood fitter /rat/proc fitter /rat/procset method "positionTimeDirectionLikelihood" /rat/procset optimiser "simulatedAnnealing" /rat/procset pdf "positionDirectionPDF" /rat/procset seed "simpleDirection:quad" /rat/procset selector "modeCut" /rat/proclast outroot /rat/procset file "positionDirectionFit.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