Skip to content

Commit

Permalink
Adapt to new cf.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Dec 6, 2024
1 parent 032f6fe commit 82247f4
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 64 deletions.
130 changes: 67 additions & 63 deletions hbt/config/configs_hbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,72 +546,76 @@ def if_era(
assert False

cfg.x.jec = DotDict.wrap({
"campaign": jec_campaign,
"version": jec_version,
"jet_type": jet_type,
"levels": ["L1FastJet", "L2Relative", "L2L3Residual", "L3Absolute"],
"levels_for_type1_met": ["L1FastJet"],
"uncertainty_sources": [
# "AbsoluteStat",
# "AbsoluteScale",
# "AbsoluteSample",
# "AbsoluteFlavMap",
# "AbsoluteMPFBias",
# "Fragmentation",
# "SinglePionECAL",
# "SinglePionHCAL",
# "FlavorQCD",
# "TimePtEta",
# "RelativeJEREC1",
# "RelativeJEREC2",
# "RelativeJERHF",
# "RelativePtBB",
# "RelativePtEC1",
# "RelativePtEC2",
# "RelativePtHF",
# "RelativeBal",
# "RelativeSample",
# "RelativeFSR",
# "RelativeStatFSR",
# "RelativeStatEC",
# "RelativeStatHF",
# "PileUpDataMC",
# "PileUpPtRef",
# "PileUpPtBB",
# "PileUpPtEC1",
# "PileUpPtEC2",
# "PileUpPtHF",
# "PileUpMuZero",
# "PileUpEnvelope",
# "SubTotalPileUp",
# "SubTotalRelative",
# "SubTotalPt",
# "SubTotalScale",
# "SubTotalAbsolute",
# "SubTotalMC",
"Total",
# "TotalNoFlavor",
# "TotalNoTime",
# "TotalNoFlavorNoTime",
# "FlavorZJet",
# "FlavorPhotonJet",
# "FlavorPureGluon",
# "FlavorPureQuark",
# "FlavorPureCharm",
# "FlavorPureBottom",
"CorrelationGroupMPFInSitu",
"CorrelationGroupIntercalibration",
"CorrelationGroupbJES",
"CorrelationGroupFlavor",
"CorrelationGroupUncorrelated",
],
"Jet": {
"campaign": jec_campaign,
"version": jec_version,
"jet_type": jet_type,
"levels": ["L1FastJet", "L2Relative", "L2L3Residual", "L3Absolute"],
"levels_for_type1_met": ["L1FastJet"],
"uncertainty_sources": [
# "AbsoluteStat",
# "AbsoluteScale",
# "AbsoluteSample",
# "AbsoluteFlavMap",
# "AbsoluteMPFBias",
# "Fragmentation",
# "SinglePionECAL",
# "SinglePionHCAL",
# "FlavorQCD",
# "TimePtEta",
# "RelativeJEREC1",
# "RelativeJEREC2",
# "RelativeJERHF",
# "RelativePtBB",
# "RelativePtEC1",
# "RelativePtEC2",
# "RelativePtHF",
# "RelativeBal",
# "RelativeSample",
# "RelativeFSR",
# "RelativeStatFSR",
# "RelativeStatEC",
# "RelativeStatHF",
# "PileUpDataMC",
# "PileUpPtRef",
# "PileUpPtBB",
# "PileUpPtEC1",
# "PileUpPtEC2",
# "PileUpPtHF",
# "PileUpMuZero",
# "PileUpEnvelope",
# "SubTotalPileUp",
# "SubTotalRelative",
# "SubTotalPt",
# "SubTotalScale",
# "SubTotalAbsolute",
# "SubTotalMC",
"Total",
# "TotalNoFlavor",
# "TotalNoTime",
# "TotalNoFlavorNoTime",
# "FlavorZJet",
# "FlavorPhotonJet",
# "FlavorPureGluon",
# "FlavorPureQuark",
# "FlavorPureCharm",
# "FlavorPureBottom",
"CorrelationGroupMPFInSitu",
"CorrelationGroupIntercalibration",
"CorrelationGroupbJES",
"CorrelationGroupFlavor",
"CorrelationGroupUncorrelated",
],
},
})

# JER
cfg.x.jer = DotDict.wrap({
"campaign": jer_campaign,
"version": jer_version,
"jet_type": jet_type,
"Jet": {
"campaign": jer_campaign,
"version": jer_version,
"jet_type": jet_type,
},
})

################################################################################################
Expand Down Expand Up @@ -850,7 +854,7 @@ def if_era(
cfg.add_shift(name="top_pt_down", id=10, type="shape")
add_shift_aliases(cfg, "top_pt", {"top_pt_weight": "top_pt_weight_{direction}"})

for jec_source in cfg.x.jec.uncertainty_sources:
for jec_source in cfg.x.jec.Jet.uncertainty_sources:
idx = all_jec_sources.index(jec_source)
cfg.add_shift(
name=f"jec_{jec_source}_up",
Expand Down

0 comments on commit 82247f4

Please sign in to comment.