# File: secondary_cuts.mac # Brief: Macro showing how to alter the secondary particle cuts # # Date: 2014-08-05 # Contact: P G Jones, # Revisions: # # This macro demostrates how change the secondary particle production cuts. # These define the minimum expected range for a secondary particle for it # to be individually simulated. /rat/physics_list/setGammaCut 10 km /rat/physics_list/setElectronCut 10 km /rat/physics_list/setMuonCut 10 km /rat/physics_list/setAllCuts 10 km # All secondary production /run/initialize # BEGIN EVENT LOOP /rat/proc outroot /rat/procset file "output.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