 |
Belle II Software
release-05-02-19
|
10 #define RAWDATABLOCK_H
14 #include <rawdata/dataobjects/RawDataBlockFormat.h>
36 virtual void SetBuffer(
int* bufin,
int nwords,
int delete_flag,
int num_events,
int num_nodes);
virtual int GetBufferPos(int n)
get position of data block in word
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 GetNumEntries()
get # of data blocks = (# of nodes)*(# of events)
int m_num_events
number of events in this object
virtual int CheckFTSWID(int n)
get FTSW ID to check whether this data block is FTSW data or not
virtual void PrintData(int *buf, int nwords)
print data
int m_num_nodes
number of nodes in this object
virtual ~RawDataBlock()
Destructor.
RawDataBlock()
Default constructor.
virtual int TotalBufNwords()
Get total length of m_buffer.
virtual int GetBlockNwords(int n)
get size of a data block
Abstract base class for different kinds of events.
virtual int GetNumEvents()
get # of events in m_buffer
virtual void CopyBlock(int n, int *buf_to)
Copy one datablock to buffer.
ClassDef(RawDataBlock, 3)
not record
virtual int GetNumNodes()
get # of data sources(e.g. # of COPPER boards) in m_buffer
int m_nwords
do not record
virtual int * GetWholeBuffer()
get pointer to buffer(m_buffer)
int m_use_prealloc_buf
flag for deleting m_buffer in destructer( 0:delete, 1: not delete) When using pre-allocated buffer,...
virtual int GetPreAllocFlag()
get malloc_flag
The RawDataBlock class Base class for rawdata handling.
virtual int CheckTLUID(int n)
get FTSW ID to check whether this data block is FTSW data or not
RawDataBlockFormat * m_access_dblk
class to access
virtual int * GetBuffer(int n)
get nth buffer pointer