Skip to content

Commit

Permalink
dpl-workflow.sh attaches o2-tpc-scaler-workflow for --lumi-type=2 sca…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
shahor02 committed Nov 14, 2023
1 parent 33890e0 commit b15719d
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions prodtests/full-system-test/dpl-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,23 +273,15 @@ ASK_CTP_LUMI_GPU=
local restOpt=
while [[ $# -gt 0 ]]; do
case "$1" in
--lumi-type=*) ASK_CTP_LUMI_GPU=" --lumi-type ${1#*=}"; shift 1;;
--lumi-type) ASK_CTP_LUMI_GPU=" --lumi-type ${2}"; shift 2;;
--lumi-type=*) ASK_CTP_LUMI_GPU=" --lumi-type ${1#*=}"; [[ ${1#*=} == "2" ]] && NEED_TPC_SCALERS_WF=1; shift 1;;
--lumi-type) ASK_CTP_LUMI_GPU=" --lumi-type ${2}"; [[ ${2} == "2" ]] && NEED_TPC_SCALERS_WF=1; shift 2;;
*) restOpt+=" $1"; shift 1;;
esac
done
TPC_CORR_SCALING=$restOpt
TPC_CORR_SCALING_GPU=$restOpt
}

parse_TPC_CORR_SCALING $TPC_CORR_SCALING

: ${TPC_CORR_SCALING_GPU:=""}
if [[ "$TPC_CORR_SCALING" == *"$ASK_CTP_LUMI_GPU"* ]]; then
TPC_CORR_SCALING_GPU=${TPC_CORR_SCALING//$ASK_CTP_LUMI_GPU/}
else
ASK_CTP_LUMI_GPU=""
TPC_CORR_SCALING_GPU="$TPC_CORR_SCALING"
fi
GPU_CONFIG_SELF+=" $TPC_CORR_SCALING_GPU "

if [[ $GPUTYPE != "CPU" && $(ulimit -e) -ge 25 && ${O2_GPU_WORKFLOW_NICE:-} == 1 ]]; then
Expand Down Expand Up @@ -446,6 +438,9 @@ fi
ROOT_OUTPUT_ASKED=`declare -p | cut -d' ' -f3 | cut -d'=' -f1 | grep ENABLE_ROOT_OUTPUT_`
[[ -z "$DISABLE_ROOT_OUTPUT" ]] || [[ ! -z $ROOT_OUTPUT_ASKED ]] && add_W o2-tfidinfo-writer-workflow

# if TPC correction with IDC from CCDB was requested
has_detector TPC && [[ ${NEED_TPC_SCALERS_WF:-} == 1 ]] && add_W o2-tpc-scaler-workflow " ${TPC_SCALERS_CONF:-} "

# ---------------------------------------------------------------------------------------------------------------------
# Raw decoder workflows - disabled in async mode
if [[ $CTFINPUT == 0 && $DIGITINPUT == 0 ]]; then
Expand Down

0 comments on commit b15719d

Please sign in to comment.