9#include <rawdata/dataobjects/RawFTSWFormat_v1.h>
54 tv->tv_usec = (int)(((
double)
GetTTCtime(n)) / 127.216);
62 ts->tv_nsec = (long)(((
double)
GetTTCtime(n)) / 0.127216);
94 unsigned int prev_evenum,
unsigned int* cur_evenum,
95 unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no)
104 if (prev_exprunsubrun_no == *cur_exprunsubrun_no) {
105 if ((
unsigned int)(prev_evenum + 1) != *cur_evenum) {
106 sprintf(err_buf,
"[FATAL] ERROR_EVENT : Event # jump : i %d prev 0x%x cur 0x%x : Exiting...\n %s %s %d\n",
107 n, prev_evenum, *cur_evenum, __FILE__, __PRETTY_FUNCTION__, __LINE__);
108 printf(
"%s", err_buf);
115 sprintf(err_buf,
"[FATAL] ERROR_EVENT : invalid FTSW packet length : block %d nwords %d must be %d : Exiting...\n %s %s %d\n",
116 n,
GetBlockNwords(n), SIZE_FTSW_PACKET, __FILE__, __PRETTY_FUNCTION__, __LINE__);
117 printf(
"%s", err_buf);
122 sprintf(err_buf,
"[FATAL] ERROR_EVENT : invalid magic word : block %d magic word 0x%x must be 0x%x : Exiting...\n %s %s %d\n",
123 n,
GetMagicTrailer(n), FTSW_MAGIC_TRAILER, __FILE__, __PRETTY_FUNCTION__, __LINE__);
124 printf(
"%s", err_buf);
129 printf(
"[DEBUG] ========== dump a data block : block # %d==========\n", n);
133 if (k % 10 == 9) printf(
"\n[DEBUG] ");
unsigned int GetExpRunSubrun(int n) OVERRIDE_CPP17
Exp# (10bit) run# (14bit) restart # (8bit)
Abstract base class for different kinds of events.