#include <DCCDataParser.h>
|
std::pair< uint32_t, uint32_t > | checkEventLength (uint32_t *pointerToEvent, uint32_t bytesToEnd, bool singleEvent=false) |
|
std::vector< DCCTBEventBlock * > & | dccEvents () |
|
uint32_t | dccId () |
|
| DCCTBDataParser (const std::vector< uint32_t > &parserParameters, bool parseInternalData=true, bool debug=true) |
|
bool | debug () |
|
std::map< std::string, uint32_t > & | errorCounters () |
|
std::vector< std::pair
< uint32_t, std::pair
< uint32_t *, uint32_t > > > | events () |
|
uint32_t * | getBuffer () |
|
std::string | getDecString (uint32_t data) |
|
std::string | getHexString (uint32_t data) |
|
std::string | getIndexedData (uint32_t indexed, uint32_t *pointer) |
|
std::string | index (uint32_t position) |
|
DCCTBDataMapper * | mapper () |
|
uint32_t | numbSRF () |
|
uint32_t | numbTriggerSamples () |
|
uint32_t | numbTTs () |
|
uint32_t | numbXtalSamples () |
|
void | parseBuffer (uint32_t *buffer, uint32_t bufferSize, bool singleEvent=false) |
|
void | parseFile (std::string fileName, bool singleEvent=false) |
|
std::vector< uint32_t > | parserParameters () |
|
void | resetErrorCounters () |
|
void | setParameters (const std::vector< uint32_t > &newParameters) |
|
uint32_t | srpBlockSize () |
|
uint32_t | srpId () |
|
uint32_t | tcc1Id () |
|
uint32_t | tcc2Id () |
|
uint32_t | tcc3Id () |
|
uint32_t | tcc4Id () |
|
uint32_t | tccBlockSize () |
|
| ~DCCTBDataParser () |
|
Definition at line 27 of file DCCDataParser.h.
Enumerator |
---|
EVENTLENGTHMASK |
|
BOEBEGIN |
|
BOEMASK |
|
BOE |
|
EOEBEGIN |
|
EOEMASK |
|
EOE |
|
Definition at line 165 of file DCCDataParser.h.
DCCTBDataParser::DCCTBDataParser |
( |
const std::vector< uint32_t > & |
parserParameters, |
|
|
bool |
parseInternalData = true , |
|
|
bool |
debug = true |
|
) |
| |
Class constructor: takes a vector of 10 parameters and flags for parseInternalData and debug Parameters are: 0 - crystal samples (default is 10) 1 - number of trigger time samples (default is 1) 2 - number of TT (default is 68) 3 - number of SR Flags (default is 68) 4 - DCC id 5 - SR id [6-9] - TCC[6-9] id
Definition at line 9 of file DCCDataParser.cc.
DCCTBDataParser::~DCCTBDataParser |
( |
| ) |
|
std::pair< uint32_t, uint32_t > DCCTBDataParser::checkEventLength |
( |
uint32_t * |
pointerToEvent, |
|
|
uint32_t |
bytesToEnd, |
|
|
bool |
singleEvent = false |
|
) |
| |
Check if EVENT LENGTH is coeherent and if BOE/EOE are correctly written returns 3 bits code with the error found + event length
Definition at line 218 of file DCCDataParser.cc.
void DCCTBDataParser::computeBlockSizes |
( |
| ) |
|
|
protected |
uint32_t DCCTBDataParser::dccId |
( |
| ) |
|
|
inline |
bool DCCTBDataParser::debug |
( |
| ) |
|
|
inline |
std::map< std::string, uint32_t > & DCCTBDataParser::errorCounters |
( |
| ) |
|
|
inline |
std::vector< std::pair< uint32_t, std::pair< uint32_t *, uint32_t > > > DCCTBDataParser::events |
( |
| ) |
|
|
inline |
uint32_t* DCCTBDataParser::getBuffer |
( |
| ) |
|
|
inline |
std::string DCCTBDataParser::getDecString |
( |
uint32_t |
data | ) |
|
std::string DCCTBDataParser::getHexString |
( |
uint32_t |
data | ) |
|
std::string DCCTBDataParser::getIndexedData |
( |
uint32_t |
indexed, |
|
|
uint32_t * |
pointer |
|
) |
| |
std::string DCCTBDataParser::index |
( |
uint32_t |
position | ) |
|
uint32_t DCCTBDataParser::numbSRF |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::numbTriggerSamples |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::numbTTs |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::numbXtalSamples |
( |
| ) |
|
|
inline |
void DCCTBDataParser::parseBuffer |
( |
uint32_t * |
buffer, |
|
|
uint32_t |
bufferSize, |
|
|
bool |
singleEvent = false |
|
) |
| |
void DCCTBDataParser::parseFile |
( |
std::string |
fileName, |
|
|
bool |
singleEvent = false |
|
) |
| |
std::vector< uint32_t > DCCTBDataParser::parserParameters |
( |
| ) |
|
|
inline |
void DCCTBDataParser::resetErrorCounters |
( |
| ) |
|
void DCCTBDataParser::setParameters |
( |
const std::vector< uint32_t > & |
newParameters | ) |
|
|
inline |
uint32_t DCCTBDataParser::srpBlockSize |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::srpId |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::tcc1Id |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::tcc2Id |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::tcc3Id |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::tcc4Id |
( |
| ) |
|
|
inline |
uint32_t DCCTBDataParser::tccBlockSize |
( |
| ) |
|
|
inline |
uint32_t* DCCTBDataParser::buffer_ |
|
protected |
uint32_t DCCTBDataParser::bufferSize_ |
|
protected |
bool DCCTBDataParser::debug_ |
|
protected |
std::map<std::string,uint32_t> DCCTBDataParser::errors_ |
|
protected |
std::string DCCTBDataParser::eventErrors_ |
|
protected |
std::vector< std::pair< uint32_t, std::pair<uint32_t *, uint32_t> > > DCCTBDataParser::events_ |
|
protected |
std::vector<uint32_t> DCCTBDataParser::parameters |
|
protected |
bool DCCTBDataParser::parseInternalData_ |
|
protected |
uint32_t DCCTBDataParser::processedEvent_ |
|
protected |
uint32_t DCCTBDataParser::srpBlockSize_ |
|
protected |
uint32_t DCCTBDataParser::tccBlockSize_ |
|
protected |