Go to the documentation of this file.
7 #ifndef DCCTBDATAPARSER_HH
8 #define DCCTBDATAPARSER_HH
48 void parseBuffer(
const uint32_t *
buffer, uint32_t bufferSize,
bool singleEvent =
false);
59 std::pair<uint32_t, uint32_t>
checkEventLength(
const uint32_t *pointerToEvent,
61 bool singleEvent =
false);
81 void setParameters(
const std::vector<uint32_t> &newParameters);
97 std::vector<DCCTBEventBlock *> &
dccEvents();
107 std::vector<std::pair<uint32_t, std::pair<const uint32_t *, uint32_t> > >
events();
152 std::vector<std::pair<uint32_t, std::pair<const uint32_t *, uint32_t> > >
events_;
std::vector< uint32_t > parserParameters()
std::vector< std::pair< uint32_t, std::pair< const uint32_t *, uint32_t > > > events()
void parseFile(std::string fileName, bool singleEvent=false)
DCCDataParserGlobalFields
std::map< std::string, uint32_t > errors_
std::string getDecString(uint32_t data)
std::vector< std::pair< uint32_t, std::pair< const uint32_t *, uint32_t > > > events_
std::string getIndexedData(uint32_t indexed, uint32_t *pointer)
std::vector< DCCTBEventBlock * > & dccEvents()
std::vector< DCCTBEventBlock * > dccEvents_
uint32_t numbXtalSamples()
std::string index(uint32_t position)
std::map< std::string, uint32_t > & errorCounters()
DCCTBDataMapper * mapper_
DCCTBDataParser(const std::vector< uint32_t > &parserParameters, bool parseInternalData=true, bool debug=true)
void resetErrorCounters()
std::pair< uint32_t, uint32_t > checkEventLength(const uint32_t *pointerToEvent, uint32_t bytesToEnd, bool singleEvent=false)
static int position[264][3]
std::vector< uint32_t > parameters
const uint32_t * getBuffer()
void parseBuffer(const uint32_t *buffer, uint32_t bufferSize, bool singleEvent=false)
uint32_t numbTriggerSamples()
void setParameters(const std::vector< uint32_t > &newParameters)
DCCTBDataMapper * mapper()
char data[epos_bytes_allocation]
std::string getHexString(uint32_t data)