@@ -347,18 +347,26 @@ if [[ ! -z ${WORKFLOW_DETECTORS_USE_GLOBAL_READER_TRACKS} ]] || [[ ! -z ${WORKFL
347347 for i in ${WORKFLOW_DETECTORS_USE_GLOBAL_READER_CLUSTERS// ,/ } ; do
348348 export INPUT_DETECTOR_LIST=$( echo $INPUT_DETECTOR_LIST | sed -e " s/,$i ,/,/g" -e " s/^$i ,//" -e " s/,$i " ' $' " //" -e " s/^$i " ' $' " //" )
349349 done
350+
350351 GLOBAL_READER_OPTIONS=
351352 has_detector ITS && SYNCMODE==1 && GLOBAL_READER_OPTIONS+=" --ir-frames-its"
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"
353- 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"
354- 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"
355- 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"
356- has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-digits-reader-workflow " $DISABLE_MC --hbfutils-config o2_tfidinfo.root --infile mchfdigits.root --mch-output-digits-data-description F-DIGITS --mch-output-digitrofs-data-description TC-F-DIGITROFS"
357- has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-errors-reader-workflow " --hbfutils-config o2_tfidinfo.root" " " 0
358- has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-clusters-reader-workflow " --hbfutils-config o2_tfidinfo.root" " " 0
359- has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-preclusters-reader-workflow " --hbfutils-config o2_tfidinfo.root" " " 0
360- has_detector TRD && has_detector_from_global_reader TRD && add_W o2-trd-digit-reader-workflow " $DISABLE_MC --digit-subspec 0 --disable-trigrec --hbfutils-config o2_tfidinfo.root"
361- has_detector TOF && has_detector_from_global_reader TOF && add_W o2-tof-reco-workflow " $DISABLE_MC --input-type digits --output-type NONE --hbfutils-config o2_tfidinfo.root"
353+
354+ if [[ ! -z ${TIMEFRAME_RATE_LIMIT:- } ]] && [[ $TIMEFRAME_RATE_LIMIT != 0 ]]; then
355+ HBFINI_OPTIONS=" --hbfutils-config o2_tfidinfo.root,upstream "
356+ add_W o2-reader-driver-workflow " $HBFINI_OPTIONS "
357+ else
358+ HBFINI_OPTIONS=" --hbfutils-config o2_tfidinfo.root "
359+ fi
360+ 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 $HBFINI_OPTIONS "
361+ has_detector FV0 && has_detector_from_global_reader FV0 && add_W o2-fv0-digit-reader-workflow " $DISABLE_MC $HBFINI_OPTIONS --fv0-digit-infile o2_fv0digits.root"
362+ has_detector MID && has_detector_from_global_reader MID && add_W o2-mid-digits-reader-workflow " $DISABLE_MC $HBFINI_OPTIONS --mid-digit-infile mid-digits-decoded.root"
363+ has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-digits-reader-workflow " $DISABLE_MC $HBFINI_OPTIONS --infile mchdigits.root"
364+ has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-digits-reader-workflow " $DISABLE_MC $HBFINI_OPTIONS --infile mchfdigits.root --mch-output-digits-data-description F-DIGITS --mch-output-digitrofs-data-description TC-F-DIGITROFS"
365+ has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-errors-reader-workflow " $HBFINI_OPTIONS " " " 0
366+ has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-clusters-reader-workflow " $HBFINI_OPTIONS " " " 0
367+ has_detector MCH && has_detector_from_global_reader MCH && add_W o2-mch-preclusters-reader-workflow " $HBFINI_OPTIONS " " " 0
368+ has_detector TRD && has_detector_from_global_reader TRD && add_W o2-trd-digit-reader-workflow " $DISABLE_MC --digit-subspec 0 --disable-trigrec $HBFINI_OPTIONS "
369+ has_detector TOF && has_detector_from_global_reader TOF && add_W o2-tof-reco-workflow " $DISABLE_MC --input-type digits --output-type NONE $HBFINI_OPTIONS "
362370fi
363371
364372if [[ ! -z $INPUT_DETECTOR_LIST ]]; then
0 commit comments