Skip to content

Commit

Permalink
Fix missing not in VH overlap removal
Browse files Browse the repository at this point in the history
  • Loading branch information
kmohrman committed Oct 12, 2023
1 parent 3d636cb commit c6f31e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ewkcoffea/modules/selection_wwz.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def add4lmask_wwz(events, year, isData, sample_name):
genparts = events.GenPart
is_zh = (abs(genparts[:,2].pdgId) == 23) # 3rd genparticle should be v for these samples
is_w_from_h = ((abs(genparts.pdgId)==24) & (abs(genparts.distinctParent.pdgId) == 25))
gen_mask = (is_zh & ak.any(is_w_from_h,axis=-1))
gen_mask = ~(is_zh & ak.any(is_w_from_h,axis=-1))
mask = mask & gen_mask

# TODO: Check if we need this, and add an if statement to not apply to data
Expand Down

0 comments on commit c6f31e8

Please sign in to comment.