# File: alphadEdx.mac
# Brief: This simulates alpha 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 high energy alpha particles for tracking down to rest
# the dE/dx is then extracted from the result.
/rat/tracking/omit opticalphoton
/rat/tracking/store full
/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 "alphadEdx.root"
# END EVENT LOOP
/generator/add combo gun:point
/generator/vtx/set alpha 0 0 0 100.0
/generator/pos/set 0 0 0
/generator/rate/set 1
/rat/run/start 1000