Code for Geant4 simulations of the XAMS (Xenon Amsterdam) time projection chamber in its cryostat.