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
·163 lines (122 loc) · 5.93 KB
/
Copy pathSetupShapeOnly.sh
File metadata and controls
executable file
·163 lines (122 loc) · 5.93 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
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 [email protected]: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 [email protected]:usarica/MelaAnalytics.git
echo " - Setup MELA"
git clone [email protected]: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 [email protected]: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 [email protected]:cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
echo " - Plotting Tools"
git clone [email protected]:yiiyama/multidraw.git LatinoAnalysis/MultiDraw
cd LatinoAnalysis/MultiDraw
git checkout 2.0.8 2>/dev/null
./mkLinkDef.py --cmssw
cd ../..
echo " - MELA"
git clone [email protected]: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 [email protected]:cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
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 [email protected]:yiiyama/multidraw.git LatinoAnalysis/MultiDraw
cd LatinoAnalysis/MultiDraw
git checkout 2.0.12 2>/dev/null
./mkLinkDef.py --cmssw
cd ../..
echo " - MELA"
git clone [email protected]: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;