Geant4 tutorial exercises

The directory structure of your simulation area, $HOME/tutorial in this case, should be as follows:
 GNUmakefile : where appear the name of the executable, 
               in this case myMain;
 
 include/ : where all the header files (.hh, .h, .icc) stay;

 src/ : where all the corresponding source or implementation
        files (.cc) stay.
After you have setup your environmental variables, to build the executable type:
     
                        gmake
which produces the executable (myMain) in: $G4WORKDIR/bin/$G4SYSTEM.
Suppose that your PATH includes $G4WORKDIR/bin/$G4SYSTEM you can execute it by simply typing its name, myMain.
You have two possibilities:
  1. myMain macro.g4 to run in batch;
  2. myMain to run interactively,
Other files or subdirectories can be added if you want. In this case, the training subdirectory contains the exercises and their solutions.

NB - At the very beginning, you will not find GNUmakefile, and the directories include and src. It is the purpose of the 0_start/ exercise to provide it, and to fill properly the directories include and src. See below.


Here how to use training directory is organized.

training has two subdirectories: