Skip to content

Commit 0c1e93b

Browse files
committed
MC: add special check for IT3 mocked output
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent fc30fba commit 0c1e93b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

MC/bin/o2dpg_workflow_utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ def deactivate_detector(det):
2222
INACTIVE_DETECTORS.append(det)
2323

2424
def isActive(det):
25-
return det not in INACTIVE_DETECTORS and ("all" in ACTIVE_DETECTORS or det in ACTIVE_DETECTORS)
25+
def check(detector):
26+
return detector not in INACTIVE_DETECTORS and ("all" in ACTIVE_DETECTORS or detector in ACTIVE_DETECTORS)
27+
if det == "ITS": # special remapping for upgrade only needed in one direction since IT3 output pretends to be ITS
28+
return check("ITS") or check("IT3")
29+
else:
30+
return check(det)
2631

2732
def compute_n_workers(interaction_rate, collision_system, n_workers_user=8, n_workers_min=1, interaction_rate_linear_below=300000):
2833
"""

0 commit comments

Comments
 (0)