9#include <rawdata/dataobjects/RawFTSW.h>
29 sprintf(err_buf,
"m_buffer is NULL. Exiting...");
30 printf(
"%s", err_buf); fflush(stdout);
49 "[FATAL] Ver.0 of RawFTSW( so-called early DESYtest format ) is detected but not supported. (header size = 0x%.8x ) Exiting...\n %s %s %d\n",
50 m_buffer[ POS_HEADER_SIZE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
51 printf(
"%s", err_buf); fflush(stdout);
54 if (
m_buffer[ POS_HEADER_SIZE ] == VER_2_HEADER_SIZE) {
62 sprintf(err_buf,
"[FATAL] ERROR_EVENT : Invalid RawFTSW header size of FTSW data format(= 0x%.8x words). Exiting...\n %s %s %d\n",
63 m_buffer[ POS_HEADER_SIZE ], __FILE__, __PRETTY_FUNCTION__, __LINE__);
64 printf(
"%s", err_buf); fflush(stdout);
86 "[FATAL] ERROR_EVENT : Invalid RawFTSW header size(= 0x%.8x words) or version number.(=0x%.8x) Exiting...\n %s %s %d\n",
88 printf(
"%s", err_buf); fflush(stdout);
93 if (temp_version >= 0 && temp_version !=
m_version) {
96 "[FATAL] Already assigned RawFTSW format version (= %.8x) is different from the one (= 0x%.8x) from the current event. Exiting...\n %s %s %d\n",
97 temp_version,
m_version, __FILE__, __PRETTY_FUNCTION__, __LINE__);
98 printf(
"%s", err_buf); fflush(stdout);
112 sprintf(err_buf,
"[FATAL] bufin is NULL. Exting...\n");
113 printf(
"%s", err_buf); fflush(stdout);
118 if (delete_flag == 0) {
int m_num_events
number of events in this object
int m_num_nodes
number of nodes in this object
int m_use_prealloc_buf
flag for deleting m_buffer in destructer( 0:delete, 1: not delete) When using pre-allocated buffer,...
int m_nwords
do not record
void SetVersion()
read data, detect and set the version number of the data format
RawFTSW()
Default constructor.
virtual ~RawFTSW()
Constructor using existing pointer to raw data buffer.
@ POS_NODE_FORMAT_ID
Added to distinguish different version.
@ VER_1_HEADER_SIZE
Unpacker for ver.0(early DESY version) is not available.
@ VER_0_HEADER_SIZE
The same number of this information must appear in RawFTSWFormat*.h. Information should be placed in ...
RawFTSWFormat * m_access
class to access
int m_version
do not record
void SetBuffer(int *bufin, int nwords, int delete_flag, int num_events, int num_nodes) OVERRIDE_CPP17
set buffer ( delete_flag : m_buffer is freeed( = 0 )/ not freeed( = 1 ) in Destructer )
Abstract base class for different kinds of events.