#include <DCCTrailerBlock.h>
|
void | dataCheck () |
|
| DCCTBTrailerBlock (DCCTBDataParser *parser, const 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, const 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 10 of file DCCTrailerBlock.h.
◆ traillerFields
◆ DCCTBTrailerBlock()
DCCTBTrailerBlock::DCCTBTrailerBlock |
( |
DCCTBDataParser * |
parser, |
|
|
const 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().
13 errors_[
"TRAILER::EVENT LENGTH"] = 0;
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * mapperFields_
DCCTBDataParser * parser_
std::map< std::string, uint32_t > errors_
DCCTBDataMapper * mapper()
DCCTBBlockPrototype(DCCTBDataParser *parser, std::string name, const uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEndOfEvent, uint32_t wordEventOffset=0)
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * trailerFields()
◆ dataCheck()
void DCCTBTrailerBlock::dataCheck |
( |
| ) |
|
Definition at line 28 of file DCCTrailerBlock.cc.
References DCCTBBlockPrototype::blockError_, DCCTBBlockPrototype::checkDataField(), EOE, DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, expectedLength_, DCCTBBlockPrototype::name_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DCCTBTrailerBlock().
31 std::pair<bool, std::string>
res;
35 checkErrors +=
res.second;
36 (
errors_[
"TRAILER::EVENT LENGTH"])++;
41 checkErrors +=
res.second;
47 checkErrors +=
res.second;
53 if (!checkErrors.empty()) {
54 errorString_ +=
"\n ======================================================================\n";
57 errorString_ +=
"\n ======================================================================";
virtual std::pair< bool, std::string > checkDataField(std::string name, uint32_t data)
std::map< std::string, uint32_t > errors_
◆ expectedCRC_
uint32_t DCCTBTrailerBlock::expectedCRC_ |
|
protected |
◆ expectedLength_
uint32_t DCCTBTrailerBlock::expectedLength_ |
|
protected |