Skip to content
Snippets Groups Projects
Commit 618e6fc6 authored by Adrian A. Weber's avatar Adrian A. Weber
Browse files

add check of data format version.

parent cb36bf64
No related branches found
No related tags found
1 merge request!697fix of RICH unpacker v3 following bugfix in CRI firmware + add Tot correction...
Pipeline #15813 passed
......@@ -25,6 +25,12 @@ bool CbmRichUnpackAlgo2022::unpack(const fles::Timeslice* ts, std::uint16_t icom
const fles::MicrosliceView mv = ts->get_microslice(icomp, imslice);
const fles::MicrosliceDescriptor& msDesc = mv.desc();
// Check the version number of the MS to identify wrong unpacker for data
if (msDesc.sys_ver != 0x3) {
LOG(fatal) << "CbmRichUnpackAlgo2022: System Version of the microslice is not compatible with this unpacker!";
return false;
}
// Clear CbmTime of MS. Used to get time offset of subtriggers to MS start
fCbmTimeMS = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment