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