#include <ErrorChecker.h>
Public Types | |
typedef std::vector< SiPixelRawDataError > | DetErrors |
typedef std::map< cms_uint32_t, DetErrors > | Errors |
typedef cms_uint32_t | Word32 |
typedef cms_uint64_t | Word64 |
Public Member Functions | |
bool | checkCRC (bool &errorsInEvent, int fedId, const Word64 *trailer, Errors &errors) |
bool | checkHeader (bool &errorsInEvent, int fedId, const Word64 *header, Errors &errors) |
bool | checkROC (bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, Errors &errors) |
bool | checkTrailer (bool &errorsInEvent, int fedId, int nWords, const Word64 *trailer, Errors &errors) |
void | conversionError (int fedId, const SiPixelFrameConverter *converter, int status, Word32 &errorWord, Errors &errors) |
ErrorChecker () | |
void | setErrorStatus (bool ErrorStatus) |
Private Member Functions | |
cms_uint32_t | errorDetId (const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const |
Private Attributes | |
bool | includeErrors |
Definition at line 19 of file ErrorChecker.h.
typedef std::vector<SiPixelRawDataError> ErrorChecker::DetErrors |
Definition at line 27 of file ErrorChecker.h.
typedef std::map<cms_uint32_t, DetErrors> ErrorChecker::Errors |
Definition at line 28 of file ErrorChecker.h.
typedef cms_uint32_t ErrorChecker::Word32 |
Definition at line 24 of file ErrorChecker.h.
typedef cms_uint64_t ErrorChecker::Word64 |
Definition at line 25 of file ErrorChecker.h.
ErrorChecker::ErrorChecker | ( | ) |
Definition at line 48 of file ErrorChecker.cc.
bool ErrorChecker::checkCRC | ( | bool & | errorsInEvent, |
int | fedId, | ||
const Word64 * | trailer, | ||
Errors & | errors | ||
) |
Definition at line 58 of file ErrorChecker.cc.
References relativeConstraints::error.
Referenced by PixelDataFormatter::interpretRawData().
bool ErrorChecker::checkHeader | ( | bool & | errorsInEvent, |
int | fedId, | ||
const Word64 * | header, | ||
Errors & | errors | ||
) |
Definition at line 71 of file ErrorChecker.cc.
References FEDHeader::check(), relativeConstraints::error, l1t::stage2::layer2::fedId, LogDebug, FEDHeader::moreHeaders(), and FEDHeader::sourceID().
Referenced by PixelDataFormatter::interpretRawData().
bool ErrorChecker::checkROC | ( | bool & | errorsInEvent, |
int | fedId, | ||
const SiPixelFrameConverter * | converter, | ||
const SiPixelFedCabling * | theCablingTree, | ||
Word32 & | errorWord, | ||
Errors & | errors | ||
) |
Definition at line 115 of file ErrorChecker.cc.
References relativeConstraints::error, SiPixelFedCabling::findItem(), likely, and LogDebug.
Referenced by PixelDataFormatter::interpretRawData().
bool ErrorChecker::checkTrailer | ( | bool & | errorsInEvent, |
int | fedId, | ||
int | nWords, | ||
const Word64 * | trailer, | ||
Errors & | errors | ||
) |
Definition at line 89 of file ErrorChecker.cc.
References FEDTrailer::check(), relativeConstraints::error, FEDTrailer::lenght(), and FEDTrailer::moreTrailers().
Referenced by PixelDataFormatter::interpretRawData().
void ErrorChecker::conversionError | ( | int | fedId, |
const SiPixelFrameConverter * | converter, | ||
int | status, | ||
Word32 & | errorWord, | ||
Errors & | errors | ||
) |
Definition at line 183 of file ErrorChecker.cc.
References relativeConstraints::error, LogDebug, and mps_update::status.
Referenced by PixelDataFormatter::interpretRawData().
|
private |
Definition at line 231 of file ErrorChecker.cc.
References sipixelobjects::ElectronicIndex::dcol, sipixelobjects::ElectronicIndex::link, sipixelobjects::ElectronicIndex::pxid, sipixelobjects::DetectorIndex::rawId, sipixelobjects::ElectronicIndex::roc, mps_update::status, and SiPixelFrameConverter::toDetector().
void ErrorChecker::setErrorStatus | ( | bool | ErrorStatus | ) |
|
private |
Definition at line 51 of file ErrorChecker.h.