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
·207 lines (154 loc) · 7.57 KB
/
SetupShapeOnly.sh
File metadata and controls
executable file
·207 lines (154 loc) · 7.57 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
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
echo " - Plotting Tools"
git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw
cd LatinoAnalysis/MultiDraw
git checkout 2.0.12 2>/dev/null
./mkLinkDef.py --cmssw
elif [[ "$CMSSW_VERSION" == CMSSW_9_*_* ]]; 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 " - Nano Tools"
git clone git@github.com:cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
echo " - Plotting Tools"
git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw
cd LatinoAnalysis/MultiDraw
git checkout 2.0.8 2>/dev/null
./mkLinkDef.py --cmssw
cd ../..
echo " - MELA"
git clone git@github.com:MELALabs/MelaAnalytics.git MelaAnalytics
cd MelaAnalytics ; git checkout -b from-v21 v2.1 ; cd ..
git clone https://github.com/cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement
cd ZZMatrixElement ; git checkout -b from-v223 v2.2.3 ; source setup.sh -j 12 ; cd ..
elif [[ "$CMSSW_VERSION" == CMSSW_10_*_* ]]; 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 " - Nano Tools"
git clone git@github.com:cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
cd PhysicsTools/NanoAODTools
git checkout a4b3c03
cd -;
cp LatinoAnalysis/Tools/data/JECs/*txt PhysicsTools/NanoAODTools/data/jme/
cp LatinoAnalysis/Tools/data/JECs/*tgz PhysicsTools/NanoAODTools/data/jme/
cp LatinoAnalysis/NanoGardener/python/data/Summer16_25nsV1b_MC.tgz PhysicsTools/NanoAODTools/data/jme/
cp LatinoAnalysis/NanoGardener/python/data/Fall17_V3b_MC.tgz PhysicsTools/NanoAODTools/data/jme/
cp LatinoAnalysis/NanoGardener/python/data/Autumn18_V7b_MC.tgz PhysicsTools/NanoAODTools/data/jme/
echo " - Plotting Tools"
git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw
cd LatinoAnalysis/MultiDraw
git checkout 2.0.12 2>/dev/null
./mkLinkDef.py --cmssw
cd ../..
echo " - MELA new version"
git clone git@github.com:MELALabs/MelaAnalytics.git MelaAnalytics
cd MelaAnalytics ; git checkout -b from-v22 v2.2 ; cd ..
git clone https://github.com/JHUGen/JHUGenMela.git JHUGenMELA
cd JHUGenMELA; git checkout -b from-v235 v2.3.5 ; source setup.sh -j 12 ; cd ..
elif [[ "$CMSSW_VERSION" == CMSSW_11_*_* ]]; 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 " - Nano Tools"
git clone git@github.com:cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
cd PhysicsTools/NanoAODTools
git checkout a4b3c03
cd -;
cp LatinoAnalysis/Tools/data/JECs/*txt PhysicsTools/NanoAODTools/data/jme/
cp LatinoAnalysis/Tools/data/JECs/*tgz PhysicsTools/NanoAODTools/data/jme/
cp LatinoAnalysis/NanoGardener/python/data/Summer16_25nsV1b_MC.tgz PhysicsTools/NanoAODTools/data/jme/
cp LatinoAnalysis/NanoGardener/python/data/Fall17_V3b_MC.tgz PhysicsTools/NanoAODTools/data/jme/
cp LatinoAnalysis/NanoGardener/python/data/Autumn18_V7b_MC.tgz PhysicsTools/NanoAODTools/data/jme/
echo " - Plotting Tools"
git clone git@github.com:yiiyama/multidraw.git LatinoAnalysis/MultiDraw
cd LatinoAnalysis/MultiDraw
git checkout 2.0.12 2>/dev/null
./mkLinkDef.py --cmssw
cd ../..
echo " - MELA"
git clone git@github.com:MELALabs/MelaAnalytics.git MelaAnalytics
cd MelaAnalytics ; git checkout -b from-v21 v2.1 ; cd ..
git clone https://github.com/cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement
cd ZZMatrixElement ; git checkout -b from-v223 v2.2.3 ; source setup.sh -j 12 ; cd ..
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;