9#ifndef RAWTRAILER_LATEST_H
10#define RAWTRAILER_LATEST_H
14#include <rawdata/switch_basf2_standalone.h>
66 MAGIC_WORD_TERM_TRAILER = 0x7fff0006
70 POS_ERROR_BIT_CH1 = 0,
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_latest()
Destructor.
int * m_buffer
do not record buffer ( RawCOPPER includes buffer of RawHeader and RawTrailer_latest )
RawTrailer_latest()
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.