#include <DCCXtalBlock.h>
Public Member Functions | |
void | dataCheck () |
DCCTBXtalBlock (DCCTBDataParser *parser, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordEventOffset, uint32_t expectedXtalID, uint32_t expectedStripID) | |
int | stripID () |
std::vector< int > | xtalDataSamples () |
int | xtalID () |
Public Member Functions inherited from DCCTBBlockPrototype | |
bool | blockError () |
virtual std::pair< bool, std::string > | checkDataField (std::string name, uint32_t data) |
virtual std::pair< bool, std::string > | compare (DCCTBBlockPrototype *block) |
DCCTBBlockPrototype (DCCTBDataParser *parser, std::string name, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEndOfEvent, uint32_t wordEventOffset=0) | |
virtual void | displayData (std::ostream &os=std::cout) |
std::map< std::string, uint32_t > & | errorCounters () |
std::string & | errorString () |
virtual uint32_t | getDataField (std::string name) |
virtual uint32_t | getDataWord (uint32_t wordPosition, uint32_t bitPosition, uint32_t mask) |
DCCTBDataParser * | getParser () |
virtual void | increment (uint32_t numb, std::string msg="") |
std::string | name () |
virtual void | parseData () |
virtual void | seeIfIsPossibleToIncrement (uint32_t numb, std::string msg="") |
virtual void | setDataField (std::string name, uint32_t data) |
uint32_t | size () |
uint32_t | wOffset () |
virtual | ~DCCTBBlockPrototype () |
Protected Types | |
enum | xtalBlockFields { BPOSITION_BLOCKID = 30, BLOCKID = 3 } |
Protected Member Functions | |
void | increment (uint32_t numb) |
Protected Member Functions inherited from DCCTBBlockPrototype | |
std::string | formatString (std::string myString, uint32_t minPositions) |
Protected Attributes | |
uint32_t | expectedStripID_ |
uint32_t | expectedXtalID_ |
Protected Attributes inherited from DCCTBBlockPrototype | |
uint32_t * | beginOfBuffer_ |
bool | blockError_ |
uint32_t | blockSize_ |
std::string | blockString_ |
std::map< std::string, uint32_t > | dataFields_ |
uint32_t * | dataP_ |
std::map< std::string, uint32_t > | errors_ |
std::string | errorString_ |
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * | mapperFields_ |
std::string | name_ |
DCCTBDataParser * | parser_ |
std::string | processingString_ |
uint32_t | wordCounter_ |
uint32_t | wordEventOffset_ |
uint32_t | wordsToEndOfEvent_ |
Definition at line 10 of file DCCXtalBlock.h.
|
protected |
Enumerator | |
---|---|
BPOSITION_BLOCKID | |
BLOCKID |
Definition at line 33 of file DCCXtalBlock.h.
DCCTBXtalBlock::DCCTBXtalBlock | ( | DCCTBDataParser * | parser, |
uint32_t * | buffer, | ||
uint32_t | numbBytes, | ||
uint32_t | wordsToEnd, | ||
uint32_t | wordEventOffset, | ||
uint32_t | expectedXtalID, | ||
uint32_t | expectedStripID | ||
) |
Definition at line 6 of file DCCXtalBlock.cc.
References dataCheck(), DCCTBDataParser::debug(), DCCTBBlockPrototype::errors_, DCCTBDataParser::mapper(), DCCTBBlockPrototype::mapperFields_, DCCTBBlockPrototype::parseData(), DCCTBBlockPrototype::parser_, and DCCTBDataMapper::xtalFields().
void DCCTBXtalBlock::dataCheck | ( | ) |
Definition at line 36 of file DCCXtalBlock.cc.
References DCCTBBlockPrototype::blockError_, DCCTBBlockPrototype::checkDataField(), DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, expectedStripID_, expectedXtalID_, and DCCTBBlockPrototype::name_.
Referenced by DCCTBXtalBlock().
|
protected |
Definition at line 62 of file DCCXtalBlock.cc.
References BLOCKID, BPOSITION_BLOCKID, DCCTBBlockPrototype::dataP_, DCCTBDataParser::debug(), DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::increment(), DCCTBBlockPrototype::parser_, and DCCTBBlockPrototype::wordCounter_.
int DCCTBXtalBlock::stripID | ( | ) |
Definition at line 94 of file DCCXtalBlock.cc.
References DCCTBBlockPrototype::getDataField(), DCCTBBlockPrototype::mapperFields_, and query::result.
std::vector< int > DCCTBXtalBlock::xtalDataSamples | ( | ) |
Definition at line 109 of file DCCXtalBlock.cc.
References data, DCCTBBlockPrototype::getDataField(), DCCTBDataParser::getDecString(), i, DCCTBBlockPrototype::name(), DCCTBDataParser::numbXtalSamples(), and DCCTBBlockPrototype::parser_.
int DCCTBXtalBlock::xtalID | ( | ) |
Definition at line 76 of file DCCXtalBlock.cc.
References DCCTBBlockPrototype::getDataField(), DCCTBBlockPrototype::mapperFields_, and query::result.
|
protected |
Definition at line 36 of file DCCXtalBlock.h.
Referenced by dataCheck().
|
protected |
Definition at line 35 of file DCCXtalBlock.h.
Referenced by dataCheck().