forked from h2gglobe/h2gglobe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extraTags
72 lines (57 loc) · 1.24 KB
/
extraTags
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
#!/bin/bash
# set -x
H2GGLOBE_BASE=${PWD}
THREADS=`grep processor /proc/cpuinfo | wc -l`
packs=""
get_cvs()
{
tag=$1 && shift
src=$1 && shift
dst=$src
[[ -n $1 ]] && dst=$1 && shift
echo
echo "Checking out $tag $src into $dst"
if [[ -d $dst ]]; then
cvs up -r $tag $dst
else
cvs co -r $tag -d $dst $src
fi
echo "done"
echo
packs="$packs $dst"
}
get_git()
{
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"
}
cd $CMSSW_BASE/src
## Jet ID
get_git V00-02-10 https://github.com/h2gglobe/External.git CMGTools/External
## Combine
get_git f5cf561 https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
# Energy regression
if [[ $CMSSW_VERSION == CMSSW_6_* ]]; then
get_git hggpapertraining_regV6_7_8_tag0 https://github.com/bendavid/GBRLikelihood.git HiggsAnalysis/GBRLikelihood
else
get_git hggpaperV5 https://github.com/bendavid/GBRLikelihood.git HiggsAnalysis/GBRLikelihood
fi
if [[ -n $packs ]]; then
scram b $packs -j $THREADS
fi
cd ${H2GGLOBE_BASE}
touch .extraTags