Skip to content

Commit

Permalink
Merge pull request #62 from uhh-cms/vbf
Browse files Browse the repository at this point in the history
adding boosted+resolved rebinning groups
  • Loading branch information
mafrahm authored Dec 1, 2023
2 parents c62ff4e + e1c6210 commit f73c09f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions hbw/config/defaults_and_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ def set_config_defaults_and_groups(config_inst):
config_inst.x.inference_category_groups = {
"SR": ("cat_1e_ggHH_kl_1_kt_1_sl_hbbhww", "cat_1mu_ggHH_kl_1_kt_1_sl_hbbhww"),
"vbfSR": ("cat_1e_qqHH_CV_1_C2V_1_kl_1_sl_hbbhww", "cat_1mu_qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"SR_resolved": ("cat_1e_resolved_ggHH_kl_1_kt_1_sl_hbbhww", "cat_1mu_resolved_ggHH_kl_1_kt_1_sl_hbbhww"),
"SR_boosted": ("cat_1e_boosted_ggHH_kl_1_kt_1_sl_hbbhww", "cat_1mu_boosted_ggHH_kl_1_kt_1_sl_hbbhww"),
"vbfSR_resolved": ("cat_1e_resolved_qqHH_CV_1_C2V_1_kl_1_sl_hbbhww",
"cat_1mu_resolved_qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"vbfSR_boosted": ("cat_1e_boosted_qqHH_CV_1_C2V_1_kl_1_sl_hbbhww",
"cat_1mu_boosted_qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"BR": ("cat_1e_tt", "cat_1e_st", "cat_1e_v_lep", "cat_1mu_tt", "cat_1mu_st", "cat_1mu_v_lep"),
"SR_dl": ("cat_2e_ggHH_kl_5_kt_1_dl_hbbhww", "cat_2mu_ggHH_kl_5_kt_1_dl_hbbhww"),
"BR_dl": ("cat_2e_t_bkg", "cat_2e_v_lep", "cat_2mu_t_bkg", "cat_2mu_v_lep"),
Expand All @@ -278,6 +284,10 @@ def set_config_defaults_and_groups(config_inst):
"SR": 10,
"vbfSR": 5,
"BR": 3,
"SR_resolved": 10,
"SR_boosted": 5,
"vbfSR_resolved": 5,
"vbfSR_boosted": 3,
# "SR_dl": 10,
# "BR_dl": 3,
# "cat_1e_ggHH_kl_1_kt_1_sl_hbbhww": 10,
Expand All @@ -293,6 +303,10 @@ def set_config_defaults_and_groups(config_inst):
config_inst.x.inference_category_rebin_processes = {
"SR": ("ggHH_kl_1_kt_1_sl_hbbhww", "qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"vbfSR": ("ggHH_kl_1_kt_1_sl_hbbhww", "qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"SR_resolved": ("ggHH_kl_1_kt_1_sl_hbbhww", "qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"SR_boosted": ("ggHH_kl_1_kt_1_sl_hbbhww", "qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"vbfSR_resolved": ("ggHH_kl_1_kt_1_sl_hbbhww", "qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"vbfSR_boosted": ("ggHH_kl_1_kt_1_sl_hbbhww", "qqHH_CV_1_C2V_1_kl_1_sl_hbbhww"),
"BR": lambda proc_name: "hbbhww" not in proc_name,
# "SR_dl": ("ggHH_kl_5_kt_1_dl_hbbhww",),
# "BR_dl": lambda proc_name: "hbbhww" not in proc_name,
Expand Down
4 changes: 2 additions & 2 deletions hbw/selection/sl.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def sl_jet_selection(
**kwargs,
) -> Tuple[ak.Array, SelectionResult]:
# HH -> bbWW(qqlnu) jet selection
# - require at least 3 jets with pt>30, eta<2.4
# - require at least 1 jet with pt>30, eta<2.4, b-score>0.3040 (Medium WP)
# - require at least 3 jets with pt>25, eta<2.4
# - require at least 1 jet with pt>25, eta<2.4, b-score>0.3040 (Medium WP)

# assign local index to all Jets
events = set_ak_column(events, "local_index", ak.local_index(events.Jet))
Expand Down

0 comments on commit f73c09f

Please sign in to comment.