Skip to content

Commit

Permalink
Use deterministic jer in default calibration.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Nov 27, 2024
1 parent afce61c commit 99f4ce0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions hbt/calibration/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@
# derive calibrators to add settings
jec_full = jec.derive("jec_full", cls_dict={"mc_only": True, "nominal_only": True})

# version of jer that uses the first random number from deterministic_seeds
deterministic_jer = jer.derive("deterministic_jer", cls_dict={"deterministic_seed_index": 0})


@calibrator(
uses={
mc_weight, jec_nominal, jec_full, jer, tec_nominal, tec, deterministic_seeds,
mc_weight, deterministic_seeds, jec_nominal, jec_full, deterministic_jer, tec_nominal, tec,
IF_RUN_2(met_phi),
},
produces={
mc_weight, jec_nominal, jec_full, jer, tec_nominal, tec, deterministic_seeds,
mc_weight, deterministic_seeds, jec_nominal, jec_full, deterministic_jer, tec_nominal, tec,
IF_RUN_2(met_phi),
},
)
Expand All @@ -40,7 +43,7 @@ def default(self: Calibrator, events: ak.Array, **kwargs) -> ak.Array:
events = self[jec_nominal](events, **kwargs)
else:
events = self[jec_full](events, **kwargs)
events = self[jer](events, **kwargs)
events = self[deterministic_jer](events, **kwargs)

if self.config_inst.campaign.x.run == 2:
events = self[met_phi](events, **kwargs)
Expand Down

0 comments on commit 99f4ce0

Please sign in to comment.