# File: seededAlpha.mac # Brief: Short macro showing how to run the seededAlpha classifier # # Date: 19-05-2014 # Contact: K Majumdar, # Revisions: # 19-05-2014 I. Coulter Initial commit. # # This is a macro which shows how to run the seededAlpha classifier. # Looks at the distribution of time residuals, as a smaller number of # prompt PMT hits indicates an alpha. Will return the ratio of prompt # PMT hits to the total number of PMT hits in the event. # # The prompt window is defined in CLASSIFIER_ALPHA_SEEDED.ratdb. # This can be overwritten by the user using the commands: /rat/db/set CLASSIFIER_ALPHA_SEEDED t1 2.0d /rat/db/set CLASSIFIER_ALPHA_SEEDED t2 76.0d /rat/db/set CLASSIFIER_ALPHA_SEEDED tmax 300.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 # Seeded Alpha classifier requires a position+time seed. # Use the quadFitter. /rat/proc fitter /rat/procset method "quad" # Now run the Seeded Alpha classifier /rat/proc classifier /rat/procset classifier "SeededAlpha" /rat/procset seed "quad" /rat/proclast outroot /rat/procset file "seededAlpha.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