# File: energyPromptLookup.mac # Brief: Short macro showing how to run the energyPromptLookup fitter # # Date: 09-02-2015 # Contact: J Walker, # # This is a macro which shows how to run the energyPromptLookup fitter. # This method uses a position and direction dependent lookup table, # found in FIT_ENERGY_PROMPT_LOOKUP.ratdb, to scale the prompt nhits of # the event. The prompt nhits are then converted to an energy using # another lookup table. /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 and direction seed. # Use the water or scint fitter dependent on the inner AV material. /rat/proc waterFitter /rat/proc fitter /rat/procset method "energyPromptLookup" /rat/procset seed "waterFitter" /rat/proclast outroot /rat/procset file "energyPromptLookup.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 100 exit