# File:positionTimeFitPartial.mac # Brief: Short macro showing how to run the position likelihood fitter # in a partial fill geometry # # Date: 19-05-2014 # Contact: R Bonventre, # Revisions: # 19-05-2014 I. Coulter Initial commit. # # This is a macro which shows how to run a position likelihood fitter # in a partial fill geometry. It uses the positionTimeLikelihood method, # the partialET1D PDF and the null PMTselector. # /rat/db/set DETECTOR geo_file "geo/snoplus_partial.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 seed /rat/proc fitter /rat/procset method "centroid" # Run the position likelihood fitter for partial fit /rat/proc fitter /rat/procset method "positionTimeLikelihood" /rat/procset optimiser "powell" /rat/procset pdf "partialET1D" /rat/procset seed "centroid" /rat/procset selector "null" /rat/proclast outroot /rat/procset file "positionTimeFitPartial.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