-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·115 lines (84 loc) · 3.6 KB
/
setup.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
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
#!/bin/bash
#### Commands to be issued before checking out the code
#export "SCRAM_ARCH=slc5_amd64_gcc462"
#cmsrel CMSSW_5_3_10_patch2
#cd CMSSW_5_3_10_patch2/src
#cmsenv
#mkdir amarini; cd amarini; git clone [email protected]:amarini/VPlusJets -b V00-14;
get_git() ## usage get_git tag src dest
{
cd $CMSSW_BASE/src
tag=$1 && shift
src=$1 && shift
dst=$1 && shift
wd=$(pwd)
echo
echo "Checking out $tag $src into $dst"
if [[ ! -d $dst ]]; then
git clone $src $dst
fi
cd $dst
git fetch origin
git checkout $tag
cd $wd
echo "done"
echo
packs="$packs $dst"
}
echo "Going into $CMSSW_BASE"
cd $CMSSW_BASE/src
#https://twiki.cern.ch/twiki/bin/viewauth/CMS/SuperClusterFootprintRemoval --
#Random cone
# V01-05 bug fix for RC
get_git V01-05 https://github.com/peruzzim/SCFootprintRemoval.git PFIsolation/SCFootprintRemoval
#------------------PATCH TO HAVE 20 - 30 in RC isolation-----------------------------------------------#
cd $CMSSW_BASE/src/PFIsolation/SCFootprintRemoval/src
patch SuperClusterFootprintRemoval.cc <<EOF
--- SuperClusterFootprintRemoval.cc 2013-10-31 11:21:39.000000000 +0100
+++ /afs/cern.ch/user/a/amarini/work/ProductionAugust2013/CMSSW_5_3_9/src/PFIsolation/SCFootprintRemoval/src/SuperClusterFootprintRemoval.cc 2013-10-29 11:42:04.000000000 +0100
@@ -400,13 +400,13 @@
bool found=false;
for (reco::PFJetCollection::const_iterator jet=jetHandle->begin(); jet!=jetHandle->end(); jet++){
- if (jet->pt()<20) continue;
+ if (jet->pt()<30) continue;
float dR = reco::deltaR(eta,phi,jet->eta(),jet->phi());
if (dR<mindR) found=true;
}
for (reco::PhotonCollection::const_iterator pho=photonHandle->begin(); pho!=photonHandle->end(); pho++){
- if (pho->pt()<10) continue;
+ if (pho->pt()<20) continue;
float dR = reco::deltaR(eta,phi,pho->eta(),pho->phi());
if (dR<mindR) found=true;
}
EOF
##################
cd $CMSSW_BASE/src
#these commands are needed by cms-cvs-history
git init .
git fetch cmssw-main
## PU Jet ID
# taken from h2gglobe. Used by PU-ID
get_git V00-03-04 https://github.com/h2gglobe/External.git CMGTools/External
##################
## Energy Regression by Josh
#get_git hggpaperV6 [email protected]:bendavid/GBRLikelihood HiggsAnalysis/GBRLikelihood
# after speaking with Josh he suggested the master. I put the sha1 of the
# current head. For EGTools, current head is still the tag.
get_git 20836b5 [email protected]:bendavid/GBRLikelihood HiggsAnalysis/GBRLikelihood
get_git hggpaperV6 [email protected]:bendavid/GBRLikelihoodEGTools HiggsAnalysis/GBRLikelihoodEGTools
############### Keep tarball size limited ####################
# we need just regression on photons. v5
mv HiggsAnalysis/GBRLikelihoodEGTools/data/regweights_v5_forest_ph.root ./
#rm HiggsAnalysis/GBRLikelihoodEGTools/data/*{v4,v6,v7,v8}*
rm HiggsAnalysis/GBRLikelihoodEGTools/data/*.root
mv regweights_v5_forest_ph.root HiggsAnalysis/GBRLikelihoodEGTools/data/
########################### EG TOOLS ########################
# are these related to H->gg variables? Globe is using head.
#cvs co -r V00-00-21 -d EGamma/EGammaAnalysisTools UserCode/EGamma/EGammaAnalysisTools
get_git master https://github.com/h2gglobe/EGammaAnalysisTools EGamma/EGammaAnalysisTools
git cms-cvs-history import V00-03-13 CommonTools/ParticleFlow
git cms-cvs-history import V15-01-11 RecoParticleFlow/PFProducer
############################ QG Tagger #######################
get_git v1-2-6 [email protected]:amarini/QuarkGluonTagger.git QuarkGluonTagger
scram b -j 4
cd amarini/VPlusJets