#include <RPixErrorChecker.h>
Public Types | |
typedef std::vector< CTPPSPixelDataError > | DetErrors |
typedef std::map< uint32_t, DetErrors > | Errors |
typedef uint32_t | Word32 |
typedef uint64_t | Word64 |
Public Member Functions | |
bool | checkCRC (bool &errorsInEvent, int fedId, const Word64 *trailer, Errors &errors) const |
bool | checkHeader (bool &errorsInEvent, int fedId, const Word64 *header, Errors &errors) const |
bool | checkROC (bool &errorsInEvent, int fedId, uint32_t iD, const Word32 &errorWord, Errors &errors) const |
bool | checkTrailer (bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, Errors &errors) const |
void | conversionError (int fedId, uint32_t iD, const State &state, const Word32 &errorWord, Errors &errors) const |
RPixErrorChecker () | |
void | setErrorStatus (bool errorStatus) |
Static Public Attributes | |
static constexpr int | ADC_bits = 8 |
static constexpr int | ADC_shift = 0 |
static constexpr int | CRC_bits = 1 |
static constexpr Word64 | CRC_mask = ~(~RPixErrorChecker::Word64(0) << CRC_bits) |
static constexpr int | CRC_shift = 2 |
static constexpr int | DCOL_bits = 5 |
static constexpr int | DCOL_shift = PXID_shift + PXID_bits |
static constexpr Word32 | dummyDetId = 0xffffffff |
static constexpr Word32 | ERROR_mask = ~(~RPixErrorChecker::Word32(0) << ROC_bits) |
static constexpr int | OMIT_ERR_bits = 1 |
static constexpr Word32 | OMIT_ERR_mask = ~(~RPixErrorChecker::Word32(0) << OMIT_ERR_bits) |
static constexpr int | OMIT_ERR_shift = 20 |
static constexpr int | PXID_bits = 8 |
static constexpr int | PXID_shift = ADC_shift + ADC_bits |
static constexpr int | ROC_bits = 5 |
static constexpr int | ROC_shift = DCOL_shift + DCOL_bits |
Private Attributes | |
bool | includeErrors_ |
RPix == CTPPS Pixel detector (Roman Pot Pixels)
Definition at line 17 of file RPixErrorChecker.h.
typedef std::vector<CTPPSPixelDataError> RPixErrorChecker::DetErrors |
Definition at line 22 of file RPixErrorChecker.h.
typedef std::map<uint32_t, DetErrors> RPixErrorChecker::Errors |
Definition at line 23 of file RPixErrorChecker.h.
typedef uint32_t RPixErrorChecker::Word32 |
Definition at line 19 of file RPixErrorChecker.h.
typedef uint64_t RPixErrorChecker::Word64 |
Definition at line 20 of file RPixErrorChecker.h.
RPixErrorChecker::RPixErrorChecker | ( | ) |
Definition at line 12 of file RPixErrorChecker.cc.
bool RPixErrorChecker::checkCRC | ( | bool & | errorsInEvent, |
int | fedId, | ||
const Word64 * | trailer, | ||
Errors & | errors | ||
) | const |
Definition at line 16 of file RPixErrorChecker.cc.
References l1tstage2_dqm_sourceclient-live_cfg::fedId, and LogDebug.
Referenced by CTPPSPixelDataFormatter::interpretRawData().
bool RPixErrorChecker::checkHeader | ( | bool & | errorsInEvent, |
int | fedId, | ||
const Word64 * | header, | ||
Errors & | errors | ||
) | const |
Definition at line 29 of file RPixErrorChecker.cc.
References FEDHeader::check(), l1tstage2_dqm_sourceclient-live_cfg::fedId, RecoTauValidation_cfi::header, LogDebug, FEDHeader::moreHeaders(), and FEDHeader::sourceID().
Referenced by CTPPSPixelDataFormatter::interpretRawData().
bool RPixErrorChecker::checkROC | ( | bool & | errorsInEvent, |
int | fedId, | ||
uint32_t | iD, | ||
const Word32 & | errorWord, | ||
Errors & | errors | ||
) | const |
check to see if overflow error for type 30, change type to 40 if so
store error
Definition at line 68 of file RPixErrorChecker.cc.
References pixelgpudetails::ERROR_mask, l1tstage2_dqm_sourceclient-live_cfg::fedId, LIKELY, LogDebug, pixelgpudetails::OMIT_ERR_mask, pixelgpudetails::OMIT_ERR_shift, and pixelgpudetails::ROC_shift.
Referenced by CTPPSPixelDataFormatter::interpretRawData().
bool RPixErrorChecker::checkTrailer | ( | bool & | errorsInEvent, |
int | fedId, | ||
unsigned int | nWords, | ||
const Word64 * | trailer, | ||
Errors & | errors | ||
) | const |
Definition at line 45 of file RPixErrorChecker.cc.
References FEDTrailer::check(), l1tstage2_dqm_sourceclient-live_cfg::fedId, FEDTrailer::fragmentLength(), LogDebug, and FEDTrailer::moreTrailers().
Referenced by CTPPSPixelDataFormatter::interpretRawData().
void RPixErrorChecker::conversionError | ( | int | fedId, |
uint32_t | iD, | ||
const State & | state, | ||
const Word32 & | errorWord, | ||
Errors & | errors | ||
) | const |
Definition at line 134 of file RPixErrorChecker.cc.
References l1tstage2_dqm_sourceclient-live_cfg::fedId, InvalidLinkId, InvalidPixelId, InvalidROCId, and LogDebug.
Referenced by CTPPSPixelDataFormatter::interpretRawData().
void RPixErrorChecker::setErrorStatus | ( | bool | errorStatus | ) |
Definition at line 14 of file RPixErrorChecker.cc.
Referenced by CTPPSPixelDataFormatter::setErrorStatus().
|
staticconstexpr |
Definition at line 29 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 33 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 25 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 41 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 32 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 27 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 35 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 39 of file RPixErrorChecker.h.
Referenced by CTPPSPixelDataFormatter::interpretRawData(), and CTPPSPixelRawToDigi::produce().
|
staticconstexpr |
Definition at line 42 of file RPixErrorChecker.h.
|
private |
Definition at line 61 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 30 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 43 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 37 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 28 of file RPixErrorChecker.h.
Definition at line 34 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 26 of file RPixErrorChecker.h.
|
staticconstexpr |
Definition at line 36 of file RPixErrorChecker.h.