-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.csh
36 lines (26 loc) · 867 Bytes
/
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
## Some software is readily available on cvmfs / cmssw
setenv CERN_USER ${USER} # put your CERN username if different from enviornment name
setenv GOLDILOCKSDIR ${PWD}
echo ""
echo " * ------------------------------------------------- * "
echo " * Goldilocks Top Tagger * "
echo " * ------------------------------------------------- * "
echo ""
echo " > Setup CMS "
cmsenv
echo " > Setup CRAB "
source /cvmfs/cms.cern.ch/crab3/crab.csh
# Set grid proxy if not provided
echo " > Setup Grid "
voms-proxy-info -exists > /dev/null
setenv global_proxy_ok $?
if ( ${global_proxy_ok} != 0 ) then
echo " - No valid grid proxy found. Creating new one."
voms-proxy-init -voms cms
if ( $? != 0 ) then
echo " - Failed to create grid proxy."
endif
else
echo " - Grid proxy already set."
endif
## THE END ##