Particles from a Square Plane
The particle source, gamma-rays originated from a square plane, constructed in C++ in the Geant4 basic example B1 is re-implemented using gps macro commands in mingle.mac:
/gps/pos/type Plane
/gps/pos/shape Square
/gps/pos/halfx 80 mm
/gps/pos/halfy 80 mm
B1’s detector model defined in C++ is also re-implemented with simple text geometry description in detector.tg.
Assuming MinGLE is availalbe, one can launch it in this folder and then run mingle.mac with /control/execute mingle.mac
.
In order to demonstrate the result on YouTube, mingle.mac calls tsg.mac for animation, which in turn calls run.mac to generate each picture in the animation.
mingle.mac itself is called by gears.mac so that the same simulation can be run using GEARS,
cd /path/to/this/folder
gears
/control/execute gears.mac