Skip to content

Commit ec53fbd

Browse files
committed
AOD: Apply aod-parent option only when available
1 parent a2cc794 commit ec53fbd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

MC/bin/o2dpg_sim_workflow.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,6 +1798,12 @@ def getDigiTaskName(det):
17981798
if created_by_option != '':
17991799
created_by_option += ' ' + aod_creator
18001800

1801+
aod_parent_option = option_if_available('o2-aod-producer-workflow', '--aod-parent', envfile=async_envfile)
1802+
if aod_parent_option != '' and len(args.aod_parent_file) > 0:
1803+
aod_parent_option += ' ' + args.aod_parent_file
1804+
else:
1805+
aod_parent_option = ''
1806+
18011807
aod_timeframe_id = f"${{ALIEN_PROC_ID}}{aod_df_id}" if not args.run_anchored else ""
18021808
if len(args.aod_output_folder) > 0:
18031809
aod_timeframe_id = args.aod_output_folder
@@ -1818,7 +1824,7 @@ def getDigiTaskName(det):
18181824
"--anchor-pass ${ALIEN_JDL_LPMANCHORPASSNAME:-unknown}",
18191825
"--anchor-prod ${ALIEN_JDL_LPMANCHORPRODUCTION:-unknown}",
18201826
"--reco-pass ${ALIEN_JDL_LPMPASSNAME:-unknown}",
1821-
f"--aod-parent {args.aod_parent_file}",
1827+
aod_parent_option,
18221828
created_by_option,
18231829
"--combine-source-devices" if not args.no_combine_dpl_devices else "",
18241830
"--disable-mc" if args.no_mc_labels else "",

0 commit comments

Comments
 (0)