#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 CRC_mask, CRC_shift, dummyDetId, and 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(), dummyDetId, 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 error, ERROR_mask, LogDebug, OMIT_ERR_mask, OMIT_ERR_shift, and ROC_shift.
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(), dummyDetId, 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 177 of file ErrorChecker.cc.
References error, LogDebug, and ntuplemaker::status.
Referenced by PixelDataFormatter::interpretRawData().
|
private |
Definition at line 225 of file ErrorChecker.cc.
References sipixelobjects::ElectronicIndex::dcol, dummyDetId, sipixelobjects::ElectronicIndex::link, LINK_mask, LINK_shift, PixelSubdetector::PixelBarrel, sipixelobjects::ElectronicIndex::pxid, sipixelobjects::DetectorIndex::rawId, sipixelobjects::ElectronicIndex::roc, ROC_mask, ROC_shift, ntuplemaker::status, DetId::subdetId(), and SiPixelFrameConverter::toDetector().
void ErrorChecker::setErrorStatus | ( | bool | ErrorStatus | ) |
|
private |
Definition at line 46 of file ErrorChecker.h.