@@ -234,8 +234,8 @@ def load_external_config(configfile):
234234# We still may need adjust configurations manually for consistency:
235235#
236236# * Force simpler TPC digitization of if TPC reco does not have the mc-time-gain option:
237- tpc_envfile = 'env_async.env' if environ .get ('ALIEN_JDL_O2DPG_ASYNC_RECO_TAG' ) is not None else None
238- tpcreco_mctimegain = option_if_available ('o2-tpc-reco-workflow' , '--tpc-mc-time-gain' , envfile = tpc_envfile )
237+ async_envfile = 'env_async.env' if environ .get ('ALIEN_JDL_O2DPG_ASYNC_RECO_TAG' ) is not None else None
238+ tpcreco_mctimegain = option_if_available ('o2-tpc-reco-workflow' , '--tpc-mc-time-gain' , envfile = async_envfile )
239239if tpcreco_mctimegain == '' :
240240 # this was communicated by Jens Wiechula@TPC; avoids dEdX issue https://its.cern.ch/jira/browse/O2-5486 for the 2tag mechanism
241241 print ("TPC reco does not support --tpc-mc-time-gain. Adjusting some config for TPC digitization" )
@@ -1596,10 +1596,15 @@ def getDigiTaskName(det):
15961596 aod_creator = f .getvalue ().strip ()
15971597 print (f"Determined GRID username { aod_creator } " )
15981598
1599+ # this option might not be universally available
1600+ created_by_option = option_if_available ('o2-aod-producer-workflow' , '--created-by' , envfile = async_envfile )
1601+ if created_by_option != '' :
1602+ created_by_option += ' ' + aod_creator
1603+
15991604 AODtask = createTask (name = 'aod_' + str (tf ), needs = aodneeds , tf = tf , cwd = timeframeworkdir , lab = ["AOD" ], mem = '4000' , cpu = '1' )
16001605 AODtask ['cmd' ] = ('' ,'ln -nfs ../bkg_Kine.root . ;' )[doembedding ]
1601- AODtask ['cmd' ] += '[ -f AO2D.root ] && rm AO2D.root; '
1602- AODtask [" cmd" ] += task_finalizer ([
1606+ AODtask ['cmd' ] += '[ -f AO2D.root ] && rm AO2D.root; '
1607+ AODtask [' cmd' ] += task_finalizer ([
16031608 "${O2_ROOT}/bin/o2-aod-producer-workflow" ,
16041609 "--reco-mctracks-only 1" ,
16051610 "--aod-writer-keep dangling" ,
@@ -1611,13 +1616,14 @@ def getDigiTaskName(det):
16111616 f"--lpmp-prod-tag { args .productionTag } " ,
16121617 "--anchor-pass ${ALIEN_JDL_LPMANCHORPASSNAME:-unknown}" ,
16131618 "--anchor-prod ${ALIEN_JDL_LPMANCHORPRODUCTION:-unknown}" ,
1614- f"--created-by { aod_creator } " ,
1619+ created_by_option ,
16151620 "--combine-source-devices" if not args .no_combine_dpl_devices else "" ,
16161621 "--disable-mc" if args .no_mc_labels else "" ,
16171622 "--enable-truncation 0" if environ .get ("O2DPG_AOD_NOTRUNCATE" ) or environ .get ("ALIEN_JDL_O2DPG_AOD_NOTRUNCATE" ) else "" ,
16181623 "--disable-strangeness-tracker" if args .no_strangeness_tracking else "" ,
16191624 f"--aod-timeframe-id ${{ALIEN_PROC_ID}}{ aod_df_id } " if not args .run_anchored else "" ,
16201625 ])
1626+ # Consider in future: AODtask['disable_alternative_reco_software'] = True # do not apply reco software here (we prefer latest aod converter)
16211627 workflow ['stages' ].append (AODtask )
16221628
16231629 #
0 commit comments