Example B1
In Geant4 folder there is another folder that it's name is example, here you can find many examples in different categories and also functions.
Here we want to open a basic example. Enter basic folder. In this folder you can find five examples (B1, B2, B3, B4 and B5). Enter B1 folder and make another folder.
mkdir build
Enter the folder build and write following commands in terminal:
cmake ..
make -j4
For running example B1:
./exampleB1