# File: nearAV.mac # Brief: Short macro showing how to run the nearAV fitter # # 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 nearAV fitter. # This finds a fitted position by first calculating the event direction, # by summing over hit PMTs, retrieves the ratio of hit PMTs with some # angle between PMT and event over total hit PMTs (i.e. classifier # result) before finding the event radius by matching the ratio value # against previously co-ordinated values. # /run/initialize # BEGIN EVENT LOOP /rat/proc frontend /rat/proc trigger /rat/proc eventbuilder /rat/proc count /rat/procset update 10 /rat/proc calibratePMT # First, need to run the nearAV classifer /rat/proc classifier /rat/procset classifier "nearAVAngular" # Then run the nearAVAngular fitter itself /rat/proc fitter /rat/procset method "nearAVAngular" /rat/proclast outroot /rat/procset file "nearAV.root" # END EVENTLOOP /generator/add combo gun:point /generator/vtx/set e- 5950 0 0 1.0 /generator/pos/set 0 0 0 /generator/rate/set 1 /rat/run/start 10 exit