# File: change_geometry.mac
# Brief: Macro showing how to change the geometry in RAT
#
# Date: 2014-09-07
# Contact: P G Jones,
# Revisions:
#
# This macro demonstrates how to change the geo file, load a source
# geometry and move a volume.
# Change the geometry type or phase
/rat/db/set DETECTOR geo_file "geo/snoplus.geo"
# For example to the airfill phase "geo/snoplus_air.geo"
# waterfill phase "geo/snoplus_water.geo"
# partial-fill phase "geo/snoplus_partial.geo"
# te-loaded phase "geo/snoplus_te.geo"
# A faster (but simplified) geometry can be loaded by using the corresponding
# simple geo files by using "_simple.geo" at the end
# Load a calibration source geometry, e.g. N16
/rat/db/load geo/calib/N16Source.geo
# Other sources than be deployed include "geo/calib/AmBeSource.geo"
# "geo/calib/BucketSource.geo"
# "geo/calib/CanSource.geo"
# "geo/calib/CerenkovSource.geo"
# "geo/calib/CerenkovSourceNew.geo"
# "geo/calib/Co57Source.geo"
# "geo/calib/SNOLi8Source.geo"
# "geo/calib/Sc48Source.geo"
# Move the av down 10mm, this moves the ropes with it
/rat/db/set GEO[av] position [0.0, 0.0, -10.0]
# Rotate the av 1 degree about z, this also rotates ropes
/rat/db/set GEO[av] rotation [0.0, 0.0, 1.0]
/run/initialize
# Don't forget to add something here for rat to do...
exit