forked from tswilliams/NTupler
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setupEnv.txt
82 lines (70 loc) · 2.83 KB
/
setupEnv.txt
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
This file explains how to setup in CMSSW_8_0_X and CMSSW_9_4_X
Note that the two different releases are currently required for producing nTuples from miniAOD.
Following this stage, everything can be performed using just one of the setups.
How to setup in CMSSW_8_0_X
===========================
# basic setup
export VO_CMS_SW_DIR=/cvmfs/cms.cern.ch
source $VO_CMS_SW_DIR/cmsset_default.sh
cmsrel CMSSW_8_0_32
cd CMSSW_8_0_32/src
cmsenv
# prefire package (see https://twiki.cern.ch/twiki/bin/viewauth/CMS/L1ECALPrefiringWeightRecipe)
git cms-merge-topic lathomas:L1Prefiring_8_0_32
scram b -j8
# Sam's package (not needed for this analysis, but historically where code came from)
git cms-merge-topic Sam-Harper:HEEPV70VID
git clone https://github.com/Sam-Harper/usercode.git SHarper
cd SHarper/
git checkout HEEPID80X
cd ..
# double-b-tag update (required when using miniAOD created in CMSSW_8_0_X; X<27: https://cmssdt.cern.ch/SDT/ReleaseNotes/CMSSW_8/CMSSW_8_0_27.html)
export CMSSW_GIT_REFERENCE=/cvmfs/cms.cern.ch/cmssw.git.daily
git cms-init
git remote add btv-cmssw https://github.com/cms-btv-pog/cmssw.git
git fetch --tags btv-cmssw
git cms-merge-topic -u cms-btv-pog:BoostedDoubleSVTaggerV4-WithWeightFiles-v1_from-CMSSW_8_0_21
# fork this package
git clone [email protected]:<USER>/NTupler.git NTupler
cd NTupler
git branch -a
git checkout [desired branch]
cd ..
scram b -j8
# add higgs combined tool
git clone https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
cd HiggsAnalysis/CombinedLimit
cd $CMSSW_BASE/src/HiggsAnalysis/CombinedLimit
git fetch origin
git checkout v7.0.9 # can check recommended branch at https://cms-hcomb.gitbook.io/combine/getting-started#for-end-users-that-dont-need-to-commit-or-do-any-development
scram b -j8
How to setup in CMSSW_9_4_X
===========================
# basic setup
export VO_CMS_SW_DIR=/cvmfs/cms.cern.ch
source $VO_CMS_SW_DIR/cmsset_default.sh
cmsrel CMSSW_9_4_9
cd CMSSW_9_4_9/src
cmsenv
# prefire package (see https://twiki.cern.ch/twiki/bin/viewauth/CMS/L1ECALPrefiringWeightRecipe)
git cms-merge-topic lathomas:L1Prefiring_9_4_9
scram b -j8
# Sam's package (not needed for this analysis, but historically where code came from)
git clone https://github.com/Sam-Harper/usercode.git SHarper
cd SHarper/
git checkout remotes/origin/94XNtup
cd ..
# fork this package
git clone [email protected]:<USER>/NTupler.git NTupler
cd NTupler
git branch -a
git checkout [desired branch]
cd ..
scram b -j8
# add higgs combined tool
git clone https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
cd HiggsAnalysis/CombinedLimit
cd $CMSSW_BASE/src/HiggsAnalysis/CombinedLimit
git fetch origin
git checkout v7.0.9 # can check recommended branch at https://cms-hcomb.gitbook.io/combine/getting-started#for-end-users-that-dont-need-to-commit-or-do-any-development
scram b -j8