Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2613 commits
Select commit Hold shift + click to select a range
df25bd2
qqH_SF 2018 HTXS
NTrevisani Jul 15, 2021
ad35b60
Latest version after approval
valsdav Jul 16, 2021
4d311a7
fix
valsdav Jul 16, 2021
63b5fdc
fix 2016 ggH_SF
NTrevisani Jul 21, 2021
fb826ce
fix 2017 ggH_SF
NTrevisani Jul 21, 2021
8a7a715
fix 2018 ggH_SF
NTrevisani Jul 21, 2021
5bde52b
fix qqH SF 2016
NTrevisani Jul 21, 2021
9a058f0
fix qqH _SF 2017
NTrevisani Jul 21, 2021
9e820b0
splitting rate paramters
NTrevisani Jul 21, 2021
d4b2d23
VH2j update dor unblinding
NTrevisani Jul 26, 2021
5fd235d
VH2j 2017 update for unblinding
NTrevisani Jul 26, 2021
4b99103
VH2j 2018 update for unblinding
NTrevisani Jul 26, 2021
aba4f17
saving weights and SF
valsdav Jul 27, 2021
1f37026
Updating WW njets uncertainties
dittmer Aug 24, 2021
280901e
Adding helper scripts for WW differential
dittmer Aug 28, 2021
89700fb
High Mass updates
DennRoy Sep 6, 2021
b7b771c
Updating ggH DF 2018 config
rseidita Sep 6, 2021
44d0081
Merge branch 'master' of github.com:latinos/PlotsConfigurations
rseidita Sep 6, 2021
8157c07
Updating ggH DF 2016 config
rseidita Sep 6, 2021
504ab71
Updating ggH DF 2017 config
rseidita Sep 6, 2021
6fa20dd
Updating VBF DF inclusive configs
rseidita Sep 6, 2021
35e80c0
Updating 2016 and 2018 ggH DF STXS configs
rseidita Sep 6, 2021
a9a64e2
Updating VBF DF 2016/2018 STXS configs
rseidita Sep 6, 2021
d47be7e
Added WWewk shape uncertainty in inclusive VBF DF configs
rseidita Sep 6, 2021
42aeca3
update ggH 0/1 jet STXS config
lviliani Sep 7, 2021
6523c01
Small fix
lviliani Sep 7, 2021
b829406
update ggH 2 jet STXS config
lviliani Sep 7, 2021
7cb8f68
update ggH 2 jet STXS config
lviliani Sep 7, 2021
2f27fbb
update ggH 2 jet STXS config
lviliani Sep 7, 2021
4717937
update 2017 ggH 0/1 jet STXS config
lviliani Sep 7, 2021
0aebe1b
A few more fixes
lviliani Sep 7, 2021
ca99d1a
A few more fixes
lviliani Sep 7, 2021
f90975c
Fixed QCDscale_WWewk nuisance implementation in 2016 inclusive VBF an…
rseidita Sep 8, 2021
f243831
Merge branch 'master' of github.com:latinos/PlotsConfigurations
rseidita Sep 8, 2021
289e108
Updating 2016 ggH DF inclusive config
rseidita Sep 8, 2021
0fd7899
Several updates
lviliani Sep 8, 2021
e6c05e2
Merge branch 'master' of github.com:latinos/PlotsConfigurations
lviliani Sep 8, 2021
d35e0ef
Bugfix
DennRoy Sep 8, 2021
d48add8
Uncorrelated VBF_DF DeepFlavor btag nuisances from other channels
rseidita Sep 9, 2021
301c175
Merge branch 'master' of github.com:latinos/PlotsConfigurations
rseidita Sep 9, 2021
90a38f4
update Dyveto nuisance
lviliani Sep 10, 2021
598b86b
Yet another fix
lviliani Sep 13, 2021
5d765da
Yet another fix
lviliani Sep 13, 2021
ebee257
Yet another fix
lviliani Sep 13, 2021
8df0e6d
Yet another fix
lviliani Sep 13, 2021
46b624c
Small change
lviliani Sep 14, 2021
ceac630
Updated from CWR VBSjjlnu
valsdav Sep 15, 2021
614a6ce
Add VBF dipole scaling
lviliani Sep 20, 2021
5ba1a7c
updated
Sep 21, 2021
eea3d27
update
SenneVanPutte Sep 24, 2021
731b805
Merge branch 'master' of github.com:latinos/PlotsConfigurations
SenneVanPutte Sep 24, 2021
a939540
fix dynorm and dynorm
NTrevisani Sep 29, 2021
0433242
fix wwnorm and dynorm
NTrevisani Sep 29, 2021
828ba77
fix dynorm and wwnorm
NTrevisani Sep 29, 2021
0512632
fix wwnorm and dynorm
NTrevisani Sep 29, 2021
9098603
fix wwnorm and dynorm
NTrevisani Sep 29, 2021
281ee51
fix wwnorm and dynorm
NTrevisani Sep 29, 2021
467c909
few small updates from the past
NTrevisani Sep 29, 2021
cda0a16
VBF dipole mass corrections in ggH_SF cards
NTrevisani Oct 5, 2021
0afba54
files for vbf dipole scaling
NTrevisani Oct 5, 2021
8b7a50e
bug-test macro
SenneVanPutte Oct 5, 2021
2130927
Merge branch 'master' of github.com:latinos/PlotsConfigurations
SenneVanPutte Oct 5, 2021
92e4385
HTXS qqH vbf dipole correction
NTrevisani Oct 5, 2021
add1779
Merge branch 'master' of github.com:latinos/PlotsConfigurations
NTrevisani Oct 5, 2021
fe60985
all the remaining structures and vbfDipole
NTrevisani Oct 5, 2021
6a7a4ce
Updating WW njets configs
dittmer Oct 5, 2021
2b258ef
Adding WW dphijj configs
dittmer Oct 5, 2021
5160dd7
WW fit / combination scripts
dittmer Oct 8, 2021
78405c9
Fixing bug in WW differential njets configs
dittmer Oct 27, 2021
872433d
Syncing 2018 WW diff configs
dittmer Nov 1, 2021
aed67a8
Updating WW theo norm helper script
dittmer Nov 1, 2021
3d03493
Syncing 2017 WW diff configs
dittmer Nov 1, 2021
4a5dbdb
Syncing 2016 WW diff configs, bugfix
dittmer Nov 2, 2021
045673e
2016 SF config in sync with paper + unnecessary scripts removed
mlizzo Nov 10, 2021
41dac4b
fix WWJ cross section in samples.py instead of structure.py
mlizzo Nov 10, 2021
651fd90
fix lumi in plot.py
mlizzo Nov 10, 2021
2188fbd
2017 SF config in sync with paper + unnecessary scripts removed
mlizzo Nov 10, 2021
b7f9c8f
unnecessary scripts removed
mlizzo Nov 10, 2021
fa2ed8f
2018 SF config in sync with paper
mlizzo Nov 10, 2021
7bb94fe
Updating Higgs mass to 125.38 in ggH and VBF DF
rseidita Nov 12, 2021
4595efb
Updating Higgs mass to 125.38 in ggH and VBF DF
rseidita Nov 12, 2021
24c27e7
Merge branch 'master' of github.com:latinos/PlotsConfigurations
rseidita Nov 12, 2021
be07036
Updating ggH DF configs
rseidita Nov 12, 2021
11b1c77
Updating Higgs mass in ggH STXS
rseidita Nov 12, 2021
b9a543f
Equalizing STXS fractions in 2016 to 2017/2018 in ggH DF STXS cards
rseidita Nov 12, 2021
4dc3bcd
Equalizing STXS fractions in 2016 to 2017/2018 in VBF DF STXS cards
rseidita Nov 12, 2021
67d0d35
Updating Higgs mass to 125.38 in ggH SF
NTrevisani Nov 14, 2021
fe85c36
Merge branch 'master' of github.com:latinos/PlotsConfigurations
NTrevisani Nov 14, 2021
31c071e
structure.pymodified: structure.py
NTrevisani Nov 14, 2021
281b57d
sync with paper v10
Nov 15, 2021
d15aa83
Updating Higgs mass to 125.38 in ggH SF
NTrevisani Nov 15, 2021
3f2c366
Updating Higgs mass to 125.38 in HTXS ggH SF
NTrevisani Nov 15, 2021
f59a527
Fixed mass scaling in ggH and VBF DF HTXS configs
rseidita Nov 18, 2021
b5e1aa7
Merge branch 'master' of github.com:latinos/PlotsConfigurations
rseidita Nov 18, 2021
10c8dc3
Fix cuts in STXS 2j config + add CR splitting
lviliani Nov 18, 2021
db96f5c
Removing STXS fraction eq from 2017 and 2018 where iit should not be
rseidita Nov 19, 2021
9a93186
Changed postfit plot script VBSjjlnu
valsdav Nov 21, 2021
17e8e12
Fixing DY embed veto uncertainties in ggH DF
rseidita Nov 22, 2021
1108f00
Update for FR - new lumi 2016
valsdav Nov 23, 2021
eea47e6
Bugfix in nuisances for WW inclusive
dittmer Nov 25, 2021
67c72a2
Merge pull request #146 from sharmaaash/master
rseidita Dec 13, 2021
0af2e9a
Few changes
lviliani Dec 14, 2021
1317e51
New trigger efficiencies in ggH 2016
rseidita Jan 12, 2022
5278514
Merge branch 'master' of github.com:latinos/PlotsConfigurations
rseidita Jan 12, 2022
d851fe1
Adding alias for new trigger efficiencies
rseidita Jan 12, 2022
6a50ab4
Update STXS 2016 config after trigger efficiency fix
lviliani Jan 13, 2022
22b80c2
Update STXS 2018 config after trigger efficiency fix
lviliani Jan 13, 2022
0b606d2
Update STXS 2017 configs after trigger efficiency fix
lviliani Jan 13, 2022
fce8379
Update trigger nuisances in STXS configs
lviliani Jan 14, 2022
ace2e3a
fix trigger eff in DY nuisances estimation
NTrevisani Jan 17, 2022
44e610d
Update cuts in 2018 STXS 0/1 jet config
lviliani Jan 18, 2022
41fc959
fix trig eff in DY control plots
NTrevisani Jan 19, 2022
4ca1498
Merge branch 'master' of github.com:latinos/PlotsConfigurations
NTrevisani Jan 19, 2022
e8c9827
fix trig eff for qqH 2016
NTrevisani Jan 19, 2022
3bc2a21
minor fix on README
NTrevisani Jan 19, 2022
7eb7ea2
fix trig eff for qqH 2017
NTrevisani Jan 19, 2022
b67fc41
fix trig eff for qqH 2018
NTrevisani Jan 19, 2022
efa1a01
Fix 2018 2j STXS configuration.py
lviliani Jan 19, 2022
ae1e4d3
Update VBF DF configurations with the trigger fix
lviliani Jan 20, 2022
5bc67c0
small changes
lviliani Jan 21, 2022
64ffb66
Updating inclusive config
dittmer Jan 24, 2022
568f3f8
fix trig eff STXS qqH_SF
NTrevisani Jan 24, 2022
e30a4ac
Merge branch 'master' of github.com:latinos/PlotsConfigurations
NTrevisani Jan 24, 2022
36f3426
fix trig eff STXS ggH_SF
NTrevisani Jan 24, 2022
41bad82
fix trig eff ggH_SF 2016
NTrevisani Jan 24, 2022
309934d
fix trig eff ggH_SF 2017
NTrevisani Jan 24, 2022
d1b54d4
fix trig eff ggH_SF 2018
NTrevisani Jan 24, 2022
9a57deb
Add trigger DRll reweighting
lviliani Jan 24, 2022
a01e79f
Add trigger DRll reweighting in VBF 2017
lviliani Jan 24, 2022
76655c0
Add trigger DRll reweighting in VBF 2018
lviliani Jan 24, 2022
0c72ab8
Add trigger DRll reweighting
lenzip Jan 24, 2022
43e992b
Merge branch 'master' of github.com:latinos/PlotsConfigurations
lenzip Jan 24, 2022
879a0c7
Committing WWnorm jsons to WW diff
dittmer Jan 25, 2022
47da960
Add drll trigger reweighting
lviliani Jan 25, 2022
7572caf
Adding correct trigger efficiencies in ggH DF 2017+2018
rseidita Jan 26, 2022
2b2f61a
Added drll reweighting to ggH SF nominal configs
rseidita Jan 26, 2022
1b3cc1b
Add trigger DRll reweighting
lviliani Jan 26, 2022
cd0b633
Merge branch 'master' of github.com:latinos/PlotsConfigurations
lviliani Jan 26, 2022
9a56400
Update trigger nuisances in STXS configs
lviliani Jan 26, 2022
e361a16
Update trigger nuisances in STXS configs
lviliani Jan 26, 2022
87bc0d4
Update trigger nuisances in STXS configs
lviliani Jan 26, 2022
dadc5ea
Update trigger nuisances in STXS configs
lviliani Jan 26, 2022
fa418f3
Use remote access protocol for varied trees
lviliani Jan 27, 2022
68bc468
ANv10 update (HT samples, k-factors)
SenneVanPutte Jan 31, 2022
9eba29d
Merge branch 'master' of github.com:latinos/PlotsConfigurations
SenneVanPutte Jan 31, 2022
445ec10
Added drll rewwighting to VH2j DF, ggH SF and qqH SF
rseidita Feb 1, 2022
d13587f
trigger correction ggH_SF STXS
NTrevisani Feb 2, 2022
afeb270
Merge branch 'master' of github.com:latinos/PlotsConfigurations
NTrevisani Feb 2, 2022
8703ba8
trigger correction qqH_SF STXS
NTrevisani Feb 2, 2022
009f245
adjusting plots
NTrevisani Feb 2, 2022
8fcdcaf
Fix VBF structure files
lviliani Feb 3, 2022
eeec6e5
first commit for charge asymmetry
NTrevisani Feb 4, 2022
fd0c3c8
Updating WW njets configs
dittmer Feb 7, 2022
4ec97c8
WW leadlept PT up
arunhep Feb 7, 2022
2fcffd6
sublep PT WW up
arunhep Feb 7, 2022
bbf94c7
clean up of v6 config in WW
arunhep Feb 10, 2022
996f436
v6 config cleanup for WW
arunhep Feb 10, 2022
61791b4
WW up
arunhep Feb 10, 2022
3be66c8
updating inclusive configs v1
saumyaphor4252 Feb 11, 2022
60836e2
first commit for WH3l charge asymmetry analysis
NTrevisani Feb 14, 2022
cbf6a0d
Update README.md
NTrevisani Feb 14, 2022
7694df1
Update README.md
NTrevisani Feb 14, 2022
ff07047
Update README.md
NTrevisani Feb 14, 2022
7c4c0e5
unify the format
NTrevisani Feb 14, 2022
55d0392
fix structure and dr reweighting systematics
lenzip Feb 14, 2022
0740821
Merge branch 'master' of github.com:latinos/PlotsConfigurations
lenzip Feb 14, 2022
734d0ea
Updated ggH 0/1-jet EFT/AC config
TomasKello Feb 18, 2022
8b2a60e
Remove old ggH 0/1-jet EFT/AC config
TomasKello Feb 18, 2022
44e3597
Alias to be used instead of EmbeddingVeto branch
DennRoy Feb 24, 2022
87f9eab
first commit for WH3l BDTs retraining
NTrevisani Feb 25, 2022
435135d
fixed interpolations for ms=350
Feb 28, 2022
c50493b
updaing cfg
NTrevisani Feb 28, 2022
ce0fedd
Instructions to combine Full2018 WHSS and WH3l datacards and run fits
NTrevisani Mar 10, 2022
69bb44f
updated inclusive WW cfgs
Mar 15, 2022
1f39d6d
updated inclusive WW cfgs
Mar 15, 2022
3efcf47
updated inclusive WW cfgs
Mar 15, 2022
17d71a1
Updating WW njets, dphijj to use BDT
dittmer Mar 15, 2022
0d5a5a4
updated Rinout SFs
Mar 17, 2022
2146ca7
Revert "Updating WW njets, dphijj to use BDT"
Mar 17, 2022
acc1072
Update nuisances.py
jieunyoo Mar 17, 2022
2593f45
Skip calling getBaseWnAOD when running mkPlot.py
dittmer Mar 18, 2022
fb3cc68
Fixing Differential/ngenjet.cc module
dittmer Mar 18, 2022
859959a
Updating WW response matrix script
dittmer Mar 22, 2022
d2709c6
Update on AC configs (2017, 2018) to follow Legacy approach
TomasKello Mar 23, 2022
0c964cd
Merge branch 'master' of github.com:latinos/PlotsConfigurations
TomasKello Mar 23, 2022
1e99bec
Adding WW mjj, jetpt0, jetpt1
dittmer Mar 23, 2022
7530cd6
adding cfg for lepton MVA training and studies
Mar 25, 2022
8f2f7d5
Update DY CR configs
lviliani Mar 30, 2022
d836913
Merge branch 'master' of https://github.com/latinos/PlotsConfigurations
Apr 13, 2022
dd57ea4
updated BDT files
Apr 13, 2022
dd09a3a
Added new configuration on high mass H->WW semileptonic under the nam…
bardellig Apr 15, 2022
545c319
Added Files for the semi-leptonic configuration
bardellig Apr 19, 2022
141cff6
Merge pull request #163 from dittmer/ngenjetfix
lviliani Apr 19, 2022
7524f44
first version of mela discrimiinator for ggH and VBF
lenzip Apr 21, 2022
444d134
Update README.md
piedraj Apr 26, 2022
3dd7698
fiducial.cc up for WW
arunhep May 2, 2022
da1478a
EXO-21-012 draft v2
SenneVanPutte May 12, 2022
8159eea
kfactor root files
SenneVanPutte May 12, 2022
585ee33
work in progress
lenzip May 16, 2022
d2fd7e1
Merge branch 'master' of github.com:latinos/PlotsConfigurations
lenzip May 16, 2022
d329c22
more wip
lenzip May 18, 2022
002e38c
2017 configuration for HWW semilep
bardellig May 19, 2022
7a13d14
2017 configuration for HWW semileptonic
bardellig May 19, 2022
c60add0
2017 config for HWW semilep
bardellig May 19, 2022
42a072e
2017 config for HWW semilep
bardellig May 19, 2022
a3b4d7a
missing update
lenzip May 19, 2022
570e3f0
Merge branch 'master' of github.com:latinos/PlotsConfigurations
lenzip May 19, 2022
e49b43f
fixed, seems to work
lenzip May 26, 2022
741a815
Update and clean up final configurations for High Mass dileptonic ana…
DennRoy Jun 3, 2022
6e3ba7f
Mela studiesÂ
bardellig Jun 10, 2022
9886a76
First tentative config for UL2018 DZ efficiencies
lviliani Jun 17, 2022
324239b
Delete lviliani.cc
lviliani Jun 17, 2022
3640baf
Configurations for DNN_studies
bardellig Jun 24, 2022
aa1486b
Merge branch 'master' into HWWSemi
bardellig Jun 24, 2022
c012629
Merge pull request #165 from bardellig/HWWSemi
bardellig Jun 24, 2022
3aa04f0
DYee estimation in OS region
NTrevisani Jul 1, 2022
07b4652
adapt to DYee estimation from OS
NTrevisani Jul 1, 2022
e3b9c92
Updating DeepJet b-tagger & macros
saumyaphor4252 Jul 11, 2022
c4ea842
updating csv
saumyaphor4252 Jul 14, 2022
09edebf
WW leadlepPT up
arunhep Jul 15, 2022
8196a3c
mll 2018 up
arunhep Jul 15, 2022
dbfc5fc
mll 2018 up
arunhep Jul 15, 2022
fb6035d
ptll up
arunhep Jul 15, 2022
28bd571
ptll up
arunhep Jul 15, 2022
0b88db3
sublead pt up
arunhep Jul 15, 2022
e19fb5a
Updating WW ExpUnc for new BDT training
dittmer Jul 15, 2022
7813da6
Updating WW njets, dphijj to use BDT
dittmer Mar 15, 2022
b43fce7
Updating WW njets configs for new BDT training
dittmer Jul 15, 2022
29edebc
Updating WW dphijj configs for new BDT training
dittmer Jul 15, 2022
ac8afc6
Updating WW mjj configs for new BDT training
dittmer Jul 15, 2022
e9a4777
Updating WW jetpt0 configs for new BDT training
dittmer Jul 15, 2022
c8e1e7e
Updating WW jetpt1 configs for new BDT training
dittmer Jul 15, 2022
c06e285
Updating WW 2016 theo norm for new fiducial
dittmer Jul 16, 2022
63d3b00
Updating WW 2018 theo norm for new fiducial
dittmer Jul 16, 2022
8fb1f18
WW njets bugfix
dittmer Jul 19, 2022
f5e33f2
updating jsons + configs for leptonic differential variables
saumyaphor4252 Jul 22, 2022
748ba0e
theoNorm
saumyaphor4252 Jul 22, 2022
7ecc3ae
updating 2016 jsons for leptonic differential variables
saumyaphor4252 Jul 22, 2022
d93eba4
WW temp fix to get theoNorm from l2loose in 2017v7
dittmer Jul 23, 2022
856aa07
Updating WW 2017 njets theo norm for new fiducial
dittmer Jul 23, 2022
fabb7f3
updating 2017 jsons + Theo Norms
saumyaphor4252 Jul 24, 2022
6e3ead8
updating WW_BDT files 2018 inclusive
saumyaphor4252 Jul 24, 2022
f5254e5
Removing old WW BDT readers
dittmer Jul 25, 2022
82a4475
updating mll differential configs
saumyaphor4252 Jul 25, 2022
b1b0c02
adding btag algo
saumyaphor4252 Jul 25, 2022
5953ab6
updating 2016 configs for leptonic differentials
saumyaphor4252 Jul 26, 2022
5b08af8
updating 2017 lepton diff configs
saumyaphor4252 Jul 26, 2022
59d51bc
2017 leptonic diff
saumyaphor4252 Jul 26, 2022
4ab648a
2018 sublepPT configs update
saumyaphor4252 Jul 26, 2022
b35ac08
Merge branch 'master' into VBSjjlnu_v7
valsdav Aug 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
*.root
*.pcm
*.d
*.so
*.png

203 changes: 156 additions & 47 deletions Configurations/ControlRegions/DY/Full2016_nAOD/aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,82 +2,191 @@
import copy
import inspect


#aliases = {}

configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # ggH2016
configurations = os.path.dirname(configurations) # ggH2016
configurations = os.path.dirname(configurations) # Differential
configurations = os.path.dirname(configurations) # Configurations
configurations = os.path.dirname(configurations) # Configurations

#aliases = {}

mc = [skey for skey in samples if skey not in ('Fake_em', 'Fake_me', 'Fake', 'DATA')]
# imported from samples.py:
# samples, signals

bAlgo = 'DeepB'
bWP = '0.1241'
mc = [skey for skey in samples if skey not in ('Fake', 'DATA')]

aliases['PromptGenLepMatch2l'] = {
'expr': 'Alt$(Lepton_promptgenmatched[0]*Lepton_promptgenmatched[1], 0)',
'samples': mc
eleWP = 'mva_90p_Iso2016'
muWP = 'cut_Tight80x'
newMuWP='cut_Tight80x_tthmva_80'

aliases['LepWPCut'] = {
'expr': 'LepCut2l__ele_'+eleWP+'__mu_'+muWP+'*( (abs(Lepton_pdgId[0])==11 || Muon_mvaTTH[Lepton_muonIdx[0]]>0.8) && (abs(Lepton_pdgId[1])==11 || Muon_mvaTTH[Lepton_muonIdx[1]]>0.8) )',
'samples': mc + ['DATA']
}

aliases['bVeto'] = {
'expr': '(Sum$(CleanJet_pt > 20. && abs(CleanJet_eta)<2.5 && Jet_btagDeepB[CleanJet_jetIdx] > 0.1241) == 0)'
aliases['gstarLow'] = {
'expr': 'Gen_ZGstar_mass >0 && Gen_ZGstar_mass < 4',
'samples': 'VgS'
}

aliases['btag0'] = {
'expr': '( Alt$(CleanJet_pt[0],0)<30 \
&& Sum$(CleanJet_pt > 20. && abs(CleanJet_eta)<2.5 && Jet_btagDeepB[CleanJet_jetIdx] > 0.1241)>0 \
)'
aliases['gstarHigh'] = {
'expr': 'Gen_ZGstar_mass <0 || Gen_ZGstar_mass > 4',
'samples': 'VgS'
}

aliases['btag1'] = {
'expr': '( Alt$(CleanJet_pt[0],0)>30 && Alt$(abs(CleanJet_eta[0]),99)<2.5\
&& Alt$(CleanJet_pt[1],0)<30 \
&& Alt$(Jet_btagDeepB[CleanJet_jetIdx[0]], 0) > 0.1241 )'
# Fake leptons transfer factor
aliases['fakeW'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP,
'samples': ['Fake']
}
# And variations - already divided by central values in formulas !
aliases['fakeWEleUp'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP+'_EleUp',
'samples': ['Fake']
}
aliases['fakeWEleDown'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP+'_EleDown',
'samples': ['Fake']
}
aliases['fakeWMuUp'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP+'_MuUp',
'samples': ['Fake']
}
aliases['fakeWMuDown'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP+'_MuDown',
'samples': ['Fake']
}
aliases['fakeWStatEleUp'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP+'_statEleUp',
'samples': ['Fake']
}
aliases['fakeWStatEleDown'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP+'_statEleDown',
'samples': ['Fake']
}
aliases['fakeWStatMuUp'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP+'_statMuUp',
'samples': ['Fake']
}
aliases['fakeWStatMuDown'] = {
'expr': 'fakeW2l_ele_'+eleWP+'_mu_'+newMuWP+'_statMuDown',
'samples': ['Fake']
}

aliases['btag2'] = {
'expr': '( Alt$(CleanJet_pt[0],0)>30 \
&& Alt$(CleanJet_pt[1],0)>30 \
&& ( ( Alt$(abs(CleanJet_eta[0]),99)<2.5 && Alt$(Jet_btagDeepB[CleanJet_jetIdx[0]],0) > 0.1241 ) \
|| ( Alt$(abs(CleanJet_eta[1]),99)<2.5 && Alt$(Jet_btagDeepB[CleanJet_jetIdx[1]],0) > 0.1241 ) ) \
)'
# gen-matching to prompt only (GenLepMatch2l matches to *any* gen lepton)
aliases['PromptGenLepMatch2l'] = {
'expr': 'Alt$(Lepton_promptgenmatched[0]*Lepton_promptgenmatched[1], 0)',
'samples': mc
}

aliases['bVetoSF'] = {
'expr': '( TMath::Exp(Sum$( TMath::Log( (CleanJet_pt>20 && abs(CleanJet_eta)<2.5)*Jet_btagSF_shape[CleanJet_jetIdx]+1*(CleanJet_pt<20 || abs(CleanJet_eta)>2.5) ) ) ) )',
'samples': mc
aliases['Top_pTrw'] = {
'expr': '(topGenPt * antitopGenPt > 0.) * (TMath::Sqrt(TMath::Exp(0.0615 - 0.0005 * topGenPt) * TMath::Exp(0.0615 - 0.0005 * antitopGenPt))) + (topGenPt * antitopGenPt <= 0.)',
'samples': ['top']
}

# Jet bins
# using Alt$(CleanJet_pt[n], 0) instead of Sum$(CleanJet_pt >= 30) because jet pt ordering is not strictly followed in JES-varied samples

aliases['btag0SF'] = {
'expr': '( TMath::Exp(Sum$( TMath::Log( (CleanJet_pt>20 && CleanJet_pt<30 && abs(CleanJet_eta)<2.5)*Jet_btagSF_shape[CleanJet_jetIdx]+1*(CleanJet_pt<20 || CleanJet_pt>30 || abs(CleanJet_eta)>2.5) ) ) ) )',
'samples': mc
# No jet with pt > 30 GeV
aliases['zeroJet'] = {
'expr': 'Alt$(CleanJet_pt[0], 0) < 30.'
}

aliases['btag1SF'] = {
'expr': '( ( Alt$(CleanJet_pt[0], 0)>30 && Alt$(abs(CleanJet_eta[0]),99)<2.5 )*( Alt$(Jet_btagSF_shape[CleanJet_jetIdx[0]], 1) ) + ( Alt$(CleanJet_pt[0], 0)<30 || Alt$(abs(CleanJet_eta[0]),99)>2.5 ) )',
'samples': mc
aliases['oneJet'] = {
'expr': 'Alt$(CleanJet_pt[0], 0) > 30.'
}

aliases['btag2SF'] = {
'expr': '( ( ( Alt$(CleanJet_pt[0], 0)>30 && Alt$(abs(CleanJet_eta[0]),99)<2.5 )*( Alt$(Jet_btagSF_shape[CleanJet_jetIdx[0]], 1) ) + ( Alt$(CleanJet_pt[0], 0)<30 || Alt$(abs(CleanJet_eta[0]),99)>2.5 ) )* \
( ( Alt$(CleanJet_pt[1], 0)>30 && Alt$(abs(CleanJet_eta[1]),99)<2.5 )*( Alt$(Jet_btagSF_shape[CleanJet_jetIdx[1]], 1) ) + ( Alt$(CleanJet_pt[1], 0)<30 || Alt$(abs(CleanJet_eta[1]),99)>2.5 ) ) )\
',
'samples': mc
aliases['multiJet'] = {
'expr': 'Alt$(CleanJet_pt[1], 0) > 30.'
}

aliases['btagSF'] = {
'expr': '( bVetoSF*bVeto + btag0SF*btag0 + btag1SF*btag1 + btag2SF*btag2 + ( (!bVeto) && (!btag0) && (!btag1) && (!btag2) ) )',
'samples': mc
############################################
### Total SFs, i.e. ttHMVA+old lepton SFs ###
#############################################

aliases['ttHMVA_SF_2l'] = {'linesToAdd': ['.L %s/patches/compute_SF.C+' % configurations],
'class': 'compute_SF',
'args' : ('2016', 2, 'total_SF'),
'samples': mc
}

# data/MC scale factors
aliases['SFweight'] = {
'expr': ' * '.join(['SFweight2l', 'ttHMVA_SF_2l', 'LepWPCut', 'PrefireWeight']),
'samples': mc
}
# variations
aliases['SFweightEleUp'] = {
'expr': 'LepSF2l__ele_'+eleWP+'__Up',
'samples': mc
}
aliases['SFweightEleDown'] = {
'expr': 'LepSF2l__ele_'+eleWP+'__Do',
'samples': mc
}
aliases['SFweightMuUp'] = {
'expr': 'LepSF2l__mu_'+muWP+'__Up',
'samples': mc
}
aliases['SFweightMuDown'] = {
'expr': 'LepSF2l__mu_'+muWP+'__Do',
'samples': mc
}

###########################################################
### Up/Down variations for single leptons in order of Pt ###
############################################################

aliases['ttHMVA_SF_Up_0'] = {'linesToAdd': ['.L %s/patches/compute_SF.C+' % configurations],
'class': 'compute_SF',
'args' : ('2016', 2, 'single_SF_up', 0),
'samples': mc
}

aliases['ttHMVA_SF_Up_1'] = {'linesToAdd': ['.L %s/patches/compute_SF.C+' % configurations],
'class': 'compute_SF',
'args' : ('2016', 2, 'single_SF_up', 1),
'samples': mc
}

aliases['ttHMVA_SF_Down_0'] = {'linesToAdd': ['.L %s/patches/compute_SF.C+' % configurations],
'class': 'compute_SF',
'args' : ('2016', 2, 'single_SF_down', 0),
'samples': mc
}

aliases['ttHMVA_SF_Down_1'] = {'linesToAdd': ['.L %s/patches/compute_SF.C+' % configurations],
'class': 'compute_SF',
'args' : ('2016', 2, 'single_SF_down', 1),
'samples': mc
}

aliases['ttHMVA_2l_mu_SF_Up'] = {'expr' : '(ttHMVA_SF_Up_0*(TMath::Abs(Lepton_pdgId[0]) == 13) + (TMath::Abs(Lepton_pdgId[0]) == 11)) *\
(ttHMVA_SF_Up_1*(TMath::Abs(Lepton_pdgId[1]) == 13) + (TMath::Abs(Lepton_pdgId[1]) == 11))',
'samples': mc
}

aliases['ttHMVA_2l_mu_SF_Down'] = {'expr' : '(ttHMVA_SF_Down_0*(TMath::Abs(Lepton_pdgId[0]) == 13) + (TMath::Abs(Lepton_pdgId[0]) == 11)) *\
(ttHMVA_SF_Down_1*(TMath::Abs(Lepton_pdgId[1]) == 13) + (TMath::Abs(Lepton_pdgId[1]) == 11))',
'samples': mc
}

aliases['nllWOTF'] = {
'linesToAdd': ['.L %s/Differential/nllW.cc+' % configurations],
'class': 'WWNLLW',
'args': ('central',),
'samples': ['WW']
}

systs = ['jes','lf','hf','lfstats1','lfstats2','hfstats1','hfstats2','cferr1','cferr2']
# In WpWmJJ_EWK events, partons [0] and [1] are always the decay products of the first W
aliases['lhe_mW1'] = {
'expr': 'TMath::Sqrt(2. * LHEPart_pt[0] * LHEPart_pt[1] * (TMath::CosH(LHEPart_eta[0] - LHEPart_eta[1]) - TMath::Cos(LHEPart_phi[0] - LHEPart_phi[1])))',
'samples': ['WWewk']
}

for s in systs:
aliases['btagSF'+s+'up'] = { 'expr': 'bVeto*'+aliases['bVetoSF']['expr'].replace('shape','shape_up_'+s)+'+btag0*'+aliases['btag0SF']['expr'].replace('shape','shape_up_'+s)+'+btag1*'+aliases['btag1SF']['expr'].replace('shape','shape_up_'+s)+'+btag2*'+aliases['btag2SF']['expr'].replace('shape','shape_up_'+s), 'samples':mc }
aliases['btagSF'+s+'down'] = { 'expr': 'bVeto*'+aliases['bVetoSF']['expr'].replace('shape','shape_down_'+s)+'+btag0*'+aliases['btag0SF']['expr'].replace('shape','shape_down_'+s)+'+btag1*'+aliases['btag1SF']['expr'].replace('shape','shape_down_'+s)+'+btag2*'+aliases['btag2SF']['expr'].replace('shape','shape_down_'+s), 'samples':mc }
# and [2] [3] are the second W
aliases['lhe_mW2'] = {
'expr': 'TMath::Sqrt(2. * LHEPart_pt[2] * LHEPart_pt[3] * (TMath::CosH(LHEPart_eta[2] - LHEPart_eta[3]) - TMath::Cos(LHEPart_phi[2] - LHEPart_phi[3])))',
'samples': ['WWewk']
}

19 changes: 5 additions & 14 deletions Configurations/ControlRegions/DY/Full2016_nAOD/configuration.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# example of configuration file
treeName= 'Events'
# Configuration file to produce initial root files -- has both merged and binned ggH samples

tag = 'DY'
treeName = 'Events'

tag = 'DY2016_v6'

# used by mkShape to define output directory for root files
outputDir = 'rootFile'

outputDir = 'rootFile'+tag

# file with TTree aliases
aliasesFile = 'aliases.py'
Expand All @@ -23,26 +22,18 @@
# file with list of samples
plotFile = 'plot.py'



# luminosity to normalize to (in 1/fb)
lumi = 35.867

# used by mkPlot to define output directory for plots
# different from "outputDir" to do things more tidy
# outputDirPlots = '~/www/plotCR'
outputDirPlots = 'plotDY'

outputDirPlots = 'plots'+tag

# used by mkDatacards to define output directory for datacards
outputDirDatacard = 'datacards'


# structure file for datacard
structureFile = 'structure.py'


# nuisances file for mkDatacards and for mkShape
nuisancesFile = 'nuisances.py'


51 changes: 20 additions & 31 deletions Configurations/ControlRegions/DY/Full2016_nAOD/cuts.py
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
# cuts

supercut = 'mll>60 && Lepton_pt[0]>20 && Lepton_pt[1]>10 && (nLepton>=2 && Alt$(Lepton_pt[2],0)<10) && abs(Lepton_eta[0])<2.5 && abs(Lepton_eta[1])<2.5'
supercut = 'mll>60 && mll<120 && Lepton_pt[0]>25 && Lepton_pt[1]>13 && (nLepton>=2 && Alt$(Lepton_pt[2],0)<10) && abs(Lepton_eta[0])<2.5 && abs(Lepton_eta[1])<2.5'

cuts['Zee'] = '(Lepton_pdgId[0] * Lepton_pdgId[1] == -11*11) '

cuts['Zee'] = '(Lepton_pdgId[0] * Lepton_pdgId[1] == -11*11) \
&& Lepton_pt[0]>25 && Lepton_pt[1]>13 \
&& mll>60 && mll<120 \
'
cuts['Zmm'] = '(Lepton_pdgId[0] * Lepton_pdgId[1] == -13*13) '

cuts['Zmm'] = '(Lepton_pdgId[0] * Lepton_pdgId[1] == -13*13) \
&& mll>60 && mll<120 \
'
#cuts['Zee'] = {
# 'expr' : '(Lepton_pdgId[0] * Lepton_pdgId[1] == -11*11)',
# 'categories' : {
# '0j' : 'zeroJet',
# '1j' : 'oneJet && Alt$(CleanJet_pt[1],0)<30',
# '2j' : 'multiJet',
# }
#}
#
#cuts['Zmm'] = {
# 'expr' : '(Lepton_pdgId[0] * Lepton_pdgId[1] == -13*13)',
# 'categories' : {
# '0j' : 'zeroJet',
# '1j' : 'oneJet && Alt$(CleanJet_pt[1],0)<30',
# '2j' : 'multiJet',
# }
#}

'''
cuts['Zee0j'] = '(Lepton_pdgId[0] * Lepton_pdgId[1] == -11*11) \
&& Lepton_pt[0]>25 && Lepton_pt[1]>13 \
&& mll>80 && mll<100 \
&& ( Jet_pt[0] < 30 ) \
'

cuts['Zmm0j'] = '(Lepton_pdgId[0] * Lepton_pdgId[1] == -13*13) \
&& mll>80 && mll<100 \
&& ( Jet_pt[0] < 30 ) \
'

cuts['Zee1j'] = '(Lepton_pdgId[0] * Lepton_pdgId[1] == -11*11) \
&& Lepton_pt[0]>25 && Lepton_pt[1]>13 \
&& mll>80 && mll<100 \
&& ( Jet_pt[0] >= 30 ) \
&& ( Jet_pt[1] < 30 ) \
'

cuts['Zmm1j'] = '(Lepton_pdgId[0] * Lepton_pdgId[1] == -13*13) \
&& mll>80 && mll<100 \
&& ( Jet_pt[0] >= 30 ) \
&& ( Jet_pt[1] < 30 ) \
'
'''
Loading