# File: outntuple.mac # Brief: Macro showing how to output a standard ntuple file # # Date: 2014-07-24 # Contact: K Labe, # Revisions: # 2014-07-24 : P Jones - new file. # # This macro demostrates how to output events to the standard ntuple file, # called output.ntuple.root. /run/initialize # BEGIN EVENT LOOP /rat/proc count # An example processor /rat/procset update 5 # Output the mc data and mc_ev aspects to the ntuple /rat/proc outntuple /rat/procset file "output.ntuple.root" # END EVENT LOOP # Generate something to save, 1MeV electrons /generator/add combo gun:point /generator/vtx/set e- 0 0 0 1.0 /generator/pos/set 0 0 0 /generator/rate/set 1 /rat/run/start 10 exit