1 #ifndef DaqSource_DTSpyReader_h
2 #define DaqSource_DTSpyReader_h
21 #include <boost/cstdint.hpp>
unsigned int EventNumber_t
static const int dduWordLength
edm::EventNumber_t eventNumber
DTSpyReader(const edm::ParameterSet &pset)
Constructor.
void swap(uint64_t &word)
swapping the lsBits with the msBits
bool isTrailer(uint64_t word, bool dataTag, int wordCount)
check for a 64 bits word to be a DDU trailer
virtual ~DTSpyReader()
Destructor.
virtual int fillRawData(edm::EventID &eID, edm::Timestamp &tstamp, FEDRawDataCollection *&data)
Generate and fill FED raw data for a full event.
unsigned long long uint64_t
char data[epos_bytes_allocation]
edm::RunNumber_t runNumber
bool isHeader(uint64_t word, bool dataTag)
check for a 64 bits word to be a DDU header
uint64_t dmaUnpack(const uint32_t *dmaData, bool &isData)
pre-unpack the data if read via DMA