Belle II Software  release-05-01-25
RawTLU.h
1 //+
2 // File : RawTLU.h
3 // Description : Module to handle raw data from TLU(for the telescope beam test)
4 //
5 // Author : Satoru Yamada, IPNS, KEK
6 // Date : 2 - Jan - 2014
7 //-
8 
9 #ifndef RAWTLU_H
10 #define RAWTLU_H
11 
12 #include <rawdata/dataobjects/RawDataBlock.h>
13 #include <rawdata/dataobjects/RawTLUFormat.h>
14 
15 namespace 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 
93  ClassDef(RawTLU, 1);
94 
95  };
97 }
98 
99 #endif
Belle2::RawTLU::~RawTLU
virtual ~RawTLU()
Destructor.
Definition: RawTLU.cc:18
Belle2::RawTLU::GetNwordsHeader
int GetNwordsHeader(int n)
Get the size of the header.
Definition: RawTLU.h:39
Belle2::RawDataBlockFormat::SetBuffer
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 )
Definition: RawDataBlockFormat.cc:131
Belle2::RawTLU
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
Belle2::RawDataBlock::m_num_events
int m_num_events
number of events in this object
Definition: RawDataBlock.h:151
Belle2::RawTLU::RawTLU
RawTLU()
Default constructor.
Definition: RawTLU.cc:13
Belle2::RawTLUFormat::GetTLUEventTag
unsigned int GetTLUEventTag(int n)
Get TLU event tag.
Definition: RawTLUFormat.cc:54
Belle2::RawTLUFormat
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
Belle2::RawTLU::CheckData
void CheckData(int n, unsigned int prev_evenum, unsigned int *cur_evenum)
check data contents
Definition: RawTLU.h:81
Belle2::RawTLUFormat::CheckData
void CheckData(int n, unsigned int prev_evenum, unsigned int *cur_evenum)
check data contents
Definition: RawTLUFormat.cc:60
Belle2::RawTLU::GetMagicTrailer
unsigned int GetMagicTrailer(int n)
Get Magic Trailer #.
Definition: RawTLU.h:60
Belle2::RawDataBlock::m_num_nodes
int m_num_nodes
number of nodes in this object
Definition: RawDataBlock.h:148
Belle2::RawTLUFormat::GetNwordsHeader
int GetNwordsHeader(int n)
Get the size of the header.
Definition: RawTLUFormat.cc:26
Belle2::RawTLU::m_access
RawTLUFormat * m_access
class to access
Definition: RawTLU.h:88
Belle2::RawTLU::GetRunNo
int GetRunNo(int n)
Get Run #.
Definition: RawTLU.h:67
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RawTLUFormat::GetNodeID
unsigned int GetNodeID(int n)
Get Node ID.
Definition: RawTLUFormat.cc:32
Belle2::RawTLUFormat::GetMagicTrailer
unsigned int GetMagicTrailer(int n)
Get Magic Trailer #.
Definition: RawTLUFormat.cc:49
Belle2::RawTLUFormat::GetEveNo
unsigned int GetEveNo(int n)
Get Event #.
Definition: RawTLUFormat.cc:37
Belle2::RawTLU::GetTLUEventTag
unsigned int GetTLUEventTag(int n)
Get TLU event tag.
Definition: RawTLU.h:74
Belle2::RawDataBlock::m_nwords
int m_nwords
do not record
Definition: RawDataBlock.h:145
Belle2::RawTLUFormat::GetRunNo
int GetRunNo(int n)
Get Run #.
Definition: RawTLUFormat.cc:43
Belle2::RawTLU::GetEveNo
unsigned int GetEveNo(int n)
Get Event #.
Definition: RawTLU.h:53
Belle2::RawDataBlock
The RawDataBlock class Base class for rawdata handling.
Definition: RawDataBlock.h:27
Belle2::RawDataBlock::m_buffer
int * m_buffer
Buffer.
Definition: RawDataBlock.h:154
Belle2::RawTLU::GetNodeID
unsigned int GetNodeID(int n)
Get Node ID.
Definition: RawTLU.h:46
Belle2::RawTLU::ClassDef
ClassDef(RawTLU, 1)
do not record