#include <ErrorCheckerBase.h>
Public Member Functions | |
bool | checkCRC (bool &errorsInEvent, int fedId, const Word64 *trailer, SiPixelFormatterErrors &errors) const |
bool | checkHeader (bool &errorsInEvent, int fedId, const Word64 *header, SiPixelFormatterErrors &errors) const |
virtual bool | checkROC (bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, SiPixelFormatterErrors &errors) const =0 |
bool | checkTrailer (bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, SiPixelFormatterErrors &errors) const |
void | conversionError (int fedId, const SiPixelFrameConverter *converter, int status, Word32 &errorWord, SiPixelFormatterErrors &errors) const |
ErrorCheckerBase () | |
void | setErrorStatus (bool ErrorStatus) |
virtual | ~ErrorCheckerBase ()=default |
Protected Member Functions | |
void | addErrorToCollectionDummy (int errorType, int fedId, Word64 word, SiPixelFormatterErrors &errors) const |
virtual cms_uint32_t | errorDetId (const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const =0 |
int | getConversionErrorTypeAndIssueLogMessage (int status, int fedId) const |
Protected Attributes | |
bool | includeErrors_ |
Definition at line 14 of file ErrorCheckerBase.h.
ErrorCheckerBase::ErrorCheckerBase | ( | ) |
Definition at line 21 of file ErrorCheckerBase.cc.
|
virtualdefault |
|
protected |
Definition at line 25 of file ErrorCheckerBase.cc.
References sipixelconstants::dummyDetId, relativeConstraints::error, and includeErrors_.
Referenced by checkCRC(), checkHeader(), and checkTrailer().
bool ErrorCheckerBase::checkCRC | ( | bool & | errorsInEvent, |
int | fedId, | ||
const Word64 * | trailer, | ||
SiPixelFormatterErrors & | errors | ||
) | const |
Definition at line 35 of file ErrorCheckerBase.cc.
References addErrorToCollectionDummy(), sipixelconstants::CRC_mask, and sipixelconstants::CRC_shift.
Referenced by SiPixelRawToClusterCUDA::acquire().
bool ErrorCheckerBase::checkHeader | ( | bool & | errorsInEvent, |
int | fedId, | ||
const Word64 * | header, | ||
SiPixelFormatterErrors & | errors | ||
) | const |
Definition at line 47 of file ErrorCheckerBase.cc.
References addErrorToCollectionDummy(), FEDHeader::check(), l1tstage2_dqm_sourceclient-live_cfg::fedId, LogDebug, FEDHeader::moreHeaders(), and FEDHeader::sourceID().
Referenced by SiPixelRawToClusterCUDA::acquire().
|
pure virtual |
Implemented in ErrorChecker, and ErrorCheckerPhase0.
bool ErrorCheckerBase::checkTrailer | ( | bool & | errorsInEvent, |
int | fedId, | ||
unsigned int | nWords, | ||
const Word64 * | trailer, | ||
SiPixelFormatterErrors & | errors | ||
) | const |
Definition at line 64 of file ErrorCheckerBase.cc.
References addErrorToCollectionDummy(), FEDTrailer::check(), FEDTrailer::fragmentLength(), and FEDTrailer::moreTrailers().
Referenced by SiPixelRawToClusterCUDA::acquire().
void ErrorCheckerBase::conversionError | ( | int | fedId, |
const SiPixelFrameConverter * | converter, | ||
int | status, | ||
Word32 & | errorWord, | ||
SiPixelFormatterErrors & | errors | ||
) | const |
Definition at line 83 of file ErrorCheckerBase.cc.
References relativeConstraints::error, errorDetId(), getConversionErrorTypeAndIssueLogMessage(), and includeErrors_.
|
protectedpure virtual |
Implemented in ErrorChecker, and ErrorCheckerPhase0.
Referenced by conversionError().
|
protected |
Definition at line 97 of file ErrorCheckerBase.cc.
References LogDebug, mps_update::status, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by conversionError().
void ErrorCheckerBase::setErrorStatus | ( | bool | ErrorStatus | ) |
|
protected |
Definition at line 43 of file ErrorCheckerBase.h.
Referenced by addErrorToCollectionDummy(), ErrorCheckerPhase0::checkROC(), ErrorChecker::checkROC(), conversionError(), and setErrorStatus().