# File: inhepevt.mac # Brief: Macro showing how to load events from the HEPEVT format and simulate # them # # Date: 2014-07-24 # Contact: M Strait, # Revisions: # 2014-07-24: P Jones - copied aspects from hepevt.mac file # # This macro demostrates how to load events from a hepevt file called # input.hepevt, simulate them, run processors on them including output to a # root file called output.root. /run/initialize # BEGIN EVENT LOOP /rat/proc count # An example processor /rat/procset update 5 /rat/proc outroot /rat/procset file "output.root" # END EVENT LOOP # Read particle info from ASCII HEPEVT file. /generator/add inhepevt example.hepevt # Stops reading either at the end of the file or after this many events, # whichever is first /rat/run/start 10 exit