#include <DCCTrailerBlock.h>
|
void | dataCheck () |
|
| DCCTBTrailerBlock (DCCTBDataParser *parser, uint32_t *buffer, uint32_t numbBytes, uint32_t wToEnd, uint32_t wordEventOffset, uint32_t expectedLength, uint32_t expectedCRC) |
|
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 () |
|
|
std::string | formatString (std::string myString, uint32_t minPositions) |
|
Definition at line 11 of file DCCTrailerBlock.h.
DCCTBTrailerBlock::DCCTBTrailerBlock |
( |
DCCTBDataParser * |
parser, |
|
|
uint32_t * |
buffer, |
|
|
uint32_t |
numbBytes, |
|
|
uint32_t |
wToEnd, |
|
|
uint32_t |
wordEventOffset, |
|
|
uint32_t |
expectedLength, |
|
|
uint32_t |
expectedCRC |
|
) |
| |
Definition at line 4 of file DCCTrailerBlock.cc.
References dataCheck(), DCCTBBlockPrototype::errors_, DCCTBDataParser::mapper(), DCCTBBlockPrototype::mapperFields_, DCCTBBlockPrototype::parseData(), DCCTBBlockPrototype::parser_, and DCCTBDataMapper::trailerFields().
15 errors_[
"TRAILER::EVENT LENGTH"] = 0 ;
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * mapperFields_
DCCTBDataParser * parser_
DCCTBBlockPrototype(DCCTBDataParser *parser, std::string name, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEndOfEvent, uint32_t wordEventOffset=0)
DCCTBDataMapper * mapper()
std::map< std::string, uint32_t > errors_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * trailerFields()
void DCCTBTrailerBlock::dataCheck |
( |
| ) |
|
Definition at line 32 of file DCCTrailerBlock.cc.
References DCCTBBlockPrototype::blockError_, DCCTBBlockPrototype::checkDataField(), EOE, DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, expectedLength_, DCCTBBlockPrototype::name_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DCCTBTrailerBlock().
36 std::pair<bool,std::string>
res;
39 if(!res.first){ checkErrors += res.second; (
errors_[
"TRAILER::EVENT LENGTH"])++; }
42 if(!res.first){ checkErrors += res.second; (
errors_[
"TRAILER::EOE"])++; }
45 if(!res.first){ checkErrors += res.second; (
errors_[
"TRAILER::T"])++; }
50 errorString_ +=
"\n ======================================================================\n";
53 errorString_ +=
"\n ======================================================================";
virtual std::pair< bool, std::string > checkDataField(std::string name, uint32_t data)
std::map< std::string, uint32_t > errors_
uint32_t DCCTBTrailerBlock::expectedCRC_ |
|
protected |
uint32_t DCCTBTrailerBlock::expectedLength_ |
|
protected |