Skip to content

Commit bd11c5c

Browse files
committed
Sync dpl-workflow from O2DataProcessing
1 parent ad7f0c6 commit bd11c5c

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

prodtests/full-system-test/dpl-workflow.sh

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ CTF_DICT=${CTF_DICT_DIR}/ctf_dictionary.root
3838

3939
ITSMFT_FILES="ITSClustererParam.dictFilePath=$ITSCLUSDICT;MFTClustererParam.dictFilePath=$MFTCLUSDICT";
4040

41+
LIST_OF_ASYNC_RECO_STEPS="MID MCH MFT FDD FV0 ZDC"
42+
4143
# ---------------------------------------------------------------------------------------------------------------------
4244
# Set active reconstruction steps (defaults added according to SYNCMODE)
4345

@@ -52,7 +54,7 @@ done
5254
if [ $SYNCMODE == 1 ]; then # Add default steps for synchronous mode
5355
add_comma_separated WORKFLOW_EXTRA_PROCESSING_STEPS ENTROPY_ENCODER
5456
else # Add default steps for async mode
55-
for i in MID MCH MFT FDD FV0 ZDC; do
57+
for i in $LIST_OF_ASYNC_RECO_STEPS; do
5658
has_detector_reco $i && add_comma_separated WORKFLOW_EXTRA_PROCESSING_STEPS ${i}_RECO
5759
done
5860
fi
@@ -106,7 +108,7 @@ if [ $SYNCMODE == 1 ]; then
106108
ITS_CONFIG_KEY+="fastMultConfig.cutMultClusLow=30;fastMultConfig.cutMultClusHigh=2000;fastMultConfig.cutMultVtxHigh=500;"
107109
ITS_CONFIG+=" --tracking-mode sync"
108110
elif [ $BEAMTYPE == "pp" ]; then
109-
ITS_CONFIG_KEY+="fastMultConfig.cutMultClusLow=1;fastMultConfig.cutMultClusHigh=2000;fastMultConfig.cutMultVtxHigh=500;"
111+
ITS_CONFIG_KEY+="fastMultConfig.cutMultClusLow=1;fastMultConfig.cutMultClusHigh=2000;fastMultConfig.cutMultVtxHigh=500;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2"
110112
ITS_CONFIG+=" --tracking-mode sync"
111113
elif [ $BEAMTYPE == "cosmic" ]; then
112114
ITS_CONFIG+=" --tracking-mode cosmics"
@@ -118,8 +120,18 @@ if [ $SYNCMODE == 1 ]; then
118120
TRD_CONFIG_KEY+="GPU_proc.ompThreads=1;"
119121
TRD_TRANSFORMER_CONFIG+=" --filter-trigrec"
120122
else
121-
ITS_CONFIG+=" --tracking-mode async"
123+
if [ $BEAMTYPE == "PbPb" ]; then
124+
ITS_CONFIG+=" --tracking-mode async"
125+
elif [ $BEAMTYPE == "pp" ]; then
126+
ITS_CONFIG_KEY+="fastMultConfig.cutMultClusLow=1;fastMultConfig.cutMultClusHigh=2000;fastMultConfig.cutMultVtxHigh=500;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2"
127+
ITS_CONFIG+=" --tracking-mode async"
128+
elif [ $BEAMTYPE == "cosmic" ]; then
129+
ITS_CONFIG+=" --tracking-mode cosmics"
130+
else
131+
ITS_CONFIG+=" --tracking-mode async"
132+
fi
122133
fi
134+
123135
has_processing_step ENTROPY_ENCODER && GPU_OUTPUT+=",compressed-clusters-ctf"
124136

125137
has_detector_flp_processing CPV && CPV_INPUT=digits
@@ -130,7 +142,7 @@ if [ $EPNMODE == 1 ]; then
130142
MIDDEC_CONFIG+=" --feeId-config-file \"$MID_FEEID_MAP\""
131143
GPU_CONFIG_KEY+="GPU_proc.tpcIncreasedMinClustersPerRow=500000;GPU_proc.ignoreNonFatalGPUErrors=1;"
132144
# Options for decoding current TRD real raw data (not needed for data converted from MC)
133-
if [ -z $TRD_DECODER_OPTIONS ]; then TRD_DECODER_OPTIONS=" --tracklethcheader 2 --ignore-digithcheader --halfchamberwords 2 --halfchambermajor 33 "; fi
145+
if [ -z $TRD_DECODER_OPTIONS ]; then TRD_DECODER_OPTIONS=" --tracklethcheader 2 "; fi
134146
if [ $EXTINPUT == 1 ] && [ $GPUTYPE != "CPU" ] && [ -z "$GPU_NUM_MEM_REG_CALLBACKS" ]; then GPU_NUM_MEM_REG_CALLBACKS=4; fi
135147
fi
136148

@@ -181,7 +193,11 @@ has_detector_matching TPCTOF && { add_comma_separated TOF_SOURCES TPC; add_comma
181193
has_detector_matching ITSTPCTOF && { add_comma_separated TOF_SOURCES ITS-TPC; add_comma_separated TRACK_SOURCES "ITS-TPC-TOF"; }
182194
has_detector_matching MFTMCH && add_comma_separated TRACK_SOURCES "MFT-MCH"
183195
for det in `echo $LIST_OF_DETECTORS | sed "s/,/ /g"`; do
184-
has_detector_reco $det && add_comma_separated TRACK_SOURCES "$det"
196+
if [[ $LIST_OF_ASYNC_RECO_STEPS =~ (^| )${det}( |$) ]]; then
197+
has_processing_step ${det}_RECO && add_comma_separated TRACK_SOURCES "$det"
198+
else
199+
has_detector_reco $det && add_comma_separated TRACK_SOURCES "$det"
200+
fi
185201
done
186202
PVERTEX_CONFIG="--vertexing-sources $TRACK_SOURCES --vertex-track-matching-sources $TRACK_SOURCES"
187203
has_detector_reco FT0 && PVERTEX_CONFIG+=" --validate-with-ft0"
@@ -335,16 +351,19 @@ has_detectors_reco TRD TPC ITS && [ ! -z "$TRD_SOURCES" ] && WORKFLOW+="o2-trd-g
335351
has_detectors_reco TOF TRD TPC ITS && [ ! -z "$TOF_SOURCES" ] && WORKFLOW+="o2-tof-matcher-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG;$ITSMFT_FILES\" --disable-root-input $DISABLE_ROOT_OUTPUT $DISABLE_MC --track-sources $TOF_SOURCES --pipeline $(get_N tof-matcher TOF REST TOFMATCH) | "
336352

337353
# ---------------------------------------------------------------------------------------------------------------------
338-
# Reconstruction workflows normally active only in async mode in async mode, but can be forced via $WORKFLOW_EXTRA_PROCESSING_STEPS
354+
# Reconstruction workflows normally active only in async mode in async mode ($LIST_OF_ASYNC_RECO_STEPS), but can be forced via $WORKFLOW_EXTRA_PROCESSING_STEPS
339355
has_processing_step MID_RECO && WORKFLOW+="o2-mid-reco-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" $DISABLE_ROOT_OUTPUT $DISABLE_MC --pipeline $(get_N MIDClusterizer MID REST),$(get_N MIDTracker MID REST) | "
340356
has_processing_step MCH_RECO && WORKFLOW+="o2-mch-reco-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --disable-root-input $DISABLE_ROOT_OUTPUT $DISABLE_MC --pipeline $(get_N mch-track-finder MCH REST MCHTRK),$(get_N mch-cluster-finder MCH REST),$(get_N mch-cluster-transformer MCH REST) | "
341357
has_processing_step MFT_RECO && WORKFLOW+="o2-mft-reco-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG;$ITSMFT_FILES\" --clusters-from-upstream $DISABLE_MC $DISABLE_ROOT_OUTPUT --pipeline $(get_N mft-tracker MFT REST MFTTRK) | "
342358
has_processing_step FDD_RECO && WORKFLOW+="o2-fdd-reco-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --disable-root-input $DISABLE_ROOT_OUTPUT $DISABLE_MC | "
343359
has_processing_step FV0_RECO && WORKFLOW+="o2-fv0-reco-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --disable-root-input $DISABLE_ROOT_OUTPUT $DISABLE_MC | "
344360
has_processing_step ZDC_RECO && WORKFLOW+="o2-zdc-digits-reco $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --disable-root-input $DISABLE_ROOT_OUTPUT $DISABLE_MC | "
345361
has_detectors_reco MFT MCH && has_detector_matching MFTMCH && WORKFLOW+="o2-globalfwd-matcher-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --disable-root-input $DISABLE_ROOT_OUTPUT $DISABLE_MC --pipeline $(get_N globalfwd-track-matcher MATCH REST) | "
346-
has_detectors_reco ITS && has_detector_matching PRIMVTX && WORKFLOW+="o2-primary-vertexing-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" $DISABLE_MC --disable-root-input $DISABLE_ROOT_OUTPUT $PVERTEX_CONFIG --pipeline $(get_N primary-vertexing MATCH REST) | "
347-
has_detectors_reco ITS && has_detector_matching SECVTX && WORKFLOW+="o2-secondary-vertexing-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --disable-root-input $DISABLE_ROOT_OUTPUT --vertexing-sources $TRACK_SOURCES --pipeline $(get_N secondary-vertexing MATCH REST) | "
362+
363+
if [ $BEAMTYPE != "cosmic" ]; then
364+
has_detectors_reco ITS && has_detector_matching PRIMVTX && WORKFLOW+="o2-primary-vertexing-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" $DISABLE_MC --disable-root-input $DISABLE_ROOT_OUTPUT $PVERTEX_CONFIG --pipeline $(get_N primary-vertexing MATCH REST) | "
365+
has_detectors_reco ITS && has_detector_matching SECVTX && WORKFLOW+="o2-secondary-vertexing-workflow $ARGS_ALL --configKeyValues \"$ARGS_ALL_CONFIG\" --disable-root-input $DISABLE_ROOT_OUTPUT --vertexing-sources $TRACK_SOURCES --pipeline $(get_N secondary-vertexing MATCH REST) | "
366+
fi
348367

349368
# ---------------------------------------------------------------------------------------------------------------------
350369
# Entropy encoding / ctf creation workflows - disabled in async mode

0 commit comments

Comments
 (0)