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_;
const uint32_t * getBuffer()
std::vector< DCCTBEventBlock * > dccEvents_
void resetErrorCounters()
std::map< std::string, uint32_t > & errorCounters()
std::string getDecString(uint32_t data)
std::vector< DCCTBEventBlock * > & dccEvents()
std::string getIndexedData(uint32_t indexed, uint32_t *pointer)
void setParameters(const std::vector< uint32_t > &newParameters)
uint32_t numbTriggerSamples()
uint32_t numbXtalSamples()
std::vector< uint32_t > parameters
void parseFile(std::string fileName, bool singleEvent=false)
std::vector< std::pair< uint32_t, std::pair< const uint32_t *, uint32_t > > > events()
DCCTBDataMapper * mapper()
std::vector< uint32_t > parserParameters()
std::map< std::string, uint32_t > errors_
std::pair< uint32_t, uint32_t > checkEventLength(const uint32_t *pointerToEvent, uint32_t bytesToEnd, bool singleEvent=false)
std::string getHexString(uint32_t data)
char data[epos_bytes_allocation]
std::vector< std::pair< uint32_t, std::pair< const uint32_t *, uint32_t > > > events_
DCCDataParserGlobalFields
static int position[264][3]
DCCTBDataMapper * mapper_
DCCTBDataParser(const std::vector< uint32_t > &parserParameters, bool parseInternalData=true, bool debug=true)
void parseBuffer(const uint32_t *buffer, uint32_t bufferSize, bool singleEvent=false)
std::string index(uint32_t position)