2 source /cvmfs/fermilab.opensciencegrid.org/products/common/etc/setups
5 # For lcg-cp, which is not installed on all osg machines
6 #source /cvmfs/oasis.opensciencegrid.org/mis/osg-wn-client/3.2/current/el6-x86_64/setup.sh
9 if [ -z "${G4LBNE_IS_SETUP}" ]; then
14 export EXPERIMENT=argoneut
17 export GROUP=microboone
18 export EXPERIMENT=uboone
22 export EXPERIMENT=dune
26 export EXPERIMENT=dune
29 echo experiment is $GROUP
32 export LBNE_PRODUCT_DIR=/cvmfs/fermilab.opensciencegrid.org/products/larsoft/
33 source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
35 setup geant4 v4_10_2_p02b -q e10:prof
36 setup fftw v3_3_4 -q prof
38 setup dk2nu v01_04_01d -q e10:prof:r6
41 ##!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
43 ## Set G4WORKDIR to g4lbne directory, if not already set
45 ##!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
47 # SETUPDIR=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)/`basename "${BASH_SOURCE[0]}"`
48 SETUPDIR=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)
49 echo "SETUPDIR is $SETUPDIR"
50 #if [ -z "$G4WORKDIR" ]; then
51 # export G4WORKDIR=`dirname $SETUPDIR`
52 # echo "G4WORKDIR is not set... Setting it to "$G4WORKDIR
55 export G4WORKDIR=`dirname ${SETUPDIR}`
56 export G4LBNEWORKDIR=`dirname ${SETUPDIR}`
57 export G4LBNE_DIR=`dirname $SETUPDIR`
59 echo "G4WORKDIR: $G4WORKDIR"
60 echo "G4LBNEWORKDIR: $G4LBNEWORKDIR"
61 echo "G4LBNE_DIR: $G4LBNE_DIR"
63 export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$G4LIB/Linux-g++"
65 # echo "*********************"
66 # echo Locating ROOT...
68 # echo "*********************"
69 # echo Locating Geant4...
71 # echo "*********************"
72 # echo Locating CLHEP...
74 # echo "*********************"
76 export G4WORKDIR=`pwd`
78 echo G4WORKDIR is ${G4WORKDIR}
79 export LD_LIBRARY_PATH=${G4LBNE_DIR}:${LD_LIBRARY_PATH}
80 export LD_LIBRARY_PATH=${G4LBNE_DIR}/shared_libraries:${LD_LIBRARY_PATH}
81 export LD_LIBRARY_PATH=${G4LBNE_DIR}/build:${LD_LIBRARY_PATH}
83 echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH}
88 # Set a flag to suppress unnecessary re-executions of this script.
90 #export G4LBNE_IS_SETUP=1
92 # Setup grid submit tools if not on a grid node
93 if [ -z "${_CONDOR_SCRATCH_DIR}" ]; then
94 echo "_CONDOR_SCRATCH_DIR is not set... so I'm assuming we're not running on a grid node.... Setting up jobsub tools."