35 LogDebug(
"") <<
" invalid ROC=25 found (errorType=25)";
46 LogDebug(
"") <<
" error fifo nearly full (errorType=28)";
51 LogDebug(
"") <<
" timeout on a channel (errorType=29)";
54 LogDebug(
"") <<
" ...first errorType=29 error, this gets masked out";
60 LogDebug(
"") <<
" TBM error trailer (errorType=30)";
65 LogDebug(
"") <<
" event number error (errorType=31)";
75 if (errorType == 30) {
76 int StateMach_bits = 4;
77 int StateMach_shift = 8;
78 uint32_t StateMach_mask = ~(~uint32_t(0) << StateMach_bits);
79 int StateMach = (errorWord >> StateMach_shift) & StateMach_mask;
80 if (StateMach == 4 || StateMach == 9)
124 const int DB0_shift = 0;
125 const int DB1_shift = DB0_shift + 1;
126 const int DB2_shift = DB1_shift + 1;
127 const int DB3_shift = DB2_shift + 1;
128 const int DB4_shift = DB3_shift + 1;
131 int CH1 = (
word >> DB0_shift) & DataBit_mask;
132 int CH2 = (
word >> DB1_shift) & DataBit_mask;
133 int CH3 = (
word >> DB2_shift) & DataBit_mask;
134 int CH4 = (
word >> DB3_shift) & DataBit_mask;
135 int CH5 = (
word >> DB4_shift) & DataBit_mask;
139 int BLOCK = (
word >> BLOCK_shift) & BLOCK_mask;
140 int localCH = 1 * CH1 + 2 * CH2 + 3 * CH3 + 4 * CH4 + 5 * CH5;
142 chanNmbr = (BLOCK / 2) * 9 + localCH;
144 chanNmbr = ((BLOCK - 1) / 2) * 9 + 4 + localCH;
145 if ((chanNmbr < 1) || (chanNmbr > 36))
152 cabling.
link = chanNmbr;
constexpr cms_uint32_t dummyDetId
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
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int cms_uint32_t
constexpr uint32_t LINK_shift
constexpr uint32_t LINK_mask
constexpr uint32_t OMIT_ERR_mask
cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const override
constexpr uint32_t ROC_mask
Pixel error – collection of errors and error information.