40 const int daqHeaderLen = 16;
41 pData16 += daqHeaderLen/
sizeof(pData16[0]);
45 tTrigPs = *((int32_t*) pData16);
52 for(
int iCh=0; iCh<nCh; ++iCh){
65 int padding = (4-(pData16-begin16))%4;
66 if(padding<0) padding+=4;
69 fragLen = trailer32[1]&0xFFFFFF;
76 const int nHeaders = 3;
85 const int trailerLen = 4;
86 pData16 += trailerLen;
90 if((pData16-begin16)!=(4*
fragLen)){
94 if((
size_t)(pData16-begin16)>maxSize){
95 throw std::runtime_error(
std::string(
"Corrupted or truncated data"));
106 int mask = spec32.
mask;
107 while((mask&0x1) == 0){
static const field32spec_t lv132
static const field32spec_t fov32
void setRawData(const unsigned char *buffer, size_t bufferSize)
int read32(uint32le_t *pData, field32spec_t spec) const
static const field32spec_t boeType32
int getChannelCount() const
static const field32spec_t runNum32
std::vector< ChannelData > channelData
const T & max(const T &a, const T &b)
tuple maxSize
'/store/data/Commissioning08/BeamHalo/RECO/StuffAlmostToP5_v1/000/061/642/10A0FE34-A67D-DD11-AD05-000...
int getMatacqDataFormatVersion() const
static const field32spec_t triggerType32
matacqHeader_t * matacqHeader
static const field32spec_t h1Marker32
static const field32spec_t bxId32
static const field32spec_t dccLen32
static const field32spec_t fedId32
static const field32spec_t dccErrors32