Belle II Software development
|
The Raw TLU class Class for data from DAQ PC for TLU(Trigger Logic Unit) It is supposed to be used only in the DESY beam test. More...
#include <RawTLU.h>
Public Member Functions | |
RawTLU () | |
Default constructor. | |
virtual | ~RawTLU () |
Destructor. | |
int | GetNwordsHeader (int n) |
Get the size of the header. | |
unsigned int | GetNodeID (int n) |
Get Node ID. | |
unsigned int | GetEveNo (int n) |
Get Event #. | |
unsigned int | GetMagicTrailer (int n) |
Get Magic Trailer #. | |
int | GetRunNo (int n) |
Get Run #. | |
unsigned int | GetTLUEventTag (int n) |
Get TLU event tag. | |
void | CheckData (int n, unsigned int prev_evenum, unsigned int *cur_evenum) |
check data contents | |
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 ) | |
virtual int | TotalBufNwords () |
Get total length of m_buffer. | |
virtual int | GetBufferPos (int n) |
get position of data block in word | |
virtual int * | GetBuffer (int n) |
get nth buffer pointer | |
virtual int * | GetWholeBuffer () |
get pointer to buffer(m_buffer) | |
virtual int | GetNumEntries () |
get # of data blocks = (# of nodes)*(# of events) | |
virtual int | GetNumNodes () |
get # of data sources(e.g. # of COPPER boards) in m_buffer | |
virtual int | GetNumEvents () |
get # of events in m_buffer | |
virtual int | GetPreAllocFlag () |
get malloc_flag | |
virtual int | GetBlockNwords (int n) |
get size of a data block | |
virtual int | CheckFTSWID (int n) |
get FTSW ID to check whether this data block is FTSW data or not | |
virtual int | CheckTLUID (int n) |
get FTSW ID to check whether this data block is FTSW data or not | |
virtual void | CopyBlock (int n, int *buf_to) |
Copy one datablock to buffer. | |
virtual void | PrintData (int *buf, int nwords) |
print data | |
Public Attributes | |
RawTLUFormat * | m_access |
class to access | |
RawDataBlockFormat * | m_access_dblk |
class to access | |
Protected Member Functions | |
ClassDef (RawTLU, 1) | |
do not record | |
ClassDef (RawDataBlock, 3) | |
not record | |
Protected Attributes | |
int | m_nwords |
do not record | |
int | m_num_nodes |
number of nodes in this object | |
int | m_num_events |
number of events in this object | |
int * | m_buffer |
Buffer. | |
int | m_use_prealloc_buf |
flag for deleting m_buffer in destructer( 0:delete, 1: not delete) When using pre-allocated buffer, the buffer should be reused and not deleted in the destructer | |
The Raw TLU class Class for data from DAQ PC for TLU(Trigger Logic Unit) It is supposed to be used only in the DESY beam test.
RawTLU | ( | ) |
Default constructor.
Definition at line 13 of file RawTLU.cc.
|
virtual |
|
inline |
check data contents
Definition at line 81 of file RawTLU.h.
|
inlinevirtualinherited |
get FTSW ID to check whether this data block is FTSW data or not
Definition at line 101 of file RawDataBlock.h.
|
inlinevirtualinherited |
get FTSW ID to check whether this data block is FTSW data or not
Definition at line 108 of file RawDataBlock.h.
|
protectedinherited |
not record
To drive from TObject
|
protected |
do not record
To derive from TObject
|
inlinevirtualinherited |
Copy one datablock to buffer.
Definition at line 115 of file RawDataBlock.h.
|
inlinevirtualinherited |
get size of a data block
Definition at line 94 of file RawDataBlock.h.
|
inlinevirtualinherited |
get nth buffer pointer
Definition at line 53 of file RawDataBlock.h.
|
inlinevirtualinherited |
get position of data block in word
Reimplemented in RawCOPPER.
Definition at line 46 of file RawDataBlock.h.
|
inline |
Get Event #.
|
inline |
Get Magic Trailer #.
|
inline |
Get Node ID.
|
inlinevirtualinherited |
get # of data blocks = (# of nodes)*(# of events)
Definition at line 67 of file RawDataBlock.h.
|
inlinevirtualinherited |
get # of events in m_buffer
Definition at line 81 of file RawDataBlock.h.
|
inlinevirtualinherited |
get # of data sources(e.g. # of COPPER boards) in m_buffer
Definition at line 74 of file RawDataBlock.h.
|
inline |
Get the size of the header.
|
inlinevirtualinherited |
get malloc_flag
Definition at line 88 of file RawDataBlock.h.
|
inline |
Get TLU event tag.
|
inlinevirtualinherited |
get pointer to buffer(m_buffer)
Definition at line 60 of file RawDataBlock.h.
|
inlinevirtualinherited |
print data
Definition at line 122 of file RawDataBlock.h.
|
virtualinherited |
set buffer ( delete_flag : m_buffer is freeed( = 0 )/ not freeed( = 1 ) in Destructer )
Reimplemented in RawCOPPER, and RawFTSW.
Definition at line 35 of file RawDataBlock.cc.
|
inlinevirtualinherited |
Get total length of m_buffer.
Definition at line 39 of file RawDataBlock.h.
RawTLUFormat* m_access |
|
inherited |
class to access
Definition at line 141 of file RawDataBlock.h.
|
protectedinherited |
Definition at line 154 of file RawDataBlock.h.
|
protectedinherited |
number of events in this object
Definition at line 151 of file RawDataBlock.h.
|
protectedinherited |
number of nodes in this object
Definition at line 148 of file RawDataBlock.h.
|
protectedinherited |
|
protectedinherited |
flag for deleting m_buffer in destructer( 0:delete, 1: not delete) When using pre-allocated buffer, the buffer should be reused and not deleted in the destructer
Definition at line 158 of file RawDataBlock.h.