#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, l1tstage2_dqm_sourceclient-live_cfg::fedId, 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, sipixelconstants::CRC_shift, and l1tstage2_dqm_sourceclient-live_cfg::fedId.
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, RecoTauValidation_cfi::header, LogDebug, FEDHeader::moreHeaders(), and FEDHeader::sourceID().
|
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(), l1tstage2_dqm_sourceclient-live_cfg::fedId, FEDTrailer::fragmentLength(), FEDTrailer::moreTrailers(), and l1ctLayer2EG_cff::nWords.
void ErrorCheckerBase::conversionError | ( | int | fedId, |
const SiPixelFrameConverter * | converter, | ||
int | status, | ||
Word32 & | errorWord, | ||
SiPixelFormatterErrors & | errors | ||
) | const |
Definition at line 83 of file ErrorCheckerBase.cc.
References hcalRecHitTable_cff::detId, relativeConstraints::error, errorDetId(), l1tstage2_dqm_sourceclient-live_cfg::fedId, getConversionErrorTypeAndIssueLogMessage(), includeErrors_, and mps_update::status.
|
protectedpure virtual |
Implemented in ErrorChecker, and ErrorCheckerPhase0.
Referenced by conversionError().
|
protected |
Definition at line 97 of file ErrorCheckerBase.cc.
References l1tstage2_dqm_sourceclient-live_cfg::fedId, 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().