9 uint32_t wordEventOffset,
10 uint32_t expectedLength,
13 expectedLength_(expectedLength){
15 errors_[
"TRAILER::EVENT LENGTH"] = 0 ;
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::set< DCCTBDataField *, DCCTBDataFieldComparator > * mapperFields_
DCCTBDataParser * parser_
DCCTBTrailerBlock(DCCTBDataParser *parser, const uint32_t *buffer, uint32_t numbBytes, uint32_t wToEnd, uint32_t wordEventOffset, uint32_t expectedLength, uint32_t expectedCRC)
DCCTBDataMapper * mapper()
std::map< std::string, uint32_t > errors_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * trailerFields()