18 using namespace sipixelobjects;
19 using namespace sipixelconstants;
36 if (!theCablingTree->
findItem(cablingPath))
38 LogDebug(
"") <<
" invalid ROC=25 found (errorType=25)";
51 LogDebug(
"") <<
" error fifo nearly full (errorType=28)";
56 LogDebug(
"") <<
" timeout on a channel (errorType=29)";
59 LogDebug(
"") <<
" ...first errorType=29 error, this gets masked out";
65 LogDebug(
"") <<
" TBM error trailer (errorType=30)";
66 int StateMatch_bits = 4;
67 int StateMatch_shift = 8;
68 uint32_t StateMatch_mask = ~(~uint32_t(0) << StateMatch_bits);
69 int StateMatch = (errorWord >> StateMatch_shift) & StateMatch_mask;
70 if (StateMatch != 1 && StateMatch != 8) {
71 LogDebug(
"") <<
" FED error 30 with unexpected State Bits (errorType=30)";
80 LogDebug(
"") <<
" event number error (errorType=31)";
92 detId =
errorDetId(converter, errorType, errorWord);
93 errors[detId].push_back(error);
125 const int DB0_shift = 0;
126 const int DB1_shift = DB0_shift + 1;
127 const int DB2_shift = DB1_shift + 1;
128 const int DB3_shift = DB2_shift + 1;
129 const int DB4_shift = DB3_shift + 1;
132 int CH1 = (word >> DB0_shift) & DataBit_mask;
133 int CH2 = (word >> DB1_shift) & DataBit_mask;
134 int CH3 = (word >> DB2_shift) & DataBit_mask;
135 int CH4 = (word >> DB3_shift) & DataBit_mask;
136 int CH5 = (word >> DB4_shift) & DataBit_mask;
140 int BLOCK = (word >> BLOCK_shift) & BLOCK_mask;
141 int localCH = 1 * CH1 + 2 * CH2 + 3 * CH3 + 4 * CH4 + 5 * CH5;
143 chanNmbr = (BLOCK / 2) * 9 + localCH;
145 chanNmbr = ((BLOCK - 1) / 2) * 9 + 4 + localCH;
146 if ((chanNmbr < 1) || (chanNmbr > 36))
153 cabling.
link = chanNmbr;
constexpr cms_uint32_t dummyDetId
virtual const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &) const =0
constexpr uint32_t ROC_shift
bool checkROC(bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, SiPixelFormatterErrors &errors) const override
constexpr uint32_t ERROR_mask
constexpr uint32_t OMIT_ERR_shift
unsigned int cms_uint32_t
constexpr uint32_t LINK_shift
cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const override
constexpr uint32_t LINK_mask
constexpr uint32_t OMIT_ERR_mask
int toDetector(const sipixelobjects::ElectronicIndex &cabling, sipixelobjects::DetectorIndex &detector) const
constexpr uint32_t ROC_mask
Pixel error – collection of errors and error information.