From Documentation
Jump to: navigation, search
Line 1: Line 1:
{{Template:Outdated}}
 
 
{{Software
 
{{Software
 
|package_name=GEANT4
 
|package_name=GEANT4
Line 5: Line 4:
 
|package_idnumber=59
 
|package_idnumber=59
 
}}
 
}}
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:
+
=Introduction=
 +
Provides a build of geant4 on sharcnet CentOS clusters .
  
module unload intel
+
=Usage=
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
+
  
 +
Geant4 comes with many examples useful for testing purposes, for example:
  
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.
+
==Interactive==
  
==References==
+
[roberpj@vdi-centos6:~] cd ~/samples/geant4/test-100202
 +
module load gcc/4.9.3 geant4/10.02.02
 +
cp -r /opt/sharcnet/geant4/10.02.02/share/Geant4-10.2.2/examples/extended/analysis/AnaEx01 .
 +
source /opt/sharcnet/geant4/10.02.02/share/Geant4-10.2.2/geant4make/geant4make.sh
 +
cd AnaEx01
 +
gmake clean_setup
 +
gmake setup
 +
gmake
 +
 
 +
[roberpj@vdi-centos6:~/samples/geant4/test-100202/AnaEx01] which AnaEx01
 +
~/geant4_workdir/bin/Linux-g++/AnaEx01
 +
 
 +
==Cluster==
 +
 
 +
sqsub -q serial -r 5m -o file.%J ~/geant4_workdir/bin/Linux-g++/AnaEx01
 +
 
 +
==Graphical==
 +
 
 +
None at this time.
 +
 
 +
=Notes=
 +
 
 +
Note at this time.
 +
 
 +
=References=
  
 
o Geant4 Homepage<br>
 
o Geant4 Homepage<br>

Revision as of 02:01, 9 September 2016

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


Introduction

Provides a build of geant4 on sharcnet CentOS clusters .

Usage

Geant4 comes with many examples useful for testing purposes, for example:

Interactive

[roberpj@vdi-centos6:~] cd ~/samples/geant4/test-100202
module load gcc/4.9.3 geant4/10.02.02
cp -r /opt/sharcnet/geant4/10.02.02/share/Geant4-10.2.2/examples/extended/analysis/AnaEx01 .
source /opt/sharcnet/geant4/10.02.02/share/Geant4-10.2.2/geant4make/geant4make.sh
cd AnaEx01
gmake clean_setup
gmake setup
gmake
[roberpj@vdi-centos6:~/samples/geant4/test-100202/AnaEx01] which AnaEx01 
~/geant4_workdir/bin/Linux-g++/AnaEx01

Cluster

sqsub -q serial -r 5m -o file.%J ~/geant4_workdir/bin/Linux-g++/AnaEx01

Graphical

None at this time.

Notes

Note at this time.

References

o Geant4 Homepage
http://geant4.web.cern.ch/geant4/

o Online User Documentation
http://geant4.web.cern.ch/geant4/support/userdocuments.shtml