# File: simple_daq.mac # Brief: Macro for running the simple daq in RAT # # Date: 2014-12-19 # Contact: I Coulter, # Revisions: # # This macro shows to run the simpledaq processor. # Rather than the more realistic simulation, this puts all PMTs into a # single event. Each PMT hit has the time of the first photon hit and # the charge is the sum of all charge deposited on the anode, regardless # of time. /run/initialize # BEGIN EVENT LOOP /rat/proc simpledaq /rat/proc count /rat/procset update 10 /rat/proclast outroot /rat/procset file "simpledaq.root" # END EVENTLOOP /generator/add combo gun:fill:poisson /generator/vtx/set e- 0 0 0 1.0 /generator/pos/set 0.0 0.0 0.0 /generator/rate/set 1 /rat/run/start 10 exit