Belle II Software development
SendTrailer.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#ifndef SENDTRAILER_H
10#define SENDTRAILER_H
11
12namespace Belle2 {
18 // class SendTrailer{
19 // class SendTrailer : public TObject {
21 public:
24
26 SendTrailer(int*);
27
30
31 int* GetBuffer();
32
33 void SetBuffer(int* bufin);
34
35 void Initialize();
36
37 void SetChksum(int chksum);
38
39 void SetMagicWord();
40
41 int GetTrlNwords();
42
43 int GetMagicWord();
44
45 enum {
46 SENDTRL_NWORDS = 2
47 };
48
49 enum {
50 POS_CHKSUM = 0,
51 POS_TERM_WORD = 1
52 };
53
54 enum {
55 MAGIC_WORD_SEND_TRAILER = 0x7fff0007
56 };
57
58 private:
59
60 int m_buffer[ SENDTRL_NWORDS ];
61 // ClassDef(SendTrailer, 1);
62 };
64}
65
66#endif
SendTrailer()
Default constructor.
Definition: SendTrailer.cc:18
~SendTrailer()
Destructor.
Definition: SendTrailer.cc:29
void SetMagicWord()
initialize header
Definition: SendTrailer.cc:55
void SetBuffer(int *bufin)
return buffer
Definition: SendTrailer.cc:38
void SetChksum(int chksum)
initialize header
Definition: SendTrailer.cc:50
void Initialize()
set buffer
Definition: SendTrailer.cc:43
Abstract base class for different kinds of events.