@@ -340,13 +340,16 @@ WORKFLOW= # Make sure we start with an empty workflow
340340# ---------------------------------------------------------------------------------------------------------------------
341341# Input workflow
342342INPUT_DETECTOR_LIST=$WORKFLOW_DETECTORS
343- if [[ ! -z ${WORKFLOW_DETECTORS_USE_GLOBAL_READER} ]]; then
344- for i in ${WORKFLOW_DETECTORS_USE_GLOBAL_READER// ,/ } ; do
343+ if [[ ! -z ${WORKFLOW_DETECTORS_USE_GLOBAL_READER_TRACKS} ]] || [[ ! -z ${WORKFLOW_DETECTORS_USE_GLOBAL_READER_CLUSTERS} ]]; then
344+ for i in ${WORKFLOW_DETECTORS_USE_GLOBAL_READER_TRACKS// ,/ } ; do
345+ export INPUT_DETECTOR_LIST=$( echo $INPUT_DETECTOR_LIST | sed -e " s/,$i ,/,/g" -e " s/^$i ,//" -e " s/,$i " ' $' " //" -e " s/^$i " ' $' " //" )
346+ done
347+ for i in ${WORKFLOW_DETECTORS_USE_GLOBAL_READER_CLUSTERS// ,/ } ; do
345348 export INPUT_DETECTOR_LIST=$( echo $INPUT_DETECTOR_LIST | sed -e " s/,$i ,/,/g" -e " s/^$i ,//" -e " s/,$i " ' $' " //" -e " s/^$i " ' $' " //" )
346349 done
347350 GLOBAL_READER_OPTIONS=
348351 has_detector ITS && SYNCMODE==1 && GLOBAL_READER_OPTIONS+=" --ir-frames-its"
349- add_W o2-global-track-cluster-reader " --cluster-types $WORKFLOW_DETECTORS_USE_GLOBAL_READER --track-types $WORKFLOW_DETECTORS_USE_GLOBAL_READER $GLOBAL_READER_OPTIONS $DISABLE_MC --hbfutils-config o2_tfidinfo.root"
352+ add_W o2-global-track-cluster-reader " --cluster-types $WORKFLOW_DETECTORS_USE_GLOBAL_READER_CLUSTERS --track-types $WORKFLOW_DETECTORS_USE_GLOBAL_READER_TRACKS $GLOBAL_READER_OPTIONS $DISABLE_MC --hbfutils-config o2_tfidinfo.root"
350353 has_detector FV0 && has_detector_from_global_reader FV0 && add_W o2-fv0-digit-reader-workflow " $DISABLE_MC --hbfutils-config o2_tfidinfo.root --fv0-digit-infile o2_fv0digits.root"
351354 has_detector MID && has_detector_from_global_reader MID && add_W o2-mid-digits-reader-workflow " $DISABLE_MC --hbfutils-config o2_tfidinfo.root --mid-digit-infile mid-digits-decoded.root"
352355 has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-digits-reader-workflow " $DISABLE_MC --hbfutils-config o2_tfidinfo.root --infile mchdigits.root"
@@ -496,7 +499,7 @@ has_detector FDD && ! has_detector_from_global_reader FDD && has_processing_step
496499has_detector FV0 && ! has_detector_from_global_reader FV0 && has_processing_step FV0_RECO && add_W o2-fv0-reco-workflow " $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT $DISABLE_MC "
497500has_detector ZDC && ! has_detector_from_global_reader ZDC && has_processing_step ZDC_RECO && add_W o2-zdc-digits-reco " $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT $DISABLE_MC "
498501has_detector HMP && ! has_detector_from_global_reader HMP && has_processing_step HMP_RECO && add_W o2-hmpid-digits-to-clusters-workflow " $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT --pipeline $( get_N HMP-Clusterization HMP REST 1 HMPCLUS) "
499- has_detector HMP && ! has_detector_from_global_reader HMP && has_processing_step HMP_RECO && add_W o2-hmpid-matcher-workflow " $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT $DISABLE_MC --track-sources ${HMP_SOURCES:- all} --pipeline $( get_N hmp-matcher HMP REST 1 HMPMATCH) "
502+ has_detector HMP && has_detector_matching HMP && ! has_detector_from_global_reader_tracks HMP && has_processing_step HMP_RECO && add_W o2-hmpid-matcher-workflow " $DISABLE_DIGIT_ROOT_INPUT $DISABLE_ROOT_OUTPUT $DISABLE_MC --track-sources ${HMP_SOURCES:- all} --pipeline $( get_N hmp-matcher HMP REST 1 HMPMATCH) "
500503has_detectors_reco MCH MID && has_detector_matching MCHMID && add_W o2-muon-tracks-matcher-workflow " $DISABLE_ROOT_INPUT $DISABLE_MC $DISABLE_ROOT_OUTPUT --pipeline $( get_N muon-track-matcher MATCH REST 1) "
501504has_detectors_reco MFT MCH && has_detector_matching MFTMCH && add_W o2-globalfwd-matcher-workflow " $DISABLE_ROOT_INPUT $DISABLE_ROOT_OUTPUT $DISABLE_MC --pipeline $( get_N globalfwd-track-matcher MATCH REST 1 FWDMATCH) " " $MFTMCHConf "
502505
0 commit comments