21#include <fairlogger/Logger.h>
68 long wordsBufferLen = BufferLen / (
sizeof(int32_t) /
sizeof(
char));
69 if (Buffer ==
nullptr) {
70 LOG(error) <<
"Raw data buffer null Pointer ! ";
73 if (wordsBufferLen == 0) {
74 LOG(error) <<
"Raw data buffer Empty ! ";
77 if (wordsBufferLen < 16) {
78 LOG(error) <<
"Raw data buffer less then the Header Dimension = " << wordsBufferLen;
94bool HmpidDecodeRawMem::getBlockFromStream(uint32_t** streamPtr, uint32_t
Size)
110bool HmpidDecodeRawMem::getHeaderFromStream(uint32_t** streamPtr)
112 return (getBlockFromStream(streamPtr,
mRDHSize));
118bool HmpidDecodeRawMem::getWordFromStream(uint32_t* word)
122 return (getBlockFromStream(&appo, 1));
Derived Class for decoding Raw Data Memory stream.
~HmpidDecodeRawDigit()
Destructor.
HmpidDecodeRawDigit(int *EqIds, int *CruIds, int *LinkIds, int numOfEquipments)
std::vector< o2::hmpid::Digit > mDigits
HmpidDecodeRawMem(int *EqIds, int *CruIds, int *LinkIds, int numOfEquipments)
bool setUpStream(void *Buffer, long BufferLen) override
~HmpidDecodeRawMem()
Destructor.
uint32_t * mStartStreamPtr
uint32_t * mActualStreamPtr
void setPad(int col, int dil, int cha, uint16_t charge)
const int TH_NULLBUFFERPOINTER
const int TH_WRONGBUFFERDIM
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"