39 const int daqHeaderLen = 16;
40 pData16 += daqHeaderLen/
sizeof(pData16[0]);
44 tTrigPs = *((int32_t*) pData16);
51 for(
int iCh=0; iCh<nCh; ++iCh){
64 int padding = (4-(pData16-begin16))%4;
65 if(padding<0) padding+=4;
68 fragLen = trailer32[1]&0xFFFFFF;
75 const int nHeaders = 3;
84 const int trailerLen = 4;
85 pData16 += trailerLen;
89 if((pData16-begin16)!=(4*
fragLen)){
93 if((
size_t)(pData16-begin16)>maxSize){
94 throw std::runtime_error(
std::string(
"Corrupted or truncated data"));
105 int mask = spec32.
mask;
106 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
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