9#include <rawdata/dataobjects/RawHeader_latest.h>
62 if (buf[ POS_NWORDS ] > 2.5e7 || buf[ POS_NWORDS ] < RAWHEADER_NWORDS) {
64 sprintf(err_buf,
"data size error %d words. Exiting... : %s %s %d\n",
65 buf[ POS_NWORDS ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
66 printf(
"%s", err_buf); fflush(stdout);
71 if ((buf[ POS_VERSION_HDRNWORDS ] & HDR_NWORDS_MASK) != RAWHEADER_NWORDS) {
73 sprintf(err_buf,
"Invalid header size %d words should be %d. Exiting... : %s %s %d\n",
74 buf[ buf[ POS_VERSION_HDRNWORDS ] & HDR_NWORDS_MASK ],
75 RAWHEADER_NWORDS, __FILE__, __PRETTY_FUNCTION__, __LINE__);
76 printf(
"%s", err_buf); fflush(stdout);
83 if ((
unsigned int)(buf[ POS_TTUTIME ]) < (
unsigned int)0x4b3cbc70 ||
84 (
unsigned int)0x9679f770 < (
unsigned int)(buf[ POS_TTUTIME ])) {
86 sprintf(err_buf,
"Invalid utime %d . Exiting...: %s %s %d\n",
87 buf[ POS_TTUTIME ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
88 printf(
"%s", err_buf); fflush(stdout);
96 if (buf[ POS_CH_POS_TABLE + ch ] < RAWHEADER_NWORDS) {
98 sprintf(err_buf,
"Invalid data offset for ch(=%d) finesse buffer(%d). Exiting...: %s %s %d\n",
99 ch, buf[ POS_CH_POS_TABLE + ch ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
100 printf(
"%s", err_buf); fflush(stdout);
104 for (
int i = 1; i < (MAX_PCIE40_CH - 1); i++) {
106 if (buf[ POS_CH_POS_TABLE + ch ] < buf[ POS_CH_POS_TABLE + (ch - 1) ]) {
108 sprintf(err_buf,
"Invalid data offset for ch(=%d) finesse buffer(%d). Exiting...: %s %s %d\n",
109 ch, buf[ POS_CH_POS_TABLE + ch ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
110 printf(
"%s", err_buf); fflush(stdout);
114 ch = MAX_PCIE40_CH - 1;
116 if (buf[ POS_CH_POS_TABLE + ch ] < buf[ POS_CH_POS_TABLE + (ch - 1) ] ||
117 buf[ POS_CH_POS_TABLE + ch ] > buf[ POS_NWORDS ]) {
119 sprintf(err_buf,
"Invalid data offset for ch(=%d) finesse buffer(%d). Exiting...: %s %s %d\n",
120 ch, buf[ POS_CH_POS_TABLE + ch ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
121 printf(
"%s", err_buf); fflush(stdout);
130 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
131 __FILE__, __PRETTY_FUNCTION__, __LINE__);
132 printf(
"[DEBUG] %s\n", err_buf);
139 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
140 __FILE__, __PRETTY_FUNCTION__, __LINE__);
141 printf(
"[DEBUG] %s\n", err_buf);
148 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
149 __FILE__, __PRETTY_FUNCTION__, __LINE__);
150 printf(
"[DEBUG] %s\n", err_buf);
157 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
158 __FILE__, __PRETTY_FUNCTION__, __LINE__);
159 printf(
"[DEBUG] %s\n", err_buf);
166 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
167 __FILE__, __PRETTY_FUNCTION__, __LINE__);
168 printf(
"[DEBUG] %s\n", err_buf);
176 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
177 __FILE__, __PRETTY_FUNCTION__, __LINE__);
178 printf(
"[DEBUG] %s\n", err_buf);
186 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
187 __FILE__, __PRETTY_FUNCTION__, __LINE__);
188 printf(
"[DEBUG] %s\n", err_buf);
196 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
197 __FILE__, __PRETTY_FUNCTION__, __LINE__);
198 printf(
"[DEBUG] %s\n", err_buf);
Abstract base class for different kinds of events.