forked from latinos/setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetupShapeOnly.sh
More file actions
executable file
·91 lines (70 loc) · 3.17 KB
/
SetupShapeOnly.sh
File metadata and controls
executable file
·91 lines (70 loc) · 3.17 KB
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
if [ -z $CMSSW_BASE ]; then
echo "======================================="
echo "No CMS environment detected; stopping..."
echo "======================================="
exit 1
fi
source $CMSSW_BASE/src/LatinosSetup/Functions.sh
if [[ "$CMSSW_VERSION" == CMSSW_5_*_* ]]; then
echo "======================================="
echo " running with $CMSSW_VERSION - this is an 8 TeV setup!"
echo " Current Time:" $(date)
echo " checking out additional repositories; this could take a while ..."
echo " Only shape analysis toolkit will be setup"
echo " Please use Setup.sh for the full package"
echo " export SCRAM_ARCH=slc5_amd64_gcc472"
echo "======================================="
echo " - Basic Code"
github-addext latinos/HWWAnalysis.git HWWAnalysis
github-addext latinos/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit HiggsAnalysis-CombinedLimit-V02-06-00
echo "======================================="
echo " ... Done. "
echo "Current Time:" $(date)
echo "======================================="
elif [[ "$CMSSW_VERSION" == CMSSW_7_*_* ]]; then
echo "======================================="
echo " running with $CMSSW_VERSION - this is an 13 TeV setup!"
echo " Current Time:" $(date)
echo " checking out additional repositories; this could take a while ..."
echo " Only shape analysis toolkit will be setup"
echo " Please use Setup.sh for the full package"
echo " export SCRAM_ARCH=???"
echo "======================================="
echo " - Basic Code"
github-addext latinos/LatinoAnalysis.git LatinoAnalysis
echo " - Setup MELA"
git clone git@github.com:cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement
cd ZZMatrixElement
echo " checking out MELA release v2.0.1 ..."
git checkout tags/v2.0.1
cd -
echo " ...done."
source ZZMatrixElement/setup.sh -j 12
echo "======================================="
echo " ... Done. "
echo "Current Time:" $(date)
echo "======================================="
elif [[ "$CMSSW_VERSION" == CMSSW_8_*_* ]]; then
echo "======================================="
echo "running with $CMSSW_VERSION - this is a 13 TeV setup!"
echo "Current time:" $(date)
echo "checking out additional repositories; this could take a while ..."
echo "======================================="
echo " - Basic Code"
github-addext latinos/LatinoAnalysis.git LatinoAnalysis
echo " - get recaster for MELA"
git clone git@github.com:usarica/MelaAnalytics.git
echo " - Setup MELA"
git clone git@github.com:cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement
cd ZZMatrixElement
echo " checking out MELA release v2.1.1 ..."
git checkout tags/v2.1.1
cd -
echo " ...done."
source ZZMatrixElement/setup.sh -j 12
else
echo "======================================="
echo "You are using release $CMSSW_VERSION which is not supported by this script."
echo "A with CMSSW_5_*_* release is suggested for shape"
echo "======================================="
fi;