Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Sep 20, 2023
1 parent fb701cf commit a3c5a60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HHbbVV/postprocessing/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ def apply_weights(
for sample in events_dict:
events = events_dict[sample]
if sample == data_key:
events[weight_key] = events["weight"]
if weight_key not in events:
events[weight_key] = events["weight"]
elif f"{weight_key}_noTrigEffs" not in events:
fj_trigeffs = ak8TrigEffsLookup(
events["ak8FatJetParticleNetMD_Txbb"].values,
Expand Down

0 comments on commit a3c5a60

Please sign in to comment.