38 if (!theCablingTree->
findItem(cablingPath)) {
41 LogDebug(
"") <<
" invalid ROC=25 found (errorType=25)";
54 LogDebug(
"") <<
" error fifo nearly full (errorType=28)";
59 LogDebug(
"") <<
" timeout on a channel (errorType=29)";
62 LogDebug(
"") <<
" ...2nd errorType=29 error, skip";
68 LogDebug(
"") <<
" TBM error trailer (errorType=30)";
69 int StateMatch_bits = 4;
70 int StateMatch_shift = 8;
71 uint32_t StateMatch_mask = ~(~uint32_t(0) << StateMatch_bits);
72 int StateMatch = (errorWord >> StateMatch_shift) & StateMatch_mask;
73 if (StateMatch != 1 && StateMatch != 8) {
74 LogDebug(
"") <<
" FED error 30 with unexpected State Bits (errorType=30)";
83 LogDebug(
"") <<
" event number error (errorType=31)";
108 unsigned int channel,
109 unsigned int roc)
const {
119 cabling.
link = channel;
156 const int DB0_shift = 0;
157 const int DB1_shift = DB0_shift + 1;
158 const int DB2_shift = DB1_shift + 1;
159 const int DB3_shift = DB2_shift + 1;
160 const int DB4_shift = DB3_shift + 1;
163 int CH1 = (
word >> DB0_shift) & DataBit_mask;
164 int CH2 = (
word >> DB1_shift) & DataBit_mask;
165 int CH3 = (
word >> DB2_shift) & DataBit_mask;
166 int CH4 = (
word >> DB3_shift) & DataBit_mask;
167 int CH5 = (
word >> DB4_shift) & DataBit_mask;
171 int BLOCK = (
word >> BLOCK_shift) & BLOCK_mask;
172 int localCH = 1 * CH1 + 2 * CH2 + 3 * CH3 + 4 * CH4 + 5 * CH5;
174 chanNmbr = (BLOCK / 2) * 9 + localCH;
176 chanNmbr = ((BLOCK - 1) / 2) * 9 + 4 + localCH;
178 if ((chanNmbr < 1) || (chanNmbr > 36)) {
185 cabling.
link = chanNmbr;
constexpr cms_uint32_t dummyDetId
virtual const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &) const =0
cms_uint32_t errorDetIdSimple(const SiPixelFrameConverter *converter, int errorType, unsigned int channel, unsigned int roc) const
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
constexpr uint32_t ROC_mask
Pixel error – collection of errors and error information.