# File: detection.mac
# Brief: This photons in an empty (completely) detector
#
# Date: 2014-07-21
# Contact: P G Jones,
# Revisions:
# 2014-07-21 : P Jones, moved to rat-tools validation.
#
# This tests the detection efficiency of the PMTs
/rat/physics_list/OmitMuonicProcesses true
/rat/physics_list/OmitHadronicProcesses true
/rat/db/set DETECTOR geo_file "geo/snoplus_water_simple.geo"
/rat/db/set GEO[inner_av] enable 0
/rat/db/set GEO[av] enable 0
/rat/db/set GEO[neck] enable 0
/run/initialize
# BEGIN EVENT LOOP
/rat/proc count
/rat/procset update 5
/rat/proc outroot
/rat/procset file "detection.root"
# END EVENT LOOP
/generator/add combo gun:point:uniform
/generator/vtx/set opticalphoton 0 0 0 2.955e-6 0 0 0 10000
/generator/pos/set 0 0 0
/generator/rate/set 1
/rat/run/start 100
exit