(→References) |
|||
Line 4: | Line 4: | ||
|package_idnumber=59 | |package_idnumber=59 | ||
}} | }} | ||
− | The latest version of geant4 (9. | + | The latest version of geant4 (9.6.1) is installed on CentOS clusters under /opt/sharcnet/geant4/9.6.1/gcc . |
Geant4 comes with many examples useful for testing purposes. You can start with a simple test. For instance, here are the steps to compile and run an analysis example A01 in ~/testing directory inside your home directory: | Geant4 comes with many examples useful for testing purposes. You can start with a simple test. For instance, here are the steps to compile and run an analysis example A01 in ~/testing directory inside your home directory: | ||
Line 10: | Line 10: | ||
module unload intel | module unload intel | ||
module load gcc/4.5.3 | module load gcc/4.5.3 | ||
− | module load geant4/gcc/9. | + | module load geant4/gcc/9.6.1 |
export G4WORKDIR=~/testing | export G4WORKDIR=~/testing | ||
− | cp -a /opt/sharcnet/geant4/9. | + | cp -a /opt/sharcnet/geant4/9.6.1/gcc/examples/extended/analysis/A01 $G4WORKDIR/A01 |
− | source /opt/sharcnet/geant4/9. | + | source /opt/sharcnet/geant4/9.6.1/gcc/share/Geant4-9.6.1/geant4make/geant4make.sh |
export CXX=g++ | export CXX=g++ | ||
cd $G4WORKDIR/A01 | cd $G4WORKDIR/A01 | ||
− | make | + | make |
− | + | ||
sqsub -q serial -r 5m -o output.log ../bin/Linux-g++/A01app | sqsub -q serial -r 5m -o output.log ../bin/Linux-g++/A01app | ||
Revision as of 15:29, 22 May 2013
GEANT4 |
---|
Description: Suite of programs for the simulation of the passage of particles through matter |
SHARCNET Package information: see GEANT4 software page in web portal |
Full list of SHARCNET supported software |
Contents
The latest version of geant4 (9.6.1) is installed on CentOS clusters under /opt/sharcnet/geant4/9.6.1/gcc .
Geant4 comes with many examples useful for testing purposes. You can start with a simple test. For instance, here are the steps to compile and run an analysis example A01 in ~/testing directory inside your home directory:
module unload intel module load gcc/4.5.3 module load geant4/gcc/9.6.1 export G4WORKDIR=~/testing cp -a /opt/sharcnet/geant4/9.6.1/gcc/examples/extended/analysis/A01 $G4WORKDIR/A01 source /opt/sharcnet/geant4/9.6.1/gcc/share/Geant4-9.6.1/geant4make/geant4make.sh export CXX=g++ cd $G4WORKDIR/A01 make sqsub -q serial -r 5m -o output.log ../bin/Linux-g++/A01app
Note that geant4 makefiles will omit the environment variable $LD_RUN_PATH which has a path to gcc libraries, instead encoding only its own path to the application library you are building ($G4WORKDIR/tmp/Linux-g++/A01app in our example), so we need to set LD_LIBRARY_PATH by hand before running geant4 as illustrated by the example above.
References
o Geant4 Homepage
http://geant4.web.cern.ch/geant4/
o Online User Documentation
http://geant4.web.cern.ch/geant4/support/userdocuments.shtml