Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

TArtDataFormat Class Reference

Base class for dealing with corresponding data format. More...

#include <TArtDataFormat.h>

Inheritance diagram for TArtDataFormat:

TArtRDF TArtRIDF List of all members.

Public Member Functions

virtual void Delete ()
virtual ArtBlockStat_t GetNextBlock (TArtDataSource *source)=0
 Get next block from the source.
virtual ArtEventStat_t GetNextEvent (unsigned short *buf, unsigned short *runbuf, unsigned short *rnum, int &nw)=0
 Get next event data.
virtual void FindSegment (unsigned short *evtdata, int *evtsize, int *addr, int *nw, int *maxsegid)=0
 Search find segmentids in the event data.
virtual ~TArtDataFormat ()
 Default destructor.

Static Public Attributes

const unsigned int kMaxBlockLen = 512*1024/sizeof(short)
 The size of the buffer allocated to fBlock.

Protected Attributes

unsigned short * fBlock
 a buffer of a block, which will be allocated in the default constructor
unsigned int fBlockLen
 block length
ArtBlockType_t fBlockType
 block type
unsigned int fPointer
 offset of the current position to the buffer

Detailed Description

Base class for dealing with corresponding data format.


Member Function Documentation

virtual void TArtDataFormat::FindSegment unsigned short *  evtdata,
int *  evtsize,
int *  addr,
int *  nw,
int *  maxsegid
[pure virtual]
 

Search find segmentids in the event data.

Parameters:
evtdata [in] the event data to be seached
evtsize [in] the size of the event data
addr [out] an array with the length of maxsegid where the offset of each segment is saved
nw [out] an array with the length of maxsegid where the number of words of each segment is saved
maxsegid [in] the length of the array

Implemented in TArtRDF, and TArtRIDF.

virtual ArtBlockStat_t TArtDataFormat::GetNextBlock TArtDataSource source  )  [pure virtual]
 

Get next block from the source.

The head position, the length and the type of the new block should be assigned to fBlock, fBlockLen, and fBlockType, respectively, in this method.

Parameters:
source data source
Returns:
status of block data

Implemented in TArtRDF, and TArtRIDF.

virtual ArtEventStat_t TArtDataFormat::GetNextEvent unsigned short *  buf,
unsigned short *  runbuf,
unsigned short *  rnum,
int &  nw
[pure virtual]
 

Get next event data.

The information of the next event data will be returned to arguments.

Parameters:
buf [out] the pointer to the new event
runbuf [out] the pointer to the run number in comment block
rnum [out] the pointer to the run number (used for dump data)
nw [out] the number of words in the new event
Returns:
status of event data

Implemented in TArtRDF, and TArtRIDF.


The documentation for this class was generated from the following files:
Generated on Mon Sep 8 08:58:21 2008 by  doxygen 1.3.9.1