-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetEnvironment.sh
71 lines (55 loc) · 2.18 KB
/
SetEnvironment.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
#!/bin/bash
# call it by "source SetEnvironment.sh"
#ly 2015.07.09 modified from KKauder's SetEnvironment.csh
#ly set environment variables for linking library
# CHANGE the following to suit your environment
declare -x BASEDIR=/home/fas/caines/ly247/Software
#### ROOT
#declare -x ROOTSYS=/home/hep/share/app/root # already set up in ~/.barshrc
### FastJet
declare -x FASTJETDIR=${BASEDIR}/fastjet-install
### PYTHIA8
declare -x PYTHIA8DIR=${BASEDIR}/pythia8215
declare -x PYTHIA8DATA=${PYTHIA8DIR}/share/Pythia8/xmldoc
### TStarJetPicoDst structure
declare -x STARPICOPATH=${BASEDIR}/PicoCode/eventStructuredAu
#declare -x STARPICOPATH=/home/hep/caines/ly247/Scratch/pp12Pico_150407/code/StRoot/eventStructure
### RooUnfold. package to unfold jet spectra
declare -x RooUnfold=${BASEDIR}/RooUnfold
##### On rhic21, you can use
#if ( `echo $HOST|grep -c rhic21` ) then
# declare -x BASEDIR=/Users/putschke
# declare -x ROOTSYS=/usr/local/root_v5.32_binary_m64/
# declare -x FASTJETDIR=${BASEDIR}/fastjet3
# declare -x PYTHIA8DIR=${BASEDIR}/pythia8100.new
# declare -x PYTHIA8DATA=${PYTHIA8DIR}/xmldoc
# declare -x STARPICOPATH=/Users/kkauder/eventStructuredAu
#endif
#
############## Done with indivivual settings.
###### Update paths
if [[ -z $LD_LIBRARY_PATH ]]
then
declare -x LD_LIBRARY_PATH
fi
if [[ -z $DYLD_LIBRARY_PATH ]]
then
declare -x DYLD_LIBRARY_PATH
fi
declare -x PATH=./bin:${ROOTSYS}/bin:${PATH}
declare -x CPATH=./bin:${ROOTSYS}/bin:${STARPICOPATH}:${CPATH} #ly
declare -x LD_LIBRARY_PATH=${ROOTSYS}/lib:${FASTJETDIR}/lib:${STARPICOPATH}:${PYTHIA8DIR}/lib:${RooUnfold}:${LD_LIBRARY_PATH}
declare -x DYLD_LIBRARY_PATH=${ROOTSYS}/lib:${FASTJETDIR}/lib:${STARPICOPATH}:${PYTHIA8DIR}/lib:${RooUnfold}:${DYLD_LIBRARY_PATH}
# ly if [[ $?TERM == 0 || $?prompt == 0 ]] exit 0
echo ''
#echo 'Setup ROOT, ktJet (including FastJet)'
echo 'Setup ktJet, STARJetPico (including FastJet)'
echo '====================================='
echo ''
echo "<I>---------------Info--------------------<I>"
echo "Setting up the following environments: "
echo "ROOT: " $ROOTSYS
echo "FastJet: " $FASTJETDIR
echo "STARPICOPATH: " $STARPICOPATH
echo "<I>---------------Info--------------------<I>"
echo ""