# File: energyPromptHits.mac # Brief: Short macro showing how to run the energyPromptHits fitter # # Date: 08-06-2016 # Contact: J Walker, # # This is a macro which shows how to run the energyPromptHits fitter. # This method converts prompt hits to energy using a single value ratio. # Select the snoplus geometry file /rat/db/set DETECTOR geo_file "geo/snoplus.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, time, direction and initial energy estimate seed. # Use the water fitter. /rat/proc waterFitter /rat/proc fitter /rat/procset method "energyPromptHits" /rat/procset seed "waterFitter" /rat/proclast outroot /rat/procset file "energyPromptHits.root" # END EVENTLOOP /generator/add combo gun:fill /generator/vtx/set e- 0 0 0 2.5 /generator/pos/set 0 0 0 /generator/rate/set 1 /rat/run/start 100 exit