Skip to content

Commit

Permalink
3l 1j for fwd only
Browse files Browse the repository at this point in the history
  • Loading branch information
bryates committed Dec 16, 2024
1 parent 57f253b commit 9975344
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions analysis/topeft_run2/analysis_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,10 @@ def process(self, events):
sr_cat_dict[lep_cat] = {}
for jet_cat in import_sr_cat_dict[lep_cat]["jet_lst"]:
jettag = None
if 'fwd' in jettag and not self.fwd_analysis:
conitnue
if 'fwd' in jettag and self.fwd_analysis:
jettag = jettag.replace('fwd', '')
if jet_cat.startswith("="):
jettag = "exactly_"
elif jet_cat.startswith("<"):
Expand Down
4 changes: 4 additions & 0 deletions analysis/topeft_run2/datacards_post_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def main():
for lep_ch in lep_ch_list:
lep_ch_name = lep_ch[0]
for jet in jet_list:
if 'fwd' in jet and not self.fwd_flag:
conitnue
if 'fwd' in jet and self.fwd_flag:
jet = jet.replace('fwd', '')
# special channels to be binned by ptz instead of lj0pt
if lep_ch_name == "3l_onZ_1b" or (lep_ch_name == "3l_onZ_2b" and (int(jet) == 4 or int(jet) == 5)):
channelname = lep_ch_name + "_" + jet + "j_ptz"
Expand Down
2 changes: 1 addition & 1 deletion topeft/channels/ch_lst_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"isAR_3l"
],
"jet_lst": [
"=1",
"=1fwd",
"=2",
"=3",
"=4",
Expand Down

0 comments on commit 9975344

Please sign in to comment.