@@ -43,6 +43,10 @@ source $O2JOBIDscript
4343
4444{ source $O2DPG_ROOT /DATA/production/workflow-multiplicities.sh; [[ $? != 0 ]] && echo " workflow-multiplicities.sh failed" 1>&2 && exit 1; }
4545
46+ # entropy encoding/decoding mode, '' is equivalent to '--ans-version compat' (compatible with < 09/2023 data),
47+ # use '--ans-version 1.0 --ctf-dict none' for the new per-TF dictionary mode
48+ : ${RANS_OPT:= " --ans-version 1.0 --ctf-dict none" }
49+
4650WORKFLOW= # Make sure we start with an empty workflow
4751
4852POSITIONAL=()
@@ -89,22 +93,22 @@ if [[ -z ${NO_ITSMFT_MASKING:-} ]] ; then
8993 has_detector_ctf MFT && add_W o2-mft-reco-workflow " --digits-from-upstream --disable-mc --disable-tracking --disable-root-output --pipeline $( get_N mft-tracker MFT REST 1 MFTTRK) " " MFTClustererParam.maxBCDiffToMaskBias=10;"
9094fi
9195
92- has_detector_ctf ITS && add_W o2-itsmft-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${ITS_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${ITS_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${ITS_ENC_MEMFACT:- 1.5} --pipeline $( get_N its-entropy-encoder ITS CTF 1) "
93- has_detector_ctf MFT && add_W o2-itsmft-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${MFT_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${MFT_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${MFT_ENC_MEMFACT:- 1.5} --runmft true --pipeline $( get_N mft-entropy-encoder MFT CTF 1) "
94- has_detector_ctf TPC && add_W o2-tpc-reco-workflow " --select-ir-frames --irframe-margin-bwd ${TPC_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${TPC_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${TPC_ENC_MEMFACT:- 1.} --input-type compressed-clusters-flat --output-type encoded-clusters,disable-writer --pipeline $( get_N tpc-entropy-encoder TPC CTF 1 TPCENT) "
95- has_detector_ctf TRD && add_W o2-trd-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${TRD_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${TRD_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${TRD_ENC_MEMFACT:- 1.5} --pipeline $( get_N trd-entropy-encoder TRD CTF 1 TRDENT) "
96- has_detector_ctf TOF && add_W o2-tof-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${TOF_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${TOF_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${TOF_ENC_MEMFACT:- 1.5} --pipeline $( get_N tof-entropy-encoder TOF CTF 1) "
97- has_detector_ctf FT0 && add_W o2-ft0-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${FT0_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${FT0_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${FT0_ENC_MEMFACT:- 1.5} --pipeline $( get_N ft0-entropy-encoder FT0 CTF 1) "
98- has_detector_ctf FV0 && add_W o2-fv0-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${FV0_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${FV0_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${FV0_ENC_MEMFACT:- 1.5} --pipeline $( get_N fv0-entropy-encoder FV0 CTF 1) "
99- has_detector_ctf FDD && add_W o2-fdd-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${FDD_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${FDD_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${FDD_ENC_MEMFACT:- 1.5} --pipeline $( get_N fdd-entropy-encoder FDD CTF 1) "
100- has_detector_ctf MID && add_W o2-mid-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${MID_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${MID_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${MID_ENC_MEMFACT:- 1.5} --pipeline $( get_N mid-entropy-encoder MID CTF 1) "
101- has_detector_ctf MCH && add_W o2-mch-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${MCH_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${MCH_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${MCH_ENC_MEMFACT:- 1.5} --pipeline $( get_N mch-entropy-encoder MCH CTF 1) "
102- has_detector_ctf PHS && add_W o2-phos-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${PHS_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${PHS_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${PHS_ENC_MEMFACT:- 1.5} --pipeline $( get_N phos-entropy-encoder PHS CTF 1) "
103- has_detector_ctf CPV && add_W o2-cpv-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${CPV_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${CPV_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${CPV_ENC_MEMFACT:- 1.5} --pipeline $( get_N cpv-entropy-encoder CPV CTF 1) "
104- has_detector_ctf EMC && add_W o2-emcal-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${EMC_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${EMC_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${EMC_ENC_MEMFACT:- 1.5} --pipeline $( get_N emcal-entropy-encoder EMC CTF 1) "
105- has_detector_ctf ZDC && add_W o2-zdc-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${ZDC_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${ZDC_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${ZDC_ENC_MEMFACT:- 1.5} --pipeline $( get_N zdc-entropy-encoder ZDC CTF 1) "
106- has_detector_ctf HMP && add_W o2-hmpid-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${HMP_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${HMP_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${HMP_ENC_MEMFACT:- 1.5} --pipeline $( get_N hmpid-entropy-encoder HMP CTF 1) "
107- has_detector_ctf CTP && add_W o2-ctp-entropy-encoder-workflow " --select-ir-frames --irframe-margin-bwd ${CTP_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${CTP_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${CTP_ENC_MEMFACT:- 1.5} --pipeline $( get_N its-entropy-encoder CTP CTF 1) "
96+ has_detector_ctf ITS && add_W o2-itsmft-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${ITS_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${ITS_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${ITS_ENC_MEMFACT:- 1.5} --pipeline $( get_N its-entropy-encoder ITS CTF 1) "
97+ has_detector_ctf MFT && add_W o2-itsmft-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${MFT_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${MFT_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${MFT_ENC_MEMFACT:- 1.5} --runmft true --pipeline $( get_N mft-entropy-encoder MFT CTF 1) "
98+ has_detector_ctf TPC && add_W o2-tpc-reco-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${TPC_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${TPC_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${TPC_ENC_MEMFACT:- 1.} --input-type compressed-clusters-flat --output-type encoded-clusters,disable-writer --pipeline $( get_N tpc-entropy-encoder TPC CTF 1 TPCENT) "
99+ has_detector_ctf TRD && add_W o2-trd-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${TRD_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${TRD_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${TRD_ENC_MEMFACT:- 1.5} --pipeline $( get_N trd-entropy-encoder TRD CTF 1 TRDENT) "
100+ has_detector_ctf TOF && add_W o2-tof-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${TOF_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${TOF_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${TOF_ENC_MEMFACT:- 1.5} --pipeline $( get_N tof-entropy-encoder TOF CTF 1) "
101+ has_detector_ctf FT0 && add_W o2-ft0-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${FT0_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${FT0_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${FT0_ENC_MEMFACT:- 1.5} --pipeline $( get_N ft0-entropy-encoder FT0 CTF 1) "
102+ has_detector_ctf FV0 && add_W o2-fv0-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${FV0_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${FV0_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${FV0_ENC_MEMFACT:- 1.5} --pipeline $( get_N fv0-entropy-encoder FV0 CTF 1) "
103+ has_detector_ctf FDD && add_W o2-fdd-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${FDD_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${FDD_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${FDD_ENC_MEMFACT:- 1.5} --pipeline $( get_N fdd-entropy-encoder FDD CTF 1) "
104+ has_detector_ctf MID && add_W o2-mid-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${MID_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${MID_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${MID_ENC_MEMFACT:- 1.5} --pipeline $( get_N mid-entropy-encoder MID CTF 1) "
105+ has_detector_ctf MCH && add_W o2-mch-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${MCH_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${MCH_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${MCH_ENC_MEMFACT:- 1.5} --pipeline $( get_N mch-entropy-encoder MCH CTF 1) "
106+ has_detector_ctf PHS && add_W o2-phos-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${PHS_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${PHS_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${PHS_ENC_MEMFACT:- 1.5} --pipeline $( get_N phos-entropy-encoder PHS CTF 1) "
107+ has_detector_ctf CPV && add_W o2-cpv-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${CPV_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${CPV_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${CPV_ENC_MEMFACT:- 1.5} --pipeline $( get_N cpv-entropy-encoder CPV CTF 1) "
108+ has_detector_ctf EMC && add_W o2-emcal-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${EMC_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${EMC_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${EMC_ENC_MEMFACT:- 1.5} --pipeline $( get_N emcal-entropy-encoder EMC CTF 1) "
109+ has_detector_ctf ZDC && add_W o2-zdc-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${ZDC_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${ZDC_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${ZDC_ENC_MEMFACT:- 1.5} --pipeline $( get_N zdc-entropy-encoder ZDC CTF 1) "
110+ has_detector_ctf HMP && add_W o2-hmpid-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${HMP_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${HMP_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${HMP_ENC_MEMFACT:- 1.5} --pipeline $( get_N hmpid-entropy-encoder HMP CTF 1) "
111+ has_detector_ctf CTP && add_W o2-ctp-entropy-encoder-workflow " $RANS_OPT --select-ir-frames --irframe-margin-bwd ${CTP_MARGIN_BWD:- $DEF_MARGIN_BWD } --irframe-margin-fwd ${CTP_MARGIN_FWD:- $DEF_MARGIN_FWD } --mem-factor ${CTP_ENC_MEMFACT:- 1.5} --pipeline $( get_N its-entropy-encoder CTP CTF 1) "
108112
109113add_W o2-ctf-writer-workflow " --output-dir $CTF_DIR --min-file-size ${CTF_MINSIZE} --max-ctf-per-file ${CTF_MAX_PER_FILE} --onlyDet $WORKFLOW_DETECTORS_CTF $CTF_MAXDETEXT "
110114
0 commit comments