Tag Archives: wip

Geant4 for Dummies (Part 2)

At this point, this is just for my reference. I’ll expand on this a bit when I’ve got more to grips with the software.

To make and run an executable:

cd GEANT4/geant4.10.02.p01/examples/basic/B1
mkdir test
cd test
source /home/[user]/GEANT4/install/bin/geant4.sh
cmake -DGEANT4_DIR=/home/[user]/GEANT4/install/lib/Geant4-10.2.1 
make -j2

(Edit: see part 3 for a more in-depth explanation of how to make and run an executable.)