Skip to content

Commit

Permalink
Please the linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Feb 3, 2025
1 parent 80f3986 commit 3bc2f08
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions hbt/config/configs_hbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

logger = law.logger.get_logger(__name__)


def add_config(
analysis: od.Analysis,
campaign: od.Campaign,
Expand Down Expand Up @@ -1326,39 +1327,35 @@ def add_external(name, value):
dataset.x.event_weights = {"top_pt_weight": get_shifts("top_pt")}

cfg.x.shift_groups = {
"jec":
[ shift_inst.name for shift_inst in cfg.shifts
if shift_inst.has_tag(("jec", "jer"))
],
"jec": [
shift_inst.name for shift_inst in cfg.shifts
if shift_inst.has_tag(("jec", "jer"))
],
"lepton_sf": [
x.name for x in (
*get_shifts("e"), *get_shifts("mu"),
)
shift_inst.name for shift_inst in (*get_shifts("e"), *get_shifts("mu"))
],
"tec":[
"tec": [
shift_inst.name for shift_inst in cfg.shifts
if shift_inst.has_tag(("tec"))
if shift_inst.has_tag(("tec"))
],
"eec": [
shift_inst.name for shift_inst in cfg.shifts
if shift_inst.has_tag(("ees", "eer"))
if shift_inst.has_tag(("ees", "eer"))
],
"ees": [
shift_inst.name for shift_inst in cfg.shifts
if shift_inst.has_tag(("ees"))
if shift_inst.has_tag(("ees"))
],
"eer": [
shift_inst.name for shift_inst in cfg.shifts
if shift_inst.has_tag(("eer"))
if shift_inst.has_tag(("eer"))
],
"btag_sf": [
x.name for x in (
*get_shifts(*(f"btag_{unc}" for unc in cfg.x.btag_unc_names)),
)
shift_inst.name for shift_inst in get_shifts(*(f"btag_{unc}" for unc in cfg.x.btag_unc_names))
],
"pdf": [x.name for x in get_shifts("pdf")],
"murmuf": (x.name for x in get_shifts("murmuf")),
"pu": [x.name for x in get_shifts("minbias_xs")],
"pdf": [shift_inst.name for shift_inst in get_shifts("pdf")],
"murmuf": (shift_inst.name for shift_inst in get_shifts("murmuf")),
"pu": [shift_inst.name for shift_inst in get_shifts("minbias_xs")],
}

################################################################################################
Expand Down

0 comments on commit 3bc2f08

Please sign in to comment.