File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Detectors/TOF/compression/src Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -167,20 +167,21 @@ bool Compressor<RDH, verbose>::processHBF()
167167 }
168168 mDecoderSaveBufferDataSize = 0 ;
169169
170- /* * bring encoder pointer back if fatal error **/
170+ /* * updated encoder RDH open **/
171+ mEncoderRDH ->memorySize = reinterpret_cast <char *>(mEncoderPointer ) - reinterpret_cast <char *>(mEncoderRDH );
172+ mEncoderRDH ->offsetToNext = mEncoderRDH ->memorySize ;
173+
174+ /* * bring encoder pointer back if fatal error and flag it **/
171175 if (mDecoderFatal ) {
172176 mFatalCounter ++;
173177 mEncoderPointer = mEncoderPointerStart ;
178+ mEncoderRDH ->detectorField |= 0x00010000 ;
174179 }
175180
176181 if (mDecoderError ) {
177182 mErrorCounter ++;
178183 }
179184
180- /* * updated encoder RDH open **/
181- mEncoderRDH ->memorySize = reinterpret_cast <char *>(mEncoderPointer ) - reinterpret_cast <char *>(mEncoderRDH );
182- mEncoderRDH ->offsetToNext = mEncoderRDH ->memorySize ;
183-
184185 /* * copy RDH close to encoder buffer **/
185186 /* * CAREFUL WITH THE PAGE COUNTER **/
186187 mEncoderRDH = reinterpret_cast <RDH*>(mEncoderPointer );
You can’t perform that action at this time.
0 commit comments