521 int roiPtr =
sizeof(PEVNT_HEADER)/2 + 2;
523 roi[0] = ntohs(rd.
S[roiPtr]);
525 for (
int jr = 0; jr < 9; jr++)
527 roi[jr] = ntohs(rd.
S[roiPtr]);
536 if (jr!=8 && roi[jr]!=roi[0])
543 for (
int kr = 1; kr < 4; kr++)
545 const int kroi = ntohs(rd.
S[roiPtr]);
561 factPrintf(
MessageImp::kFatal,
"Inconsistent Roi accross channels [DRS=%d Ch=%d], expected %d, got %d", xjr, xkr, roi[xjr], ntohs(rd.
S[roiPtr]));
568 factPrintf(
MessageImp::kError,
"Mismatch of roi (%d) in channel 8. Should be larger or equal than the roi (%d) in channel 0.", roi[8], roi[0]);
void factPrintf(int severity, const char *fmt,...)
Error, something unexpected happened, but can still be handled by the program.
An error which cannot be handled at all happend, the only solution is program termination.