Skip to content

Commit

Permalink
remove debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
aalvesan committed Nov 28, 2024
1 parent b9192bd commit 98bf189
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions hbt/selection/jet.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,14 @@ def jet_selection(
subjets_btagged = ak.all(events.SubJet[ak.firsts(subjet_indices)].btagDeepB > wp, axis=1)

# vbf jets
try:
vbf_mask = (
ak4_mask &
(events.Jet.pt > 20.0) &
(abs(events.Jet.eta) < 4.7) &
(~hhbjet_mask) &
ak.all(events.Jet.metric_table(events.SubJet[subjet_indices[..., 0]]) > 0.4, axis=2) &
ak.all(events.Jet.metric_table(events.SubJet[subjet_indices[..., 1]]) > 0.4, axis=2)
)
except:
from IPython import embed
embed()
vbf_mask = (
ak4_mask &
(events.Jet.pt > 20.0) &
(abs(events.Jet.eta) < 4.7) &
(~hhbjet_mask) &
ak.all(events.Jet.metric_table(events.SubJet[subjet_indices[..., 0]]) > 0.4, axis=2) &
ak.all(events.Jet.metric_table(events.SubJet[subjet_indices[..., 1]]) > 0.4, axis=2)
)

# build vectors of vbf jets representing all combinations and apply selections
vbf1, vbf2 = ak.unzip(ak.combinations(events.Jet[vbf_mask], 2, axis=1))
Expand Down

0 comments on commit 98bf189

Please sign in to comment.