Belle II Software development
RawTLU.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 RAWTLU_H
10#define RAWTLU_H
11
12#include <rawdata/dataobjects/RawDataBlock.h>
13#include <rawdata/dataobjects/RawTLUFormat.h>
14
15namespace Belle2 {
27 class RawTLU : public RawDataBlock {
28 public:
30 RawTLU();
31
33 virtual ~RawTLU();
34
35 /* //! Get # of words in this data packet */
36 /* int GetNwords(int n); */
37
39 int GetNwordsHeader(int n)
40 {
42 return m_access->GetNwordsHeader(n);
43 }
44
46 unsigned int GetNodeID(int n)
47 {
49 return m_access->GetNodeID(n);
50 }
51
53 unsigned int GetEveNo(int n)
54 {
56 return m_access->GetEveNo(n);
57 }
58
60 unsigned int GetMagicTrailer(int n)
61 {
63 return m_access->GetMagicTrailer(n);
64 }
65
67 int GetRunNo(int n)
68 {
70 return m_access->GetRunNo(n);
71 }
72
74 unsigned int GetTLUEventTag(int n)
75 {
77 return m_access->GetTLUEventTag(n);
78 }
79
81 void CheckData(int n, unsigned int prev_evenum, unsigned int* cur_evenum)
82 {
84 return m_access->CheckData(n, prev_evenum, cur_evenum);
85 }
86
89
90 protected :
91
94
95 };
97}
98
99#endif
virtual void SetBuffer(int *bufin, int nwords, int delete_flag, int num_events, int num_nodes)
set buffer ( delete_flag : m_buffer is freeed( = 0 )/ not freeed( = 1 ) in Destructer )
The RawDataBlock class Base class for rawdata handling.
Definition: RawDataBlock.h:27
int m_num_events
number of events in this object
Definition: RawDataBlock.h:151
int m_num_nodes
number of nodes in this object
Definition: RawDataBlock.h:148
int * m_buffer
Buffer.
Definition: RawDataBlock.h:154
int m_nwords
do not record
Definition: RawDataBlock.h:145
The Raw TLU class Class for data from DAQ PC for TLU(Trigger Logic Unit) It is supposed to be used on...
Definition: RawTLUFormat.h:25
void CheckData(int n, unsigned int prev_evenum, unsigned int *cur_evenum)
check data contents
Definition: RawTLUFormat.cc:60
unsigned int GetEveNo(int n)
Get Event #.
Definition: RawTLUFormat.cc:37
int GetNwordsHeader(int n)
Get the size of the header.
Definition: RawTLUFormat.cc:26
unsigned int GetMagicTrailer(int n)
Get Magic Trailer #.
Definition: RawTLUFormat.cc:49
unsigned int GetNodeID(int n)
Get Node ID.
Definition: RawTLUFormat.cc:32
int GetRunNo(int n)
Get Run #.
Definition: RawTLUFormat.cc:43
unsigned int GetTLUEventTag(int n)
Get TLU event tag.
Definition: RawTLUFormat.cc:54
The Raw TLU class Class for data from DAQ PC for TLU(Trigger Logic Unit) It is supposed to be used on...
Definition: RawTLU.h:27
RawTLUFormat * m_access
class to access
Definition: RawTLU.h:88
void CheckData(int n, unsigned int prev_evenum, unsigned int *cur_evenum)
check data contents
Definition: RawTLU.h:81
unsigned int GetEveNo(int n)
Get Event #.
Definition: RawTLU.h:53
RawTLU()
Default constructor.
Definition: RawTLU.cc:13
int GetNwordsHeader(int n)
Get the size of the header.
Definition: RawTLU.h:39
unsigned int GetMagicTrailer(int n)
Get Magic Trailer #.
Definition: RawTLU.h:60
virtual ~RawTLU()
Destructor.
Definition: RawTLU.cc:18
ClassDef(RawTLU, 1)
do not record
unsigned int GetNodeID(int n)
Get Node ID.
Definition: RawTLU.h:46
int GetRunNo(int n)
Get Run #.
Definition: RawTLU.h:67
unsigned int GetTLUEventTag(int n)
Get TLU event tag.
Definition: RawTLU.h:74
Abstract base class for different kinds of events.