# File: itr.mac # Brief: Short macro showing how to run the ITR classifier # # Date: 19-05-2014 # Contact: E Marzec, # Revisions: # 19-05-2014 I. Coulter Initial commit. # # This is a macro which shows how to run the ITR classifier. # This returns the ITR (In Time Ratio) parameter for an event, that # is, the ratio of PMT hit time residuals that fall within the in-time # window to those that fall without. # # In-time window defined in the CLASSIFIER_ITR.ratdb # Can be overwritten using: /rat/db/set CLASSIFIER_ITR[labppo_scintillator] t1 -2.5d /rat/db/set CLASSIFIER_ITR[labppo_scintillator] t2 5.0d /run/initialize # BEGIN EVENT LOOP /rat/proc frontend /rat/proc trigger /rat/proc eventbuilder /rat/proc count /rat/procset update 10 /rat/proc calibratePMT # ITR classifier requires a position+time seed. # Use the quadFitter. /rat/proc fitter /rat/procset method "quad" # Now run the ITR classifier /rat/proc classifier /rat/procset classifier "ITR" /rat/procset seed "quad" /rat/proclast outroot /rat/procset file "itr.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