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