10#define RAWTRAILER_V0_H
13#include <rawdata/switch_basf2_standalone.h>
65 MAGIC_WORD_TERM_TRAILER = 0x7fff0006
86 B2FATAL(
"m_buffer is NULL. Exiting...");
114 m_buffer[ POS_TERM_WORD ] = MAGIC_WORD_TERM_TRAILER;
126 return (
unsigned int)(
m_buffer[ POS_CHKSUM ]);
131 return RAWTRAILER_NWORDS;
The Raw Trailer class ver.0 ( from August, 2013 to April, 2014 ) This class defines the format of the...
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_v0 )
~RawTrailer_v0()
Default constructor.
void CheckBuffer()
Destructor.
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.