#!/bin/sh

#-----------------------------------------------------------------------
# Bourne shell environment setup script for Geant4 10.6.3
#
# 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 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



#-----------------------------------------------------------------------
# Setup Third-party binary and library paths...
# - CLHEP
# - Builtin CLHEP used

# - XercesC
# GDML Supported, no configuration of Xerces-C required

#-----------------------------------------------------------------------
# Resource file paths
# - Datasets
export G4NEUTRONHPDATA="/opt/local/share/Geant4/Data/Geant4.10.6/G4NDL4.6"
export G4LEDATA="/opt/local/share/Geant4/Data/Geant4.10.6/G4EMLOW7.9.1"
export G4LEVELGAMMADATA="/opt/local/share/Geant4/Data/Geant4.10.6/PhotonEvaporation5.5"
export G4RADIOACTIVEDATA="/opt/local/share/Geant4/Data/Geant4.10.6/RadioactiveDecay5.4"
export G4PARTICLEXSDATA="/opt/local/share/Geant4/Data/Geant4.10.6/G4PARTICLEXS2.1"
export G4PIIDATA="/opt/local/share/Geant4/Data/Geant4.10.6/G4PII1.3"
export G4REALSURFACEDATA="/opt/local/share/Geant4/Data/Geant4.10.6/RealSurface2.1.1"
export G4SAIDXSDATA="/opt/local/share/Geant4/Data/Geant4.10.6/G4SAIDDATA2.0"
export G4ABLADATA="/opt/local/share/Geant4/Data/Geant4.10.6/G4ABLA3.1"
export G4INCLDATA="/opt/local/share/Geant4/Data/Geant4.10.6/G4INCL1.0"
export G4ENSDFSTATEDATA="/opt/local/share/Geant4/Data/Geant4.10.6/G4ENSDFSTATE2.2"


# - Fonts for Freetype
# FREETYPE SUPPORT NOT AVAILABLE

#----------------------------------------------------------------------

