9#include <rawdata/dataobjects/RawHeader_v1.h>
66 if (buf[ POS_NWORDS ] > 2.5e7 ||
67 buf[ POS_NWORDS ] < RAWHEADER_NWORDS) {
69 sprintf(err_buf,
"data size error %d words. Exiting... : %s %s %d\n",
70 buf[ POS_NWORDS ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
71 printf(
"%s", err_buf); fflush(stdout);
76 if ((buf[ POS_VERSION_HDRNWORDS ] & HDR_NWORDS_MASK) != RAWHEADER_NWORDS) {
78 sprintf(err_buf,
"Invalid header size %d words should be %d. Exiting... : %s %s %d\n",
79 buf[ buf[ POS_VERSION_HDRNWORDS ] & HDR_NWORDS_MASK ],
80 RAWHEADER_NWORDS, __FILE__, __PRETTY_FUNCTION__, __LINE__);
81 printf(
"%s", err_buf); fflush(stdout);
88 if ((
unsigned int)(buf[ POS_TTUTIME ]) < (
unsigned int)0x4b3cbc70 ||
89 (
unsigned int)0x9679f770 < (
unsigned int)(buf[ POS_TTUTIME ])) {
91 sprintf(err_buf,
"Invalid utime %d . Exiting...: %s %s %d\n",
92 buf[ POS_TTUTIME ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
93 printf(
"%s", err_buf); fflush(stdout);
100 if (buf[ POS_OFFSET_1ST_FINESSE ] < RAWHEADER_NWORDS) {
102 sprintf(err_buf,
"Invalid data offset for 1st finesse buffer(%d). Exiting...: %s %s %d\n",
103 buf[ POS_OFFSET_1ST_FINESSE ], __FILE__, __PRETTY_FUNCTION__, __LINE__); fflush(stdout);
104 printf(
"%s", err_buf); fflush(stdout);
108 if (buf[ POS_OFFSET_2ND_FINESSE ] < buf[ POS_OFFSET_1ST_FINESSE ]) {
110 sprintf(err_buf,
"Invalid data offset for 2nd finesse buffer(%d). Exiting...: %s %s %d\n",
111 buf[ POS_OFFSET_2ND_FINESSE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
112 printf(
"%s", err_buf); fflush(stdout);
116 if (buf[ POS_OFFSET_3RD_FINESSE ] < buf[ POS_OFFSET_2ND_FINESSE ]) {
118 sprintf(err_buf,
"Invalid data offset for 3rd finesse buffer(%d). Exiting...: %s %s %d\n",
119 buf[ POS_OFFSET_3RD_FINESSE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
120 printf(
"%s", err_buf); fflush(stdout);
124 if (buf[ POS_OFFSET_4TH_FINESSE ] < buf[ POS_OFFSET_3RD_FINESSE ] ||
125 buf[ POS_OFFSET_4TH_FINESSE ] > buf[ POS_NWORDS ]) {
127 sprintf(err_buf,
"Invalid data offset for 4th finesse buffer(%d). Exiting...: %s %s %d\n",
128 buf[ POS_OFFSET_4TH_FINESSE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
129 printf(
"%s", err_buf); fflush(stdout);
Abstract base class for different kinds of events.