TF GEANT4.9.6: Difference between revisions

From New IAC Wiki
Jump to navigation Jump to search
Foretony (talk | contribs)
No edit summary
Foretony (talk | contribs)
No edit summary
 
Line 1: Line 1:
[[Simulations_of_Particle_Interactions_with_Matter#Building_GEANT4.9.6]]
[[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 .
wget http://geant4.cern.ch/support/source/geant4.9.6.p02.tar.gz .


Line 22: Line 22:


make install
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]]
[[Simulations_of_Particle_Interactions_with_Matter#Building_GEANT4.9.6]]

Latest revision as of 00:28, 4 January 2019

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