9#include "daq/dataobjects/SendTrailer.h"
26 memcpy(m_buffer, buffer, SENDTRL_NWORDS *
sizeof(
int));
33int* SendTrailer::GetBuffer()
40 memcpy(m_buffer, bufin, SENDTRL_NWORDS *
sizeof(
int));
45 memset(m_buffer, 0, SENDTRL_NWORDS *
sizeof(
int));
52 m_buffer[ POS_CHKSUM ] = chksum;
57 m_buffer[ POS_TERM_WORD ] = MAGIC_WORD_SEND_TRAILER;
60int SendTrailer::GetMagicWord()
62 return m_buffer[ POS_TERM_WORD ];
65int SendTrailer::GetTrlNwords()
67 return SENDTRL_NWORDS;
SendTrailer()
Default constructor.
~SendTrailer()
Destructor.
void SetMagicWord()
initialize header
void SetBuffer(int *bufin)
return buffer
void SetChksum(int chksum)
initialize header
void Initialize()
set buffer
Abstract base class for different kinds of events.