9#include <rawdata/dataobjects/RawDataBlockFormat.h>
34 sprintf(err_buf,
"[FATAL] RawPacket buffer(%p) is not available or length(%d) is not set.\n %s %s %d\n",
36 printf(
"%s", err_buf); fflush(stdout);
42 sprintf(err_buf,
"[FATAL] Invalid COPPER block No. (%d : max %d ) is specified. Exiting... \n %s %s %d\n",
44 printf(
"%s", err_buf); fflush(stdout);
49 for (
int i = 1; i <= n ; i++) {
53 "[FATAL] ERROR_EVENT : length of this data block is strange ( %d words ). Maybe data is corrupted or RawHeader info has not been filled yet. Exiting...",
55 printf(
"%s", err_buf);
58 pos_nwords +=
m_buffer[ pos_nwords ];
62 sprintf(err_buf,
"[FATAL] ERROR_EVENT : value of pos_nwords(%d) is larger than m_nwords(%d). Exiting...\n %s %s %d\n",
63 pos_nwords,
m_nwords, __FILE__, __PRETTY_FUNCTION__, __LINE__);
64 printf(
"%s", err_buf); fflush(stdout);
75 int pos = POS_NODE_ID;
77 pos = POS_FTSW_ID_OLD;
90 int pos = POS_NODE_ID;
92 pos = POS_FTSW_ID_OLD;
136 sprintf(err_buf,
"[DEBUG] bufin is NULL. Exting...\n");
137 printf(
"%s", err_buf); fflush(stdout);
143 if (delete_flag == 0) {
164 for (
int i = 0; i < nwords; i++) {
165 printf(
"%.8x ", buf[ i ]);
166 if (i % 10 == 9) printf(
"\n[DEBUG] ");
168 printf(
"\n[DEBUG] ");
Abstract base class for different kinds of events.