TF GEANT4.9.6

From New IAC Wiki
Revision as of 00:28, 4 January 2019 by Foretony (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Simulations_of_Particle_Interactions_with_Matter#Building_GEANT4.9.6

Downolad and compile source code

wget http://geant4.cern.ch/support/source/geant4.9.6.p02.tar.gz .

mkdir geant4.9.6

cd geant4.9.6/

tar -zxvf ../geant4.9.6.p02.tar.gz

mkdir geant4.9.6.p02-build

cd geant4.9.6.p02-build

You need data file for the physics interaction processes

If the server is up you can tell CMake to download them for you

cmake -DCMAKE_INSTALL_PREFIX=~/src/GEANT4/geant4.9.6/geant4.9.6-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON ~/src/GEANT4/geant4.9.6/geant4.9.6.p02

make -j2 VERBOSE=1

make install

Compile sample program

cd ~/src/GEANT4/geant4.9.6/geant4.9.6.p02/examples/novice/N02

cmake .

make -f Makefile


Simulations_of_Particle_Interactions_with_Matter#Building_GEANT4.9.6