20 enum { NERRORS, FIFOFULL, TBMMESSAGE, TBMTYPE, TYPE_NERRORS };
43 for (
auto it =
input->begin(); it !=
input->end(); ++it) {
44 for (
auto& siPixelRawDataError : *it) {
45 int fed = siPixelRawDataError.getFedId();
46 int type = siPixelRawDataError.getType();
47 DetId id = it->detId();
50 const uint32_t LINK_bits = 6;
51 const uint32_t LINK_shift = 26;
52 const uint64_t LINK_mask = (1 << LINK_bits) - 1;
58 errorWord = siPixelRawDataError.getWord64();
60 errorWord = siPixelRawDataError.getWord32();
63 int32_t chanNmbr = (errorWord >> LINK_shift) & LINK_mask;
68 uint32_t error_data = errorWord & 0xFF;
71 for (uint32_t
i = 0;
i < 8;
i++) {
72 if (error_data & (1 <<
i))
78 uint32_t statemachine_state = errorWord >> 8 & 0xF;
79 const uint32_t tbm_types[16] = {0, 1, 2, 4, 2, 4, 2, 4, 3, 1, 4, 4, 4, 4, 4, 4};
81 histo[TBMTYPE].fill(tbm_types[statemachine_state],
id, &
iEvent, fed, chanNmbr);
83 for (uint32_t
i = 0;
i < 8;
i++) {
84 if (error_data & (1 <<
i))