-
Notifications
You must be signed in to change notification settings - Fork 0
/
geant4.sh
executable file
·77 lines (63 loc) · 2.63 KB
/
geant4.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/sh
#-----------------------------------------------------------------------
# Bourne shell environment setup script for Geant4 11.0.2
#
# This script will configure your environment so that any Geant4 supplied
# tools, libraries and data are available in your PATH, library paths etc.
# Data libraries will only be setup if they were installed as part of the
# Geant4 installation.
#
# Source this script to perform the setup.
#
# This script is autogenerated by CMake DO NOT EDIT
#
#-----------------------------------------------------------------------
# Locate directory of self
#
# Self locate script when sourced
if [ -z "$BASH_VERSION" ]; then
# Not bash, so rely on sourcing from correct location
if [ ! -f /usr/local/bin/geant4.sh ]; then
echo 'ERROR: geant4.sh could NOT self-locate Geant4 installation'
echo 'This is most likely because you are using ksh, zsh or similar'
echo 'To fix this issue, cd to the directory containing this script'
echo 'and source it in that directory.'
return 1
fi
geant4_envbindir=$(pwd)
else
g4sls_sourced_dir=$(dirname ${BASH_ARGV[0]})
geant4_envbindir=$(cd $g4sls_sourced_dir > /dev/null ; pwd)
fi
#-----------------------------------------------------------------------
# Setup Geant4 binary and library paths...
#
if [ -z "${PATH-}" ] ; then
export PATH="$geant4_envbindir"
else
export PATH="$geant4_envbindir":${PATH}
fi
# echo "var:$geant4_envbindir"
#-----------------------------------------------------------------------
# Setup Third-party binary and library paths...
# - CLHEP
# - Builtin CLHEP used
# - XercesC
# GDML SUPPORT NOT AVAILABLE
#-----------------------------------------------------------------------
# Resource file paths
# - Datasets
export G4NEUTRONHPDATA="/usr/local/share/Geant4-11.0.2/data/G4NDL4.6"
export G4LEDATA="/usr/local/share/Geant4-11.0.2/data/G4EMLOW8.0"
export G4LEVELGAMMADATA="/usr/local/share/Geant4-11.0.2/data/PhotonEvaporation5.7"
export G4RADIOACTIVEDATA="/usr/local/share/Geant4-11.0.2/data/RadioactiveDecay5.6"
export G4PARTICLEXSDATA="/usr/local/share/Geant4-11.0.2/data/G4PARTICLEXS4.0"
export G4PIIDATA="/usr/local/share/Geant4-11.0.2/data/G4PII1.3"
export G4REALSURFACEDATA="/usr/local/share/Geant4-11.0.2/data/RealSurface2.2"
export G4SAIDXSDATA="/usr/local/share/Geant4-11.0.2/data/G4SAIDDATA2.0"
export G4ABLADATA="/usr/local/share/Geant4-11.0.2/data/G4ABLA3.1"
export G4INCLDATA="/usr/local/share/Geant4-11.0.2/data/G4INCL1.0"
export G4ENSDFSTATEDATA="/usr/local/share/Geant4-11.0.2/data/G4ENSDFSTATE2.3"
# - Fonts for Freetype
# FREETYPE SUPPORT NOT AVAILABLE
#----------------------------------------------------------------------