Belle II Software  release-06-01-15
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 
12 namespace Belle2 {
18  // class SendTrailer{
19  // class SendTrailer : public TObject {
20  class SendTrailer {
21  public:
23  SendTrailer();
24 
26  SendTrailer(int*);
27 
29  ~SendTrailer();
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  private:
49 
50  enum {
51  POS_CHKSUM = 0,
52  POS_TERM_WORD = 1
53  };
54 
55  enum {
56  MAGIC_WORD_SEND_TRAILER = 0x7fff0007
57  };
58 
59  int m_buffer[ SENDTRL_NWORDS ];
60  // ClassDef(SendTrailer, 1);
61  };
63 }
64 
65 #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.