From 0c1e93bd2c5055e302c78bbc0533a67bcb62cc44 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Mon, 6 Oct 2025 15:58:51 +0200 Subject: [PATCH 1/2] MC: add special check for IT3 mocked output Signed-off-by: Felix Schlepper --- MC/bin/o2dpg_workflow_utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MC/bin/o2dpg_workflow_utils.py b/MC/bin/o2dpg_workflow_utils.py index 585cb49ed..bb34c3660 100755 --- a/MC/bin/o2dpg_workflow_utils.py +++ b/MC/bin/o2dpg_workflow_utils.py @@ -22,7 +22,12 @@ def deactivate_detector(det): INACTIVE_DETECTORS.append(det) def isActive(det): - return det not in INACTIVE_DETECTORS and ("all" in ACTIVE_DETECTORS or det in ACTIVE_DETECTORS) + def check(detector): + return detector not in INACTIVE_DETECTORS and ("all" in ACTIVE_DETECTORS or detector in ACTIVE_DETECTORS) + if det == "ITS": # special remapping for upgrade only needed in one direction since IT3 output pretends to be ITS + return check("ITS") or check("IT3") + else: + return check(det) def compute_n_workers(interaction_rate, collision_system, n_workers_user=8, n_workers_min=1, interaction_rate_linear_below=300000): """ From 95ac7d15b0e14917e70a9b20880a8790b15963a2 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Tue, 7 Oct 2025 08:51:46 +0200 Subject: [PATCH 2/2] add additional newline at the end of inner fun --- MC/bin/o2dpg_workflow_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/MC/bin/o2dpg_workflow_utils.py b/MC/bin/o2dpg_workflow_utils.py index bb34c3660..763c472ab 100755 --- a/MC/bin/o2dpg_workflow_utils.py +++ b/MC/bin/o2dpg_workflow_utils.py @@ -24,6 +24,7 @@ def deactivate_detector(det): def isActive(det): def check(detector): return detector not in INACTIVE_DETECTORS and ("all" in ACTIVE_DETECTORS or detector in ACTIVE_DETECTORS) + if det == "ITS": # special remapping for upgrade only needed in one direction since IT3 output pretends to be ITS return check("ITS") or check("IT3") else: