This example shows how to build a Time Of Flight Scintillator array in a barrel configuration with few lines a code. The scintillators are trapezoids: the base closest to the beam is smaller than the one further away to ensure full azimuthal coverage.
Notice in geometry.pl how users can focus on the geometry dimensions and positions and do not need to know c++ or geant4.
How to run¶
Unpack the tarball in a directory of your choice:
tar -xpvf exampleCentralTOF.tar
Run the script to build the geometry, material, and define hit and banks:
Notice (geometry.pl) how easy is to build a barrel setup, with trapezoidal shapes. You can change any of these parameters - but you do not have to change and recompile any gemc/geant4 code.
run gemc using the gcard provided:
Run some events and look at the signal GUI. You can select various quantities to display on screen.