Instructions for participants – 2017


Basic level of C++ programming language is required. For those who need a revision (which can be useful also for other applications than GEANT4), you can use for example the courses for M1 given by Ivana Hrivnacova:

For Geant4 training, it would be helpful to review the following material available
on the site:

  • Presentations:  Basic Linux, basic C ++, C ++ IO, Good Practices, OOP,
    Classes STL Functions, Life Cycle, Heritage and optionally [Qt], [DrawQt]
  • The TPs: 1st program, Image, Shapes, Shapes II, and optionally [Qt], [DrawQt]
  • You can follow the schedule provided in the TP list and jump courses / TPs, which are not in the list above. In the TPs Shapes and Shapes II, you can skip steps with svn and doxygen.

Geant4 Installation

The hands on will be done on the classroom computers where the Geant4 software will already be installed. If participants want to work with their laptops, it is necessary to install Geant4 before start of the course. No support for installation will be provided during the course .

The necessary configuration is as follows:
– Geant4 version 10.03.p01
– installation by CMake in multi-threading mode
– with the optional modules (used in the course):
– – Qt
– – GDML – requires xerces -c installed on the system

See Geant4 Installation Guide and the Release notes if necessary.

The CMake options of the configuration above:


Which gives the following command line to compile and install Geant4 de façon générale :

$> mkdir build
$> cd build
$> make install

And for mac users

// If you don't have brew installer
$> /usr/bin/ruby -e "$(curl -fsSL"

// Geant4 installation with qt5 and gdml 

$> brew install  homebrew/science/geant4 --with-gdml  --with-qt5