Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...
Expand Down Expand Up @@ -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}',
Expand Down
Loading