From Documentation
Jump to: navigation, search
(References)
Line 28: Line 28:
 
http://geant4.web.cern.ch/geant4/
 
http://geant4.web.cern.ch/geant4/
  
o Online User Documentation
+
o Online User Documentation<br>
 
http://geant4.web.cern.ch/geant4/support/userdocuments.shtml
 
http://geant4.web.cern.ch/geant4/support/userdocuments.shtml

Revision as of 20:07, 28 February 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.5) is installed on CentOS clusters under /opt/sharcnet/geant4/9.5/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.5
export G4WORKDIR=~/testing
cp -a /opt/sharcnet/geant4/9.5/gcc/examples/extended/analysis/A01 $G4WORKDIR/A01
source /opt/sharcnet/geant4/9.5/gcc/share/Geant4-9.5.0/geant4make/geant4make.sh
export CXX=g++
cd $G4WORKDIR/A01 
make # LD_RUN_PATH is ignored by this makefile, so need to set LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/opt/sharcnet/gcc/4.5.3/lib64:$LD_LIBRARY_PATH
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