Geant4

CLHEP
See CLHEP.

Install
Download the GNU or Linux tar format, compressed using gzip at: http://geant4.web.cern.ch/geant4/support/download.shtml

At the same site download this:

Neutron data files with thermal cross sections Data files for low energy electromagnetic processes Data files for photon evaporation Data files for radioactive decay hadronic processes Data files for nuclear shell effects in INCL/ABLA hadronic model

Apply icc 10.0 patch (optional)
You should do it only if you want to use intel icc compiler!

Download it here

Move the file to geant4.9.1 directory and patch it:

Configure -build
Just hit enter for all the answers not shown here:

Compiler
If you want to user the intel compiler, digit 2 when appear:

To modify default settings, select number above

and then write icc.

headers
Do you want to copy all Geant4 headers in one directory? y

CLHEP path
Please, specify where CLHEP is installed: /scratch/usr/CLHEP (or your path)

Libs
Do you want to build 'shared' (.so) libraries? y Do you want to build 'static' (.a) libraries too? n

G4VIS_USE_OPENGLX
G4VIS_BUILD_OPENGLX_DRIVER G4VIS_USE_OPENGLX It is an interface to the de facto standard 3D graphics library, OpenGL. It is well suited for real-time fast visualization and prototyping. The X11 version of the OpenGL libraries is required. y

G4VIS_USE_RAYTRACERX
G4VIS_BUILD_RAYTRACERX_DRIVER G4VIS_USE_RAYTRACERX Allows for interactive ray-tracing graphics through X11. The X11 package is required. y

Last question
Press [Enter] to start installation or use a shell escape to edit config.sh: hit [Enter] and you can go get a coffee!!

Env file
The file with the environment variables can be found at: /scratch/src/geant4/geant4.9.1.p01/env.sh

Test
At the prompt enter this lines:

If you gat a window like the these the geant4 is correctly installed.



To quit use the exit command.