Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
98298d0
start new branch
Jan 29, 2026
10bbf99
update DeepHME
Jan 29, 2026
9d88184
add everything in HH_bbWW
Jan 30, 2026
dcc0c6f
fix merge conflicts in HH_bbWW
Jan 30, 2026
8a443ba
improve lepton category descriptions in the config and add flag contr…
Jan 30, 2026
44016e5
add FLAF
Jan 30, 2026
85eec71
implement correction of btag shape weights
Jan 30, 2026
206ec47
update FLAF
Feb 1, 2026
d391225
modify hh_bbww and histTupleDef
Feb 10, 2026
a4b54c8
update FLAF and Corrections
Feb 10, 2026
ca7905c
update config
Feb 10, 2026
2132717
update FLAF
Feb 10, 2026
f886474
update FLAF and Corrections
Feb 10, 2026
5ce42ab
update FLAF
Feb 10, 2026
a48492a
update FLAF
Feb 11, 2026
0bcdd6f
update config and submodules
Feb 11, 2026
0f1e052
update config
Feb 11, 2026
440a754
update FLAF
Feb 11, 2026
08d7427
update FLAF
Feb 11, 2026
0f2a2b7
update FLAF
Feb 12, 2026
9427004
update FLAF
Feb 12, 2026
a13a8f9
update Corrections
Feb 13, 2026
50992b3
update config
Feb 18, 2026
3b212fd
update Corrections and FLAF
Feb 18, 2026
b93260c
update Corrections
Feb 18, 2026
2f042bf
update FLAF
Feb 18, 2026
e893bc1
update FLAF and Corrections
Feb 18, 2026
7582a13
add target_groups
Feb 19, 2026
b8d410a
Merge remote-tracking branch 'origin/main' into btag_v2
Feb 19, 2026
6f02041
update FLAF
Feb 19, 2026
03f1944
fix norm file path
Feb 19, 2026
1b385e4
update FLAF
Feb 19, 2026
f48e4bc
formatting
Feb 19, 2026
79bdd85
update Corrections and FLAF
Feb 19, 2026
3c77629
update FLAF
Feb 20, 2026
e06a7d2
update FLAF and Corrections
Feb 20, 2026
388ec17
add shape_and_norm mode
Feb 23, 2026
1920326
update FLAF and Corrections
Feb 23, 2026
8e35c33
Merge remote-tracking branch 'origin/main' into btag_v2
Feb 24, 2026
9dc1c9b
Merge remote-tracking branch 'origin/main' into btag_v2
Feb 25, 2026
6ed0207
update Corrections
Feb 25, 2026
240c599
update FLAF and Corrections
Feb 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Analysis/hh_bbww.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def GetWeight(channel, cat, boosted_categories): # do you need all these args?
for lep_index in [1, 2]:
total_weight = f"{total_weight} * {GetLepWeight(lep_index)}"
total_weight = f"{total_weight} * {GetTriggerWeight()}"
total_weight = f"{total_weight} * weight_bTagShape_Central"
return total_weight


Expand Down
2 changes: 1 addition & 1 deletion Corrections
Submodule Corrections updated 3 files
+53 −7 Corrections.py
+93 −0 btag.py
+18 −9 btagShape.h
67 changes: 60 additions & 7 deletions config/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ nEventsPerFile:

corrections:
mu:
stage: HistTuple
stages: [ HistTuple, AnalysisCache ]
columns:
pfRelIso04_all: Muon_pfRelIso04_all
tightId: Muon_tightId
Expand All @@ -26,16 +26,16 @@ corrections:
mediumId: Muon_mediumId
looseId: Muon_looseId
trigger:
stage: HistTuple
stages: [ HistTuple, AnalysisCache ]
mode: SF
ele: { stage: HistTuple }
ele: { stages: [ HistTuple, AnalysisCache ] }
fatjet:
stage: HistTuple # AnaTuple
stages: [ HistTuple, AnalysisCache ] # AnaTuple
ana: bbWW
tagger: particleNetWithMass_HbbvsQCD
fatJetName: fatbjet # SelectedFatJet
muScaRe: { stage: AnaTuple, mu_pt_for_ScaReApplication: "nano" }
eleES: { stage: AnaTuple }
eleES: { stages: [ AnaTuple, AnalysisCache ] }
lumi: { stage: AnaTuple }
xs: { stage: AnaTuple }
gen: { stage: AnaTuple }
Expand All @@ -50,10 +50,12 @@ corrections:
stage: AnaTuple
apply_jet_horns_fix: true
btag:
stages: [ AnaTuple, HistTuple ]
normFilePattern: data/{version}/AnalysisCacheAggregationTask/{period}/{dataset_name}/BtagShape/aggregatedCache.json
stages: [ AnaTuple, HistTuple, AnalysisCache ]
modes:
AnaTuple: none # just load to define WP ID branches
HistTuple: shape
AnalysisCache: shape
HistTuple: shape_and_norm
tagger: particleNet
jetCollection: centralJet
extraFormat_for_triggerMatchingAndSF:
Expand Down Expand Up @@ -267,6 +269,57 @@ payload_producers:
awkward_based: True
uproot_stepsize: '50MB'
dependencies:
BtagShape:
producers_module_name: BtagShapeProducer
producer_name: BtagShapeProducer
weight_module: Analysis.hh_bbww
save_as: json
needs_aggregation: True
target_groups: [ "signals", "backgrounds" ]
is_global: True
columns: [ ]
bins:
e_2: "channelId == static_cast<int>(Channel::e) && ncentralJet == 2"
e_3: "channelId == static_cast<int>(Channel::e) && ncentralJet == 3"
e_4: "channelId == static_cast<int>(Channel::e) && ncentralJet == 4"
e_5: "channelId == static_cast<int>(Channel::e) && ncentralJet == 5"
e_6: "channelId == static_cast<int>(Channel::e) && ncentralJet == 6"
e_7: "channelId == static_cast<int>(Channel::e) && ncentralJet == 7"
e_8: "channelId == static_cast<int>(Channel::e) && ncentralJet >= 8"
mu_2: "channelId == static_cast<int>(Channel::mu) && ncentralJet == 2"
mu_3: "channelId == static_cast<int>(Channel::mu) && ncentralJet == 3"
mu_4: "channelId == static_cast<int>(Channel::mu) && ncentralJet == 4"
mu_5: "channelId == static_cast<int>(Channel::mu) && ncentralJet == 5"
mu_6: "channelId == static_cast<int>(Channel::mu) && ncentralJet == 6"
mu_7: "channelId == static_cast<int>(Channel::mu) && ncentralJet == 7"
mu_8: "channelId == static_cast<int>(Channel::mu) && ncentralJet >= 8"
eE_2: "channelId == static_cast<int>(Channel::eE) && ncentralJet == 2"
eE_3: "channelId == static_cast<int>(Channel::eE) && ncentralJet == 3"
eE_4: "channelId == static_cast<int>(Channel::eE) && ncentralJet == 4"
eE_5: "channelId == static_cast<int>(Channel::eE) && ncentralJet == 5"
eE_6: "channelId == static_cast<int>(Channel::eE) && ncentralJet == 6"
eE_7: "channelId == static_cast<int>(Channel::eE) && ncentralJet == 7"
eE_8: "channelId == static_cast<int>(Channel::eE) && ncentralJet >= 8"
eMu_2: "channelId == static_cast<int>(Channel::eMu) && ncentralJet == 2"
eMu_3: "channelId == static_cast<int>(Channel::eMu) && ncentralJet == 3"
eMu_4: "channelId == static_cast<int>(Channel::eMu) && ncentralJet == 4"
eMu_5: "channelId == static_cast<int>(Channel::eMu) && ncentralJet == 5"
eMu_6: "channelId == static_cast<int>(Channel::eMu) && ncentralJet == 6"
eMu_7: "channelId == static_cast<int>(Channel::eMu) && ncentralJet == 7"
eMu_8: "channelId == static_cast<int>(Channel::eMu) && ncentralJet >= 8"
muMu_2: "channelId == static_cast<int>(Channel::muMu) && ncentralJet == 2"
muMu_3: "channelId == static_cast<int>(Channel::muMu) && ncentralJet == 3"
muMu_4: "channelId == static_cast<int>(Channel::muMu) && ncentralJet == 4"
muMu_5: "channelId == static_cast<int>(Channel::muMu) && ncentralJet == 5"
muMu_6: "channelId == static_cast<int>(Channel::muMu) && ncentralJet == 6"
muMu_7: "channelId == static_cast<int>(Channel::muMu) && ncentralJet == 7"
muMu_8: "channelId == static_cast<int>(Channel::muMu) && ncentralJet >= 8"
n_cpus: 4
max_runtime: 8.0
cmssw_env: False
awkward_based: True
uproot_stepsize: '50MB'
dependencies:

region: All
region_default: SR
Expand Down