38 const int daqHeaderLen = 16;
39 pData16 += daqHeaderLen /
sizeof(pData16[0]);
43 tTrigPs = *((
const int32_t*)pData16);
50 for (
int iCh = 0; iCh < nCh; ++iCh) {
63 int padding = (4 - (pData16 - begin16)) % 4;
68 fragLen = trailer32[1] & 0xFFFFFF;
75 const int nHeaders = 3;
83 const int trailerLen = 4;
84 pData16 += trailerLen;
88 if ((pData16 - begin16) != (4 *
fragLen)) {
92 if ((
size_t)(pData16 - begin16) >
maxSize) {
93 throw std::runtime_error(
std::string(
"Corrupted or truncated data"));
105 while ((
mask & 0
x1) == 0) {
static const field32spec_t lv132
static const field32spec_t fov32
static const field32spec_t boeType32
static const field32spec_t runNum32
std::vector< ChannelData > channelData
int read32(const uint32le_t *pData, field32spec_t spec) const
int getMatacqDataFormatVersion() const
const uint32le_t * daqHeader
static const field32spec_t triggerType32
static const field32spec_t h1Marker32
static const field32spec_t bxId32
const matacqHeader_t * matacqHeader
static const field32spec_t dccLen32
void setRawData(const unsigned char *buffer, std::size_t bufferSize)
static const field32spec_t fedId32
int getChannelCount() const
static const field32spec_t dccErrors32