#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, 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 18 of file ErrorChecker.h.
typedef std::vector<SiPixelRawDataError> ErrorChecker::DetErrors |
Definition at line 26 of file ErrorChecker.h.
typedef std::map<cms_uint32_t, DetErrors> ErrorChecker::Errors |
Definition at line 27 of file ErrorChecker.h.
typedef cms_uint32_t ErrorChecker::Word32 |
Definition at line 23 of file ErrorChecker.h.
typedef cms_uint64_t ErrorChecker::Word64 |
Definition at line 24 of file ErrorChecker.h.
ErrorChecker::ErrorChecker | ( | ) |
Definition at line 46 of file ErrorChecker.cc.
bool ErrorChecker::checkCRC | ( | bool & | errorsInEvent, |
int | fedId, | ||
const Word64 * | trailer, | ||
Errors & | errors | ||
) |
Definition at line 56 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 69 of file ErrorChecker.cc.
References FEDHeader::check(), relativeConstraints::error, LogDebug, FEDHeader::moreHeaders(), and FEDHeader::sourceID().
Referenced by PixelDataFormatter::interpretRawData().
bool ErrorChecker::checkROC | ( | bool & | errorsInEvent, |
int | fedId, | ||
const SiPixelFrameConverter * | converter, | ||
Word32 & | errorWord, | ||
Errors & | errors | ||
) |
Definition at line 113 of file ErrorChecker.cc.
References relativeConstraints::error, likely, and LogDebug.
Referenced by PixelDataFormatter::interpretRawData().
bool ErrorChecker::checkTrailer | ( | bool & | errorsInEvent, |
int | fedId, | ||
int | nWords, | ||
const Word64 * | trailer, | ||
Errors & | errors | ||
) |
Definition at line 87 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 178 of file ErrorChecker.cc.
References relativeConstraints::error, LogDebug, and ntuplemaker::status.
Referenced by PixelDataFormatter::interpretRawData().
|
private |
Definition at line 226 of file ErrorChecker.cc.
References sipixelobjects::ElectronicIndex::dcol, sipixelobjects::ElectronicIndex::link, PixelSubdetector::PixelBarrel, sipixelobjects::ElectronicIndex::pxid, sipixelobjects::DetectorIndex::rawId, sipixelobjects::ElectronicIndex::roc, ntuplemaker::status, DetId::subdetId(), and SiPixelFrameConverter::toDetector().
void ErrorChecker::setErrorStatus | ( | bool | ErrorStatus | ) |
|
private |
Definition at line 49 of file ErrorChecker.h.