-
Notifications
You must be signed in to change notification settings - Fork 0
/
cit_watenv.sh
123 lines (83 loc) · 3.73 KB
/
cit_watenv.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# -----------------------------------------------------------------
# WAT env for CIT CLUSTER
# -----------------------------------------------------------------
if [[ -z $LD_LIBRARY_PATH ]]; then
export LD_LIBRARY_PATH=""
fi
export SITE_CLUSTER="CIT"
export BATCH_SYSTEM="CONDOR"
export _USE_ICC=1
export _USE_CPP11=1
export _USE_ROOT6=1
unset _USE_PEGASUS
# -----------------------------------------------------------------
# this section mandatory to compile the WAT libraries
# -----------------------------------------------------------------
export HOME_LIBS="/home/waveburst/SOFT/"
export ROOT_VERSION="root_v6.14.06_icc"
export ROOTSYS="${HOME_LIBS}/ROOT/${ROOT_VERSION}"
export HOME_FRLIB="${HOME_LIBS}/FRAMELIB/libframe-8.33_root-6.14.06_icc"
export _USE_HEALPIX=1
export HOME_HEALPIX="${HOME_LIBS}/HEALPix/Healpix_3.40"
export HOME_CFITSIO="${HOME_LIBS}/CFITSIO/cfitsio-3.45"
export _USE_LAL=1
export HOME_LAL="${HOME_LIBS}/LAL/lalsuite-v6.79"
export LAL_INC="${HOME_LAL}/include"
export LALINSPINJ_EXEC="${HOME_LAL}/bin/lalapps_inspinj"
export _USE_EBBH=1
export HOME_CVODE="${HOME_LIBS}/CVODE/sundials-2.7.0/dist"
# -----------------------------------------------------------------
# this section is specific for the CWB pipeline
# -----------------------------------------------------------------
export CWB_ANALYSIS="2G"
export CWB_CONFIG="${HOME_LIBS}/cWB/tags/config/cWB-OfflineO3-v8-O3a"
export HOME_WWW="~waveburst/waveburst/WWW"
export HOME_CED_WWW="~waveburst/waveburst/WWW/ced"
export HOME_CED_PATH="/home/waveburst/public_html/waveburst/WWW/ced"
export CWB_DOC_URL="https://ldas-jobs.ligo.caltech.edu/~waveburst/waveburst/WWW/doc"
export CWB_REP_URL="https://ldas-jobs.ligo.caltech.edu/~waveburst/waveburst/WWW/reports"
export CWB_GIT_URL="https://git.ligo.org/cWB"
export HOME_WAT_FILTERS="${CWB_CONFIG}/XTALKS"
export HOME_BAUDLINE="${HOME_LIBS}/BAUDLINE/baudline_1.08_linux_x86_64"
export HOME_ALADIN="${HOME_LIBS}/ALADIN/Aladin.v7.533"
export HOME_SKYMAP_LIB="${HOME_LIBS}/SKYMAP/skymap_statistics"
export CWB_USER_URL="https://ldas-jobs.ligo.caltech.edu/~${USER}/reports"
export CWB_PEGASUS_WATENV="/cvmfs/virgo.infn.it/waveburst/SOFT/WAT/trunk/cnaf_watenv.sh"
export CWB_PEGASUS_SITE="creamce_cnaf"
# -----------------------------------------------------------------
# DO NOT MODIFY !!!
#
# 1) In this section the HOME_WAT env is automatically initialized
# 2) Init Default cWB library
# 3) Init Default cWB config
# -----------------------------------------------------------------
MYSHELL=`readlink /proc/$$/exe`
if [[ "$MYSHELL" =~ "tcsh" ]]; then
echo "\nEntering in TCSH section..."
CWB_CALLED=($_)
if [[=$#CWB_CALLED = 2 ]]; then # alias
set CWB_CALLED=`alias=$CWB_CALLED`
fi
if [[ "$CWB_CALLED" != "" ]]; then
WATENV_SCRIPT=`readlink -f $CWB_CALLED[2]`
else
echo "\nError: script must be executed with source command"
return 0 1
fi
script_dir=`dirname $WATENV_SCRIPT`
fi
if [[ "$MYSHELL" =~ "bash" ]]; then
echo ""
echo "Entering in BASH section..."
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) #_SKIP_CSH2SH_
fi
if [[ "$MYSHELL" =~ "zsh" ]]; then
echo "\nEntering in ZSH section..."
script_dir=$( cd "$( dirname "${(%):-%N}" )" && pwd ) #_SKIP_CSH2SH_
fi
export HOME_WAT=$script_dir
export HOME_WAT_INSTALL="${HOME_WAT}/tools/install"
source $HOME_WAT/tools/config.sh
source $CWB_CONFIG/setup.sh
source $CWB_SCRIPTS/cwb_watenv.sh
export CWB_HTML_INDEX="${CWB_MACROS}/html_templates/html_index_template_modern.txt"