-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.csh
43 lines (33 loc) · 1.4 KB
/
setup.csh
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
#!/bin/csh
# Filename: setup.sh
# Description:
# Author: Latif Kabir < [email protected] >
# Created: Sat Aug 10 18:39:21 2019 (-0400)
# URL: jlab.org/~latif
set called=($_)
if ("$called" != "") then
set scriptdir=$called[2]
set UCR_SIM_HOME=`dirname $scriptdir`
set UCR_SIM_HOME=`c\d $UCR_SIM_HOME && pwd` # ensure absolute path
else
set scriptdir=$1
set UCR_SIM_HOME=$scriptdir
endif
setenv UCR_SIM_HOME "$UCR_SIM_HOME"
setenv EIC_SIM_UCR "/gpfs/mnt/gpfs01/star/pwg/kabir/eSimUCR/"
if (!($?LD_LIBRARY_PATH)) then
setenv LD_LIBRARY_PATH "${EIC_SIM_UCR}/pythia8/lib:${EIC_SIM_UCR}/eSimUCR/fastjet/lib:${EIC_SIM_UCR}/eic-smear/build/lib:${EIC_SIM_UCR}/HepMC2/lib:${UCR_SIM_HOME}/lib/:${EIC_SIM_UCR}/Delphes"
else
setenv LD_LIBRARY_PATH "${EIC_SIM_UCR}/pythia8/lib:${EIC_SIM_UCR}/eSimUCR/fastjet/lib:${EIC_SIM_UCR}/eic-smear/build/lib:${EIC_SIM_UCR}/HepMC2/lib:${UCR_SIM_HOME}/lib/:${LD_LIBRARY_PATH}:${EIC_SIM_UCR}/Delphes"
endif
if (!($?PATH)) then
setenv PATH "${UCR_SIM_HOME}/bin/"
else
setenv PATH "${UCR_SIM_HOME}/bin/:${PATH}"
endif
setenv PYTHIA8 "${EIC_SIM_UCR}/pythia8/"
setenv PYTHIA8DATA "${EIC_SIM_UCR}/pythia8/share/Pythia8/xmldoc/"
if (-f ${EIC_SIM_UCR}/root6/bin/thisroot.csh) then
source ${EIC_SIM_UCR}/root6/bin/thisroot.csh
endif
setenv ROOT_INCLUDE_PATH "${EIC_SIM_UCR}/eic-smear/include/:${EIC_SIM_UCR}/HepMC2/include/HepMC/:$EIC_SIM_UCR/Delphes/external/"