10#define RAWTRAILER_V1_H
13#include <rawdata/switch_basf2_standalone.h>
68 MAGIC_WORD_TERM_TRAILER = 0x7fff0006
89 B2FATAL(
"m_buffer is NULL. Exiting...");
117 m_buffer[ POS_TERM_WORD ] = MAGIC_WORD_TERM_TRAILER;
129 return (
unsigned int)(
m_buffer[ POS_CHKSUM ]);
134 return RAWTRAILER_NWORDS;
The Raw Trailer class ver.1 ( the latest version since May, 2014 ) This class defines the format of t...
~RawTrailer_v1()
Destructor.
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_v1 )
RawTrailer_v1()
Default constructor.
void CheckBuffer()
set buffer
int GetTrlNwords()
Set magic word.
int GetMagicWord()
initialize header
unsigned int GetChksum()
Set # of trailer words.
void SetMagicWord()
initialize header
void SetBuffer(int *bufin)
return buffer
void SetChksum(int chksum)
set buffer
void Initialize()
set buffer
int * GetBuffer()
set buffer
Abstract base class for different kinds of events.