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);
101 std::vector<DCCTBEventBlock *> &
dccEvents();
111 std::vector< std::pair< uint32_t, std::pair<uint32_t *, uint32_t> > >
events();
126 std::string
getIndexedData( uint32_t indexed, uint32_t * pointer);
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)
uint32_t numbTriggerSamples()
static int position[TOTALCHAMBERS][3]
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)
void setParameters(std::vector< uint32_t > newParameters)
std::pair< uint32_t, uint32_t > checkEventLength(uint32_t *pointerToEvent, uint32_t bytesToEnd, bool singleEvent=false)
DCCTBDataMapper * mapper()
std::vector< uint32_t > parserParameters()
DCCTBDataParser(std::vector< uint32_t > parserParameters, bool parseInternalData=true, bool debug=true)
std::string getHexString(uint32_t data)
void parseBuffer(uint32_t *buffer, uint32_t bufferSize, bool singleEvent=false)
DCCDataParserGlobalFields
DCCTBDataMapper * mapper_
std::string index(uint32_t position)