# File: scintFitter.mac # Brief: Short macro showing how to run the scintFitter # # 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 the scintFitter, which gives # the "best" fit for the scintillator phase, as defined by the # reconstruction group. # Currently, this will use different PDFs depending on the scintillator # material in use and so should work for both loaded and unloaded # scintillators. Details of what this contains can be found in the user # manual or within the code itself. # /run/initialize # BEGIN EVENT LOOP /rat/proc frontend /rat/proc trigger /rat/proc eventbuilder /rat/proc count /rat/procset update 10 /rat/proc calibratePMT # Run the scintFitter /rat/proc scintFitter /rat/proclast outroot /rat/procset file "scintFit.root" # END EVENTLOOP /generator/add combo gun:fill /generator/vtx/set e- 0 0 0 1.0 /generator/pos/set 0 0 0 /generator/rate/set 1 /rat/run/start 10 exit