Skip to content

Commit

Permalink
Merge pull request #38 from haddadanas/fix_lepton_selection
Browse files Browse the repository at this point in the history
FIX: num --> sum
  • Loading branch information
riga authored Oct 24, 2024
2 parents 50e8c64 + 6791fcd commit 902b7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hbt/selection/lepton.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def lepton_selection(
# special case for cross tau vbf trigger:
# to avoid overlap, with non-vbf triggers, only one tau is allowed to have pt > 40
if trigger.has_tag("cross_tau_tau_vbf"):
is_tautau = is_tautau & (ak.num(events.Tau[tau_indices].pt > 40, axis=1) <= 1)
is_tautau = is_tautau & (ak.sum(events.Tau[tau_indices].pt > 40, axis=1) <= 1)

is_iso = ak.sum(tau_iso_mask, axis=1) >= 2
# tau_indices are sorted by highest isolation as cond. 1 and highest pt as cond. 2, so
Expand Down

0 comments on commit 902b7bf

Please sign in to comment.