@@ -419,8 +419,8 @@ has_detectors_reco MFT MCH && has_detector_matching MFTMCH && add_W o2-globalfwd
419419( has_detector_qc PHS || has_detector_calib PHS ) && ( workflow_has_parameter QC || workflow_has_parameter CALIB ) && add_W o2-phos-reco-workflow " --input-type cells --output-type clusters ${PHS_CONFIG} $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT $DISABLE_MC --pipeline $( get_N PHOSClusterizerSpec PHS REST 1) "
420420
421421# always run vertexing if requested and if there are some sources, but in cosmic mode we work in pass-trough mode (create record for non-associated tracks)
422- [[ $BEAMTYPE == " cosmic" ]] && PVTXSKIP= " --skip" || PVTXSKIP=
423- has_detectors_reco ITS && has_detector_matching PRIMVTX && [[ ! -z " $VERTEXING_SOURCES " ]] && add_W o2-primary-vertexing-workflow " $PVTXSKIP $DISABLE_MC $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT $PVERTEX_CONFIG --pipeline $( get_N primary-vertexing MATCH REST 1) " " ${PVERTEXING_CONFIG_KEY} "
422+ ( [[ $BEAMTYPE == " cosmic" ]] || ! has_detector_reco ITS) && PVERTEX_CONFIG+= " --skip"
423+ has_detector_matching PRIMVTX && [[ ! -z " $VERTEXING_SOURCES " ]] && add_W o2-primary-vertexing-workflow " $PVTXSKIP $DISABLE_MC $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT $PVERTEX_CONFIG --pipeline $( get_N primary-vertexing MATCH REST 1) " " ${PVERTEXING_CONFIG_KEY} "
424424
425425if [[ $BEAMTYPE != " cosmic" ]]; then
426426 has_detectors_reco ITS && has_detector_matching SECVTX && [[ ! -z " $SVERTEXING_SOURCES " ]] && add_W o2-secondary-vertexing-workflow " $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT --vertexing-sources $SVERTEXING_SOURCES --threads $SVERTEX_THREADS --pipeline $( get_N secondary-vertexing MATCH REST $SVERTEX_THREADS ) "
@@ -481,7 +481,7 @@ workflow_has_parameter GPU_DISPLAY && [[ $NUMAID == 0 ]] && add_W o2-gpu-display
481481# ---------------------------------------------------------------------------------------------------------------------
482482# AOD
483483[[ -z " $AOD_INPUT " ]] && AOD_INPUT=$TRACK_SOURCES
484- ( ! has_detector_matching SECVTX || [[ $BEAMTYPE == " cosmic" ]]) && AODPROD_OPT+=" --disable-secondary-vertices"
484+ ( ! has_detector_matching SECVTX || ! has_detectors_reco ITS || [[ $BEAMTYPE == " cosmic" ]]) && AODPROD_OPT+=" --disable-secondary-vertices"
485485workflow_has_parameter AOD && [[ ! -z " $AOD_INPUT " ]] && add_W o2-aod-producer-workflow " $AODPROD_OPT --info-sources $AOD_INPUT $DISABLE_DIGIT_ROOT_INPUT --aod-writer-keep dangling --aod-writer-resfile " AO2D" --aod-writer-resmode UPDATE $DISABLE_MC "
486486
487487# ---------------------------------------------------------------------------------------------------------------------
0 commit comments