From 99c9b85acfe31a5fbf9c997efce3faeb35f8797d Mon Sep 17 00:00:00 2001 From: noferini Date: Sat, 14 Oct 2023 18:54:11 +0200 Subject: [PATCH] fix FEE mismatch in tof-compressor --- Detectors/TOF/compression/src/Compressor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Detectors/TOF/compression/src/Compressor.cxx b/Detectors/TOF/compression/src/Compressor.cxx index 180d26cb7a6bf..26c5d6b4cf09f 100644 --- a/Detectors/TOF/compression/src/Compressor.cxx +++ b/Detectors/TOF/compression/src/Compressor.cxx @@ -413,7 +413,8 @@ bool Compressor::processDRM() /** encode Crate Header **/ *mEncoderPointer = 0x80000000; *mEncoderPointer |= GET_DRMHEADW1_PARTSLOTMASK(*mDecoderSummary.drmHeadW1) << 12; - *mEncoderPointer |= GET_DRMDATAHEADER_DRMID(*mDecoderSummary.drmDataHeader) << 24; + // R+OLD *mEncoderPointer |= GET_DRMDATAHEADER_DRMID(*mDecoderSummary.drmDataHeader) << 24; + *mEncoderPointer |= (mDecoderRDH->feeId & 0xFF) << 24; *mEncoderPointer |= GET_DRMHEADW3_GBTBUNCHCNT(*mDecoderSummary.drmHeadW3); if (verbose && mEncoderVerbose) { auto crateHeader = reinterpret_cast(mEncoderPointer);