# Create the beam /gate/source/addSource mybeam gps /gate/source/mybeam/gps/particle gamma # Photon # Define type of energy # Monoenergetic source /gate/source/mybeam/gps/ene/type Mono # Monoenergetic /gate/source/mybeam/gps/ene/mono 0.1 MeV # Monoenergetic 0.1 MeV # Define the geometry of the source /gate/source/mybeam/gps/pos/type Plane # The source is a plane. Can also be: Point, Beam, Volume, or Surface /gate/source/mybeam/gps/pos/shape Rectangle # Can also be Circle, Annulus, Ellipsoid and Square for a plane. For Surface # and Volume it can be Sphere, Ellipsoid, Cylinder, or Para. A Point has no shape. /gate/source/mybeam/gps/pos/rot1 0 0 1 # Defines the orientation of the source. Column (or maybe row) 1 of rotation matrix. /gate/source/mybeam/gps/pos/rot2 0 1 0 # Defines the orientation of the source. Column (or maybe row) 2 of rotation matrix. /gate/source/mybeam/gps/pos/halfx 0.5 cm # Half the x size of the rectangle /gate/source/mybeam/gps/pos/halfy 0.5 cm # Half the y size of the rectangle # Place the source. /gate/source/mybeam/gps/pos/centre -0.5 0. 0. cm #The angular distribution of the source /gate/source/mybeam/gps/direction 1 0 0 # To check that sources are at the right location in the geometry, you can use the following command /gate/source/mybeam/visualize 1000 red 2