From 4eb1490ddc4b230867eea8349c4c4aad97e72fdd Mon Sep 17 00:00:00 2001 From: Konstantin Androsov Date: Fri, 19 Jun 2026 15:20:43 +0200 Subject: [PATCH 1/4] Support filtering by meta process name in Setup.py --- Common/Setup.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Common/Setup.py b/Common/Setup.py index b108f76d..c99a4866 100644 --- a/Common/Setup.py +++ b/Common/Setup.py @@ -135,6 +135,7 @@ def __init__(self, name, model_dict): ) self._processes[item] = key self._base_processes = {} + self.meta_processes = {} def processes(self, process_type=None): if process_type is None: @@ -346,6 +347,7 @@ def __init__( self.phys_model.replace_process( key, new_process_names_for_model, ignore_missing=True ) + self.phys_model.meta_processes[key] = new_process_names_for_model else: processes[key] = item @@ -375,8 +377,14 @@ def collect_base_processes(p_name, parent_name=None): if custom_process_selection is not None: if type(custom_process_selection) == str: custom_process_selection = custom_process_selection.split(",") + expanded_selection = [] + for pattern in custom_process_selection: + if hasattr(self.phys_model, "meta_processes") and pattern in self.phys_model.meta_processes: + expanded_selection.extend(self.phys_model.meta_processes[pattern]) + else: + expanded_selection.append(pattern) filters = ["drop ^.*"] + [ - f"keep {pattern}" for pattern in custom_process_selection + f"keep {pattern}" for pattern in expanded_selection ] self.phys_model.select_processes(filters) self.base_processes = {} From 40a6c760bb81f21cf0ca396b2d41a553e7b59b0a Mon Sep 17 00:00:00 2001 From: Konstantin Androsov Date: Fri, 19 Jun 2026 16:09:33 +0200 Subject: [PATCH 2/4] Add default processes for CI tests --- .github/integration_cfg.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/integration_cfg.yaml b/.github/integration_cfg.yaml index 630115d5..ed6bb9f3 100644 --- a/.github/integration_cfg.yaml +++ b/.github/integration_cfg.yaml @@ -32,6 +32,9 @@ variables: HH_bbWW_args: "--test 1000" HH_bbtautau_args: "--test 1000" H_mumu_args: "--test 1000" + HH_bbWW_processes: "custom_CI_Signal custom_CI_Background custom_CI_Data" + HH_bbtautau_processes: "custom_CI_Signal custom_CI_Background custom_CI_Data" + H_mumu_processes: "custom_CI_signal custom_CI_background custom_CI_data" HH_bbtautau_eras: "Run3_2022 Run3_2022EE Run3_2023 Run3_2023BPix" HH_bbWW_eras: "Run3_2022 Run3_2022EE Run3_2023 Run3_2023BPix" H_mumu_eras: "ALL" From 22eb312ea96a1cf2c419410e0b10a2f3194e6176 Mon Sep 17 00:00:00 2001 From: Konstantin Androsov Date: Sat, 20 Jun 2026 10:21:57 +0200 Subject: [PATCH 3/4] Formatting --- Common/Setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Common/Setup.py b/Common/Setup.py index c99a4866..19bc5816 100644 --- a/Common/Setup.py +++ b/Common/Setup.py @@ -379,7 +379,10 @@ def collect_base_processes(p_name, parent_name=None): custom_process_selection = custom_process_selection.split(",") expanded_selection = [] for pattern in custom_process_selection: - if hasattr(self.phys_model, "meta_processes") and pattern in self.phys_model.meta_processes: + if ( + hasattr(self.phys_model, "meta_processes") + and pattern in self.phys_model.meta_processes + ): expanded_selection.extend(self.phys_model.meta_processes[pattern]) else: expanded_selection.append(pattern) From 8ba2b452c6402d59d281668e0172fa0b24c66486 Mon Sep 17 00:00:00 2001 From: Konstantin Androsov Date: Sat, 20 Jun 2026 11:12:10 +0200 Subject: [PATCH 4/4] HH_bbWW: test the whole pipeline down to the limits --- .github/integration_cfg.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/integration_cfg.yaml b/.github/integration_cfg.yaml index ed6bb9f3..fc386796 100644 --- a/.github/integration_cfg.yaml +++ b/.github/integration_cfg.yaml @@ -25,8 +25,7 @@ variables: HH_bbWW_active: "1" HH_bbtautau_active: "1" H_mumu_active: "1" - # HH_bbWW_task: "StatInference.law.tasks.ResonantLimitsAndHistPlotTask" - HH_bbWW_task: "FLAF.Analysis.tasks.HistPlotTask" + HH_bbWW_task: "StatInference.law.tasks.ResonantLimitsAndHistPlotTask" HH_bbtautau_task: "FLAF.Analysis.tasks.HistPlotTask" H_mumu_task: "FLAF.Analysis.tasks.HistPlotTask" HH_bbWW_args: "--test 1000"