# File: scintillation.mac
# Brief: This simulates electrons to produce scintillation photons
#
# Date: 2014-07-21
# Contact: P G Jones,
# Revisions:
# 2014-07-21 : P Jones, moved to rat-tools validation.
#
# This macro simulates electrons so that the scintillated photons can be
# extracted.
/rat/tracking/store full
/rat/physics_list/OmitMuonicProcesses true
/rat/physics_list/OmitHadronicProcesses true
/run/initialize
# BEGIN EVENT LOOP
/rat/proc count
/rat/procset update 10
/rat/proc outroot
/rat/procset file "scintillation.root"
# END EVENT LOOP
/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 50
exit