Skip to content

Commit

Permalink
temporary fix for ak4 btagging (#222)
Browse files Browse the repository at this point in the history
* temporary fix for btagging

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
cmantill and pre-commit-ci[bot] authored Oct 15, 2024
1 parent 793205e commit 1337bdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HH4b/processors/ttSkimmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@ def process(self, events: ak.Array):

# b-tagged and dPhi from muon < 2
# consider btagDeepFlavB for 2022 only (problem with v12 private production)
if year == "2022" and self._nano_version == "v12_private":
if year == "2022" and (
self._nano_version == "v12_private" or self._nano_version == "v12v2_private"
):
ak4_jet_selector_btag_muon = ak4_jet_selector * (
(ak4_jets.btagDeepFlavB > self.btag_medium_deepJet[year])
* (np.abs(ak4_jets.delta_phi(muon)) < self.ak4_jet_selection["delta_phi_muon"])
Expand Down

0 comments on commit 1337bdc

Please sign in to comment.