10#define RAWTRAILER_V2_H
14#include <rawdata/switch_basf2_standalone.h>
66 MAGIC_WORD_TERM_TRAILER = 0x7fff0006
87 B2FATAL(
"m_buffer is NULL. Exiting...");
115 m_buffer[ POS_TERM_WORD ] = MAGIC_WORD_TERM_TRAILER;
127 return (
unsigned int)(
m_buffer[ POS_CHKSUM ]);
132 return RAWTRAILER_NWORDS;
The Raw Trailer class ver.1 ( the latest version since May, 2014 ) This class defines the format of t...
RawTrailer_v2()
Default constructor.
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_v2 )
~RawTrailer_v2()
Destructor.
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.