Skip to content

Commit

Permalink
check jets cleaning with metric_table
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypz committed Jun 23, 2022
1 parent 8dd1260 commit 9cc14f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cofeGeno.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,11 @@ def process(self, events):
elif self.proc_type=="ul":
LHE_vpt_cut = True

jets25['isClean'] = isClean(jets25, leptons, drmin=0.5)
j_isclean = isClean(jets25, leptons, drmin=0.5)
# jets25['isClean'] = isClean(jets25, leptons, drmin=0.5)
#j_isclean = isClean(jets25, leptons, drmin=0.5)
# From: https://github.com/CoffeaTeam/coffea/discussions/497#discussioncomment-600052
j_isclean = ak.all(jets25.metric_table(leptons) > 0.5, axis=2)
# NB: this gives identical result to the isClean() fuction above

#good_jets = jets
good_jets = jets25[j_isclean]
Expand Down

0 comments on commit 9cc14f3

Please sign in to comment.