EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
olzoBuffer Class Reference

#include <online_distribution/blob/master/newbasic/olzoBuffer.h>

+ Inheritance diagram for olzoBuffer:
+ Collaboration diagram for olzoBuffer:

Public Member Functions

 olzoBuffer (int fdin, PHDWORD *where, const int length, const int irun=1, const int iseq=0)
 
virtual ~olzoBuffer ()
 
virtual int writeout ()
 
- Public Member Functions inherited from ophBuffer
 ophBuffer ()
 
 ophBuffer (int fd, PHDWORD *where, const int length, const int irun=1, const int iseq=0)
 
 ophBuffer (const char *filename, PHDWORD *where, const int length, int &status, const int irun=1, const int iseq=0)
 
 ~ophBuffer ()
 
int nextEvent (const unsigned int evtsize, const int etype=0, const int evtseq=0)
 
int addRawEvent (unsigned int *)
 
int addEvent (Event *)
 
int addFrame (PHDWORD *)
 
int addPacket (const Packet *p)
 
int addUnstructPacketData (PHDWORD *data, const int length, const int id, const int wordsize, const int hitformat)
 
int writeout ()
 
int setMaxSize (const int size)
 
int getMaxSize () const
 
unsigned long long getBytesWritten () const
 
int addEoB ()
 
- Public Member Functions inherited from oBuffer
 oBuffer ()
 
virtual ~oBuffer ()
 

Protected Attributes

int _broken
 
lzo_byte * wrkmem
 
PHDWORDoutputarray
 
lzo_uint outputarraylength
 
- Protected Attributes inherited from ophBuffer
buffer_ptr bptr
 
buffer_ptr bptr_being_written
 
buffer_ptr bptr0
 
buffer_ptr bptr1
 
PHDWORDdata_ptr
 
int current_index
 
int max_length
 
int max_size
 
unsigned int left
 
int sequence
 
int runnumber
 
unsigned long long byteswritten
 
oEventcurrent_event
 
int eventsequence
 
int current_etype
 
int has_end
 
int dirty
 
int fd
 
int our_fd
 
int good_object
 

Static Protected Attributes

static int lzo_initialized = 0
 

Additional Inherited Members

- Protected Member Functions inherited from ophBuffer
int prepare_next ()
 

Detailed Description

Definition at line 11 of file olzoBuffer.h.

View newest version in sPHENIX GitHub at line 11 of file olzoBuffer.h

Constructor & Destructor Documentation

olzoBuffer::olzoBuffer ( int  fdin,
PHDWORD where,
const int  length,
const int  irun = 1,
const int  iseq = 0 
)

Definition at line 15 of file olzoBuffer.cc.

View newest version in sPHENIX GitHub at line 15 of file olzoBuffer.cc

References _broken, COUT, lzo_initialized, outputarray, outputarraylength, and wrkmem.

olzoBuffer::~olzoBuffer ( )
virtual

Definition at line 102 of file olzoBuffer.cc.

View newest version in sPHENIX GitHub at line 102 of file olzoBuffer.cc

References outputarray, writeout(), and wrkmem.

+ Here is the call graph for this function:

Member Function Documentation

int olzoBuffer::writeout ( )
virtual

Implements oBuffer.

Reimplemented in oamlBuffer.

Definition at line 58 of file olzoBuffer.cc.

View newest version in sPHENIX GitHub at line 58 of file olzoBuffer.cc

References ophBuffer::addEoB(), ophBuffer::bptr, BUFFERBLOCKSIZE, BUFFERHEADERLENGTH, oBuffer::buffer_ptr::Bufseq, ophBuffer::byteswritten, ophBuffer::dirty, ophBuffer::fd, ophBuffer::has_end, ip(), oBuffer::buffer_ptr::Length, LZO1XBUFFERMARKER, n, outputarray, outputarraylength, tree::write(), and wrkmem.

Referenced by ~olzoBuffer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

int olzoBuffer::_broken
protected

Definition at line 42 of file olzoBuffer.h.

View newest version in sPHENIX GitHub at line 42 of file olzoBuffer.h

Referenced by olzoBuffer().

int olzoBuffer::lzo_initialized = 0
staticprotected

Definition at line 40 of file olzoBuffer.h.

View newest version in sPHENIX GitHub at line 40 of file olzoBuffer.h

Referenced by olzoBuffer().

PHDWORD* olzoBuffer::outputarray
protected

Definition at line 46 of file olzoBuffer.h.

View newest version in sPHENIX GitHub at line 46 of file olzoBuffer.h

Referenced by olzoBuffer(), writeout(), oamlBuffer::writeout(), and ~olzoBuffer().

lzo_uint olzoBuffer::outputarraylength
protected

Definition at line 47 of file olzoBuffer.h.

View newest version in sPHENIX GitHub at line 47 of file olzoBuffer.h

Referenced by olzoBuffer(), writeout(), and oamlBuffer::writeout().

lzo_byte* olzoBuffer::wrkmem
protected

Definition at line 44 of file olzoBuffer.h.

View newest version in sPHENIX GitHub at line 44 of file olzoBuffer.h

Referenced by olzoBuffer(), writeout(), oamlBuffer::writeout(), and ~olzoBuffer().


The documentation for this class was generated from the following files: