# File: scintillation_physics.mac
# Brief: Macro showing how to alter the scintillation physics
#
# Date: 2014-08-05
# Contact: P G Jones,
# Revisions:
#
# This macro demostrates how to change the scintillation physics.
/run/initialize
/rat/physics/scintillation/off # No scintillation
/rat/physics/scintillation/reemission off
# Set the maximum number of photons produced per charged particle step
/rat/physics/scintillation/maxTracksPerStep 3
# Set the mean number of photons produced per secondary particle
/rat/physics/scintillation/meanPhotonsPerSecondary 10
# Set the quenching factor (overrides default Birk's factor usage)
/rat/physics/scintillation/setQF 1
# 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