From b9b2fb3ffbd5d85feaf8e4c36f961c1e508fcf7f Mon Sep 17 00:00:00 2001 From: Maximiliano Puccio Date: Tue, 24 Mar 2026 09:47:38 +0100 Subject: [PATCH] Honor detector inclusion list for FT0,FV0,EMC,CTP --- MC/bin/o2dpg_sim_workflow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MC/bin/o2dpg_sim_workflow.py b/MC/bin/o2dpg_sim_workflow.py index e793f17f6..37de398e4 100755 --- a/MC/bin/o2dpg_sim_workflow.py +++ b/MC/bin/o2dpg_sim_workflow.py @@ -302,6 +302,9 @@ def load_external_config(configfile): activeDetectors = { det:1 for det in activeDetectors.split(',') if det not in args.skipModules and det not in args.skipReadout} for det in activeDetectors: activate_detector(det) +for det in args.skipModules: + print(f"Skipping detector {det} in simulation") + deactivate_detector(det) # function to finalize detector source lists based on activeDetectors # detector source lists are comma separated lists of DET1, DET2, DET1-DET2, ... @@ -1227,7 +1230,7 @@ def createRestDigiTask(name, det='ALLSMALLER'): getDPL_global_options(), f'-n {args.ns}', simsoption, - '--onlyDet FT0,FV0,EMC,CTP', + '--onlyDet ' + ','.join([det for det in ['FT0', 'FV0', 'EMC', 'CTP'] if isActive(det)]), f'--interactionRate {INTRATE}', f'--incontext {CONTEXTFILE}', f'--store-ctp-lumi {CTPSCALER}',