Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,15 @@ class AlpideCoder
// are first collected in the temporary buffer
// real columnt id is col = colD + 1;
if (rightC) {
rightColHits[nRightCHits++] = row; // col = colD+1
if (nRightCHits < NRows - 1) {
rightColHits[nRightCHits++] = row;
} else {
#ifdef ALPIDE_DECODING_STAT
chipData.setError(ChipStat::RepeatingPixel);
chipData.addErrorInfo((uint64_t(colD + 1) << 16) | uint64_t(row));
#endif
return unexpectedEOF("ROW_OVERFLOW"); // abandon cable data
}
} else {
addHit(chipData, row, colD); // col = colD, left column hits are added directly to the container
}
Expand Down Expand Up @@ -353,9 +361,17 @@ class AlpideCoder
rightC = ((rowE & 0x1) ? !(addr & 0x1) : (addr & 0x1)); // true for right column / lalse for left
// the real columnt is int colE = colD + rightC;
if (rightC) { // same as above
rightColHits[nRightCHits++] = rowE;
if (nRightCHits < NRows - 1) {
rightColHits[nRightCHits++] = rowE;
} else {
#ifdef ALPIDE_DECODING_STAT
chipData.setError(ChipStat::RepeatingPixel);
chipData.addErrorInfo((uint64_t(colD + 1) << 16) | uint64_t(rowE));
#endif
return unexpectedEOF("ROW_OVERFLOW"); // abandon cable data
}
} else {
addHit(chipData, rowE, colD + rightC); // left column hits are added directly to the container
addHit(chipData, rowE, colD); // left column hits are added directly to the container
}
}
}
Expand Down
Loading