# Geometry of the SPECT system, including the world, heads, shielding,
# collimators, holes, crystal, back compartment and table 

# G E O M E T R Y
#####
# World
##
/gate/world/geometry/setXLength 100 cm
/gate/world/geometry/setYLength 100 cm
/gate/world/geometry/setZLength 100 cm

# Scanner Head
##
/gate/world/daughters/name SPECThead
/gate/world/daughters/insert box
/gate/SPECThead/geometry/setXLength 8.59 cm
/gate/SPECThead/geometry/setYLength 21. cm
/gate/SPECThead/geometry/setZLength 30. cm
/gate/SPECThead/placement/setTranslation  20.0 0. 0. cm #radius variies between 10cm and 30cm#
/gate/SPECThead/setMaterial Air
/gate/SPECThead/repeaters/insert ring
/gate/SPECThead/ring/setRepeatNumber 2
/gate/SPECThead/moves/insert orbiting
/gate/SPECThead/orbiting/setSpeed 0.9 deg/s
/gate/SPECThead/orbiting/setPoint1 0 0 0 cm
/gate/SPECThead/orbiting/setPoint2 0 0 1 cm
/gate/SPECThead/vis/forceWireframe

# Shielding
##
/gate/SPECThead/daughters/name shielding
/gate/SPECThead/daughters/insert box
/gate/shielding/geometry/setXLength  8.59 cm
/gate/shielding/geometry/setYLength 21. cm
/gate/shielding/geometry/setZLength 30. cm
/gate/shielding/placement/setTranslation  0. 0. 0. cm
/gate/shielding/setMaterial Lead
/gate/shielding/vis/setColor red
/gate/shielding/vis/forceWireframe

# CRYSTAL
##
/gate/SPECThead/daughters/name crystal
/gate/SPECThead/daughters/insert box
/gate/crystal/geometry/setXLength  1.59 cm #crystal thickness!#
/gate/crystal/geometry/setYLength  19. cm
/gate/crystal/geometry/setZLength  28. cm
/gate/crystal/placement/setTranslation  0. 0. 0. cm
/gate/crystal/setMaterial NaI
/gate/crystal/vis/setColor yellow

# BACK-COMPARTMENT
##
/gate/SPECThead/daughters/name compartment
/gate/SPECThead/daughters/insert box
/gate/compartment/geometry/setXLength 2.5 cm
/gate/compartment/geometry/setYLength 19. cm
/gate/compartment/geometry/setZLength 28. cm
/gate/compartment/placement/setTranslation   2.045 0. 0. cm
/gate/compartment/setMaterial Glass
/gate/compartment/vis/setColor grey

# TABLE
##
#/gate/world/daughters/name table
#/gate/world/daughters/insert box
#/gate/table/geometry/setXLength 1.2 cm #table top thickness#
#/gate/table/geometry/setYLength 10. cm #table top width -5cm#
#/gate/table/geometry/setZLength 40. cm #should be table length - it's just a guess#
#/gate/table/placement/setRotationAxis 0 0 1
#/gate/table/placement/setRotationAngle 90 deg
#/gate/table/placement/setTranslation 0. -5.3 0. cm
#/gate/table/setMaterial Glass
#/gate/table/vis/setColor grey







