7 #ifndef DCCTBDATAPARSER_HH 8 #define DCCTBDATAPARSER_HH 52 void parseBuffer( uint32_t * buffer, uint32_t bufferSize,
bool singleEvent =
false);
63 std::pair<uint32_t,uint32_t>
checkEventLength(uint32_t * pointerToEvent, uint32_t bytesToEnd,
bool singleEvent =
false);
84 void setParameters(
const std::vector<uint32_t>& newParameters );
101 std::vector<DCCTBEventBlock *> &
dccEvents();
111 std::vector< std::pair< uint32_t, std::pair<uint32_t *, uint32_t> > >
events();
158 std::vector< std::pair< uint32_t, std::pair<uint32_t *, uint32_t> > >
events_;
std::vector< DCCTBEventBlock * > dccEvents_
void resetErrorCounters()
std::vector< std::pair< uint32_t, std::pair< uint32_t *, uint32_t > > > events()
std::map< std::string, uint32_t > & errorCounters()
std::map< std::string, uint32_t > errors_
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< std::pair< uint32_t, std::pair< uint32_t *, uint32_t > > > events_
std::vector< uint32_t > parameters
void parseFile(std::string fileName, bool singleEvent=false)
std::pair< uint32_t, uint32_t > checkEventLength(uint32_t *pointerToEvent, uint32_t bytesToEnd, bool singleEvent=false)
DCCTBDataMapper * mapper()
std::vector< uint32_t > parserParameters()
std::string getHexString(uint32_t data)
void parseBuffer(uint32_t *buffer, uint32_t bufferSize, bool singleEvent=false)
char data[epos_bytes_allocation]
DCCDataParserGlobalFields
static int position[264][3]
DCCTBDataMapper * mapper_
DCCTBDataParser(const std::vector< uint32_t > &parserParameters, bool parseInternalData=true, bool debug=true)
std::string index(uint32_t position)