Belle II Software development
|
The RawDataBlockFormat class Format information for rawdata handling. More...
#include <RawDataBlockFormat.h>
Public Types | |
enum | { POS_NWORDS = 0 , POS_NODE_ID = 6 } |
enum | { POS_FTSW_ID_OLD = 5 , TEMP_POS_NWORDS_HEADER = 1 , OLD_FTSW_NWORDS_HEADER = 6 } |
Public Member Functions | |
RawDataBlockFormat () | |
Default constructor. | |
virtual | ~RawDataBlockFormat () |
Destructor. | |
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 | |
Protected Attributes | |
int | m_nwords |
number of words of buffer | |
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 |
not recorded | |
The RawDataBlockFormat class Format information for rawdata handling.
Definition at line 25 of file RawDataBlockFormat.h.
anonymous enum |
Definition at line 75 of file RawDataBlockFormat.h.
anonymous enum |
Definition at line 80 of file RawDataBlockFormat.h.
Default constructor.
Definition at line 14 of file RawDataBlockFormat.cc.
|
virtual |
Destructor.
Definition at line 23 of file RawDataBlockFormat.cc.
|
virtual |
get FTSW ID to check whether this data block is FTSW data or not
Definition at line 73 of file RawDataBlockFormat.cc.
|
virtual |
get FTSW ID to check whether this data block is FTSW data or not
Definition at line 88 of file RawDataBlockFormat.cc.
|
virtual |
Copy one datablock to buffer.
Definition at line 173 of file RawDataBlockFormat.cc.
|
virtual |
get size of a data block
Definition at line 107 of file RawDataBlockFormat.cc.
|
virtual |
get nth buffer pointer
Definition at line 124 of file RawDataBlockFormat.cc.
|
virtual |
get position of data block in word
Definition at line 30 of file RawDataBlockFormat.cc.
|
inlinevirtual |
get # of data blocks = (# of nodes)*(# of events)
Definition at line 49 of file RawDataBlockFormat.h.
|
inlinevirtual |
|
inlinevirtual |
get # of data sources(e.g. # of COPPER boards) in m_buffer
Definition at line 52 of file RawDataBlockFormat.h.
|
inlinevirtual |
|
virtual |
get pointer to buffer(m_buffer)
Definition at line 119 of file RawDataBlockFormat.cc.
|
virtual |
print data
Definition at line 161 of file RawDataBlockFormat.cc.
|
virtual |
set buffer ( delete_flag : m_buffer is freeed( = 0 )/ not freeed( = 1 ) in Destructer )
Definition at line 131 of file RawDataBlockFormat.cc.
|
virtual |
Get total length of m_buffer.
Definition at line 101 of file RawDataBlockFormat.cc.
|
protected |
Definition at line 98 of file RawDataBlockFormat.h.
|
protected |
number of events in this object
Definition at line 95 of file RawDataBlockFormat.h.
|
protected |
number of nodes in this object
Definition at line 92 of file RawDataBlockFormat.h.
|
protected |
number of words of buffer
Definition at line 89 of file RawDataBlockFormat.h.
|
protected |
not recorded
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 102 of file RawDataBlockFormat.h.