187187# <----- START OF part that should run under a clean alternative software environment if this was given ------
188188if [ " ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG} " ]; then
189189 if [ " ${LOADEDMODULES} " ]; then
190+ export > env_before_stashing.env
190191 echo " Stashing initial modules"
191192 module save initial_modules.list # we stash the current modules environment
192193 module list --no-pager
253254ALIEN_JDL_LPMPRODUCTIONTAG=$ALIEN_JDL_LPMPRODUCTIONTAG_KEEP
254255echo_info " Setting back ALIEN_JDL_LPMPRODUCTIONTAG to $ALIEN_JDL_LPMPRODUCTIONTAG "
255256
256- # now create the local MC config file --> config-json.json
257- # we create the new config output with blacklist functionality
258- ASYNC_CONFIG_BLACKLIST=${ASYNC_CONFIG_BLACKLIST:- ${O2DPG_ROOT} / MC/ run/ ANCHOR/ anchor-dpl-options-blacklist.json}
259- ${O2DPG_ROOT} /MC/bin/o2dpg_dpl_config_tools.py workflowconfig.log ${ASYNC_CONFIG_BLACKLIST} config-json.json
260- ASYNC_WF_RC=${?}
261-
262- # check if config reasonably created
263- if [[ " ${ASYNC_WF_RC} " != " 0" || ` grep " ConfigParams" config-json.json 2> /dev/null | wc -l` == " 0" ]]; then
264- echo_error " Problem in anchor config creation. Exiting."
265- exit 1
266- fi
267-
268-
269257# get rid of the temporary software environment
270258if [ " ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG} " ]; then
271259 module purge --no-pager
@@ -280,6 +268,18 @@ if [ "${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG}" ]; then
280268fi
281269# <----- END OF part that should run under a clean alternative software environment if this was given ------
282270
271+ # now create the local MC config file --> config-json.json
272+ # we create the new config output with blacklist functionality
273+ ASYNC_CONFIG_BLACKLIST=${ASYNC_CONFIG_BLACKLIST:- ${O2DPG_ROOT} / MC/ run/ ANCHOR/ anchor-dpl-options-blacklist.json}
274+ ${O2DPG_ROOT} /MC/bin/o2dpg_dpl_config_tools.py workflowconfig.log ${ASYNC_CONFIG_BLACKLIST} config-json.json
275+ ASYNC_WF_RC=${?}
276+
277+ # check if config reasonably created
278+ if [[ " ${ASYNC_WF_RC} " != " 0" || ` grep " ConfigParams" config-json.json 2> /dev/null | wc -l` == " 0" ]]; then
279+ echo_error " Problem in anchor config creation. Exiting."
280+ exit 1
281+ fi
282+
283283# -- CREATE THE MC JOB DESCRIPTION ANCHORED TO RUN --
284284
285285MODULES=" --skipModules ZDC"
@@ -300,7 +300,8 @@ remainingargs="${remainingargs} -productionTag ${ALIEN_JDL_LPMPRODUCTIONTAG:-ali
300300remainingargs=" ${ALIEN_JDL_ANCHOR_SIM_OPTIONS} ${remainingargs} --anchor-config config-json.json"
301301# apply software tagging choice
302302# remainingargs="${remainingargs} ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG:+--alternative-reco-software ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG}}"
303- remainingargs=" ${remainingargs} ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG: +--alternative-reco-software ${PWD} / env_async.env} "
303+ ALIEN_JDL_O2DPG_ASYNC_RECO_FROMSTAGE=${ALIEN_JDL_O2DPG_ASYNC_RECO_FROMSTAGE:- RECO}
304+ remainingargs=" ${remainingargs} ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG: +--alternative-reco-software ${PWD} / env_async.env@ ${ALIEN_JDL_O2DPG_ASYNC_RECO_FROMSTAGE} } "
304305# potentially add CCDB timemachine timestamp
305306remainingargs=" ${remainingargs} ${ALIEN_JDL_CCDB_CONDITION_NOT_AFTER: +--condition-not-after ${ALIEN_JDL_CCDB_CONDITION_NOT_AFTER} } "
306307
0 commit comments