-
Notifications
You must be signed in to change notification settings - Fork 10
/
install.sh
57 lines (43 loc) · 1.83 KB
/
install.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
#!/bin/bash
#USER INPUTS
CMS3Tag=combined
CMSSW_release=CMSSW_10_2_5
CMSSW_release_name= #Leave this blank if you don't know what it is. It's just a marker in case you have multiple identical directories. Don't forget the underscore!
export SCRAM_ARCH=slc6_amd64_gcc700
#--Here there be dragons----
export CMS_PATH=/cvmfs/cms.cern.ch
source /cvmfs/cms.cern.ch/cmsset_default.sh
scramv1 p -n ${CMSSW_release}${CMSSW_release_name} CMSSW $CMSSW_release
cd ${CMSSW_release}${CMSSW_release_name}
eval `scramv1 runtime -sh`
# new upstream-only ignores user's cmssw, but makes cms-init much, much faster
git cms-init --upstream-only
# For MET recipe for 2017 EE noise fix
git cms-merge-topic cms-met:METFixEE2017_949_v2_backport_to_102X
# For reading 2 electron iso branches in 102X from 94X sample
# https://github.com/cms-sw/cmssw/issues/25573
# NOTE this should be taken out once merged/backported into CMSSW
git cms-merge-topic Sam-Harper:IORulesForPFClusIso_1025
cd src
git clone [email protected]:cmstas/NtupleMaker.git CMS3/NtupleMaker
cd CMS3/NtupleMaker
git checkout $CMS3Tag
source setup/patchesToSource.sh
#######################################
# No CMSSW packages beyond this point #
#######################################
# MELA
git clone [email protected]:cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMatrixElement
(cd ZZMatrixElement; git fetch; git checkout -b from-v223 v2.2.3; source setup.sh -j 12;)
# MELA Analytics
git clone [email protected]:MELALabs/MelaAnalytics.git
(cd MelaAnalytics; git fetch; git checkout -b from-v21 v2.1)
# Common LHE tools
git clone [email protected]:usarica/CommonLHETools.git
(cd CommonLHETools; git fetch; git checkout -b from-v132 v1.3.2)
cd $CMSSW_BASE/src
scram b -j 25
cd ..
# see comment in patchesToSource.sh
rm $CMSSW_BASE/lib/$SCRAM_ARCH/.poisonededmplugincache
cd $CMSSW_BASE/src/CMS3/NtupleMaker/test/