9#include <rawdata/dataobjects/RawHeader_v2.h>
65 if (buf[ POS_NWORDS ] > 2.5e7 || buf[ POS_NWORDS ] < RAWHEADER_NWORDS) {
67 sprintf(err_buf,
"data size error %d words. Exiting... : %s %s %d\n",
68 buf[ POS_NWORDS ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
69 printf(
"%s", err_buf); fflush(stdout);
74 if ((buf[ POS_VERSION_HDRNWORDS ] & HDR_NWORDS_MASK) != RAWHEADER_NWORDS) {
76 sprintf(err_buf,
"Invalid header size %d words should be %d. Exiting... : %s %s %d\n",
77 buf[ buf[ POS_VERSION_HDRNWORDS ] & HDR_NWORDS_MASK ],
78 RAWHEADER_NWORDS, __FILE__, __PRETTY_FUNCTION__, __LINE__);
79 printf(
"%s", err_buf); fflush(stdout);
86 if ((
unsigned int)(buf[ POS_TTUTIME ]) < (
unsigned int)0x4b3cbc70 ||
87 (
unsigned int)0x9679f770 < (
unsigned int)(buf[ POS_TTUTIME ])) {
89 sprintf(err_buf,
"Invalid utime %d . Exiting...: %s %s %d\n",
90 buf[ POS_TTUTIME ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
91 printf(
"%s", err_buf); fflush(stdout);
98 if (buf[ POS_OFFSET_1ST_FINESSE ] < RAWHEADER_NWORDS) {
100 sprintf(err_buf,
"Invalid data offset for 1st finesse buffer(%d). Exiting...: %s %s %d\n",
101 buf[ POS_OFFSET_1ST_FINESSE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
102 printf(
"%s", err_buf); fflush(stdout);
106 if (buf[ POS_OFFSET_2ND_FINESSE ] < buf[ POS_OFFSET_1ST_FINESSE ]) {
108 sprintf(err_buf,
"Invalid data offset for 2nd finesse buffer(%d). Exiting...: %s %s %d\n",
109 buf[ POS_OFFSET_2ND_FINESSE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
110 printf(
"%s", err_buf); fflush(stdout);
114 if (buf[ POS_OFFSET_3RD_FINESSE ] < buf[ POS_OFFSET_2ND_FINESSE ]) {
116 sprintf(err_buf,
"Invalid data offset for 3rd finesse buffer(%d). Exiting...: %s %s %d\n",
117 buf[ POS_OFFSET_3RD_FINESSE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
118 printf(
"%s", err_buf); fflush(stdout);
122 if (buf[ POS_OFFSET_4TH_FINESSE ] < buf[ POS_OFFSET_3RD_FINESSE ] ||
123 buf[ POS_OFFSET_4TH_FINESSE ] > buf[ POS_NWORDS ]) {
125 sprintf(err_buf,
"Invalid data offset for 4th finesse buffer(%d). Exiting...: %s %s %d\n",
126 buf[ POS_OFFSET_4TH_FINESSE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
127 printf(
"%s", err_buf); fflush(stdout);
Abstract base class for different kinds of events.