Skip to content

Commit

Permalink
fix fwdjet masking
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyi Wan committed Dec 19, 2024
1 parent 646476a commit c30b64b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
12 changes: 5 additions & 7 deletions analysis/topeft_run2/analysis_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,13 +723,11 @@ def process(self, events):
preselections.add("2lss_fwd", (events.is2l & pass_trg & fwdjet_mask))
preselections.add("2l_fwd_p", (chargel0_p & fwdjet_mask))
preselections.add("2l_fwd_m", (chargel0_m & fwdjet_mask))
preselections.add("2lss", (events.is2l & pass_trg & ~fwdjet_mask))
preselections.add("2l_p", (chargel0_p & ~fwdjet_mask))
preselections.add("2l_m", (chargel0_m & ~fwdjet_mask))
else: # Original selections if not using the fwd analysis flag
preselections.add("2lss", (events.is2l & pass_trg))
preselections.add("2l_p", (chargel0_p))
preselections.add("2l_m", (chargel0_m))

# 2lss selection
preselections.add("2lss", (events.is2l & pass_trg))
preselections.add("2l_p", (chargel0_p))
preselections.add("2l_m", (chargel0_m))

# 3l selection
preselections.add("3l", (events.is3l & pass_trg))
Expand Down
12 changes: 4 additions & 8 deletions topeft/channels/ch_lst_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -663,32 +663,28 @@
"2lss",
"2l_p",
"bmask_atleast1m2l",
"bmask_atleast3m",
"~fwdjet_mask"
"bmask_atleast3m"
],
[
"2lss_4t_m",
"2lss",
"2l_m",
"bmask_atleast1m2l",
"bmask_atleast3m",
"~fwdjet_mask"
"bmask_atleast3m"
],
[
"2lss_fwd_p",
"2lss_fwd",
"2l_fwd_p",
"bmask_atleast1m2l",
"bmask_atmost2m",
"fwdjet_mask"
"bmask_atmost2m"
],
[
"2lss_fwd_m",
"2lss_fwd",
"2l_fwd_m",
"bmask_atleast1m2l",
"bmask_atmost2m",
"fwdjet_mask"
"bmask_atmost2m"
]
],
"lep_flav_lst": [
Expand Down

0 comments on commit c30b64b

Please sign in to comment.