-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup_limit.sh
executable file
·40 lines (32 loc) · 1.19 KB
/
setup_limit.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
#!/bin/sh
cat <<EOF
========================================================================
This script is creating a working directory for limit calculations of
the ttH analysis in 76X
Output is in setup_limit.log
========================================================================
EOF
(
set -e
set -o xtrace
dcard="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/mk_datacard"
impact_script="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/makeImpactPlot.sh"
cd ~/
export SCRAM_ARCH=slc6_amd64_gcc491
scramv1 project -n CMSSW_7_4_16_patch2_combine CMSSW CMSSW_7_4_16_patch2
cd CMSSW_7_4_16_patch2_combine/src
set +o xtrace
eval $(scramv1 runtime -sh)
set -o xtrace
git cms-init > /dev/null
git clone -b 74x-root6 https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
git clone https://github.com/cms-analysis/CombineHarvester.git CombineHarvester
cp -r $dcard .
cp -r $impact_script .
scram b -j 8
) > setup_limit.log
cat <<EOF
========================================================================
Output is in setup_limit.log
========================================================================
EOF