# File: electrondEdx.mac # Brief: This simulates electron particles to compare the dE/dx # # Date: 2014-07-21 # Contact: P G Jones, # Revisions: # 2014-07-21 : P Jones, moved to rat-tools validation. # # This macro simulates electron particles for tracking down to rest the dE/dx # is then extracted from the result. /rat/tracking/omit opticalphoton /rat/tracking/store full /rat/physics_list/setElectronCut 100000000.0 km /rat/physics_list/setGammaCut 100000000.0 km /rat/db/set DETECTOR geo_file "geo/snoplusnative_water.geo" /process/eLoss/fluct false /rat/physics_list/OmitCerenkov true /run/initialize # BEGIN EVENT LOOP /rat/proc count /rat/procset update 100 /rat/proc outroot /rat/procset file "electrondEdx.root" # END EVENT LOOP /generator/add combo gun:point /generator/vtx/set e- 0 0 0 10.0 /generator/pos/set 0 0 0 /generator/rate/set 1 /rat/run/start 1000