Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions MC/run/ANCHOR/anchorMC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,13 @@ if [[ ! -f workflowconfig.log ]]; then
echo "Workflowconfig.log file not found"
exit 1
fi
# each reco step must have its complete workflow printout (ending with o2-dpl-run), otherwise the MC would run without the anchored reco settings
NRECOSTEPS=$(grep -c "^Step [0-9])" workflowconfig.log)
[[ ${NRECOSTEPS} -eq 0 ]] && NRECOSTEPS=1
if [[ $(grep -c "#Workflow command" workflowconfig.log) -lt ${NRECOSTEPS} || $(grep -c "^o2-dpl-run " workflowconfig.log) -lt ${NRECOSTEPS} ]]; then
echo_error "workflowconfig.log does not contain the complete reco workflow of every step. Exiting."
exit 1
fi

export ALIEN_JDL_LPMPRODUCTIONTAG=$ALIEN_JDL_LPMPRODUCTIONTAG_KEEP
echo_info "Setting back ALIEN_JDL_LPMPRODUCTIONTAG to $ALIEN_JDL_LPMPRODUCTIONTAG"
Expand Down
7 changes: 7 additions & 0 deletions MC/run/ANCHOR/anchorMC_DataEmbedding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ if [[ ! -f workflowconfig.log ]]; then
echo "Workflowconfig.log file not found"
exit 1
fi
# each reco step must have its complete workflow printout (ending with o2-dpl-run), otherwise the MC would run without the anchored reco settings
NRECOSTEPS=$(grep -c "^Step [0-9])" workflowconfig.log)
[[ ${NRECOSTEPS} -eq 0 ]] && NRECOSTEPS=1
if [[ $(grep -c "#Workflow command" workflowconfig.log) -lt ${NRECOSTEPS} || $(grep -c "^o2-dpl-run " workflowconfig.log) -lt ${NRECOSTEPS} ]]; then
echo_error "workflowconfig.log does not contain the complete reco workflow of every step. Exiting."
exit 1
fi

export ALIEN_JDL_LPMPRODUCTIONTAG=$ALIEN_JDL_LPMPRODUCTIONTAG_KEEP
echo_info "Setting back ALIEN_JDL_LPMPRODUCTIONTAG to $ALIEN_JDL_LPMPRODUCTIONTAG"
Expand Down
Loading