4 #ifndef MATACQRAWEVENT_H
5 #define MATACQRAWEVENT_H
10 #if 0 //replace 1 by 0 to remove XDAQ dependency. In this case it is assumed the
12 #include "i2o/utils/endian.h"
13 #define UINT32_FROM_LE i2odecodel
14 #define UINT16_FROM_LE i2odecodes
15 #define INT16_FROM_LE i2odecodes
17 #else //assuming little endianness of the machine
19 #define UINT32_FROM_LE
20 #define UINT16_FROM_LE
52 operator uint32_t()
const{
59 operator uint16_t()
const{
66 operator int16_t()
const{
368 static int read32(uint32le_t* pData, field32spec_t spec,
bool ovfTrans =
false);
383 void setRawData(
const unsigned char* buffer,
size_t bufferSize);
513 #endif //MATACQRAWEVENT_H not defined
static const field32spec_t vernier1_32
static const field32spec_t fedId32
static const field32spec_t boeType32
unsigned getRunNum() const
static unsigned getRunNum(unsigned char *data, size_t size)
const int16le_t * samples
static unsigned getOrbitId(unsigned char *data, size_t size)
static const field32spec_t runNum32
static const field32spec_t timeStamp32
static const field32spec_t trigType32
static const field32spec_t tTrigPs32
std::vector< int > vernier
static const field32spec_t channelCount32
int32_t getStatus() const
unsigned getDaqLen() const
uint32_t getOrbitId() const
unsigned getDccLen() const
static const field32spec_t emtcPhase32
void setRawData(const unsigned char *buffer, size_t bufferSize)
static const field32spec_t dccLen32
static const field32spec_t fov32
static const field32spec_t attenuation_dB32
static const field32spec_t lv132
int getChannelCount() const
int getMatacqDataFormatVersion() const
static const field32spec_t vernier0_32
int matacqDataFormatVersion
static const field32spec_t vernier3_32
static unsigned getDccLen(unsigned char *data, size_t size)
static const field32spec_t postTrig32
static int read32(uint32le_t *pData, field32spec_t spec, bool ovfTrans=false)
int getTriggerType() const
void getTimeStamp(struct timeval &t) const
static const field32spec_t timeStampMicroSec32
static const field32spec_t trigRec32
static const field32spec_t vernier2_32
int getAttenuation_dB() const
static const field32spec_t emtcDelay32
static const field32spec_t side32
unsigned getEventId() const
int getLaserPower() const
static const field32spec_t dccId32
static const field32spec_t triggerType32
static const field32spec_t color32
char data[epos_bytes_allocation]
time_t getTimeStamp() const
MatacqRawEvent(const unsigned char *dataBuffer, size_t bufferSize)
static const field32spec_t delayA32
const std::vector< ChannelData > & getChannelData() const
static const field32spec_t orbitId32
std::vector< ChannelData > channelData
static const field32spec_t formatVersion32
static const field32spec_t dccErrors32
static const field32spec_t h1Marker32
static const field32spec_t freqGHz32
std::vector< int > getVernier() const
static const field32spec_t laserPower32
tuple size
Write out results.
static const field32spec_t bxId32