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

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

+ Inheritance diagram for oncsBuffer:
+ Collaboration diagram for oncsBuffer:

Classes

struct  buffer_ptr
 

Public Member Functions

 oncsBuffer (PHDWORD *array, const PHDWORD length)
 
EventgetEvent ()
 
int buffer_swap ()
 
intgetEventData ()
 
int isGood () const
 
- Public Member Functions inherited from buffer
 buffer ()
 
virtual ~buffer ()
 

Static Public Member Functions

static int i4swap (const int in)
 
static int i22swap (const int in)
 
static short i2swap (const short in)
 
- Static Public Member Functions inherited from buffer
static int makeBuffer (PHDWORD *bp, const int allocatedsize, buffer **bptr)
 
static int i4swap (const int in)
 
static unsigned int u4swap (const unsigned int in)
 
static int i22swap (const int in)
 
static short i2swap (const short in)
 

Protected Attributes

intdata_ptr
 
int buffer_size
 
int max_length
 
int current_index
 
buffer_ptr bptr
 

Detailed Description

Definition at line 17 of file oncsBuffer.h.

View newest version in sPHENIX GitHub at line 17 of file oncsBuffer.h

Constructor & Destructor Documentation

oncsBuffer::oncsBuffer ( PHDWORD array,
const PHDWORD  length 
)

Definition at line 6 of file oncsBuffer.cc.

View newest version in sPHENIX GitHub at line 6 of file oncsBuffer.cc

References bptr, buffer_size, buffer_swap(), COUT, current_index, oncsBuffer::buffer_ptr::data, data_ptr, i4swap(), oncsBuffer::buffer_ptr::ID, BTOF::length, max_length, ONCSBUFFERID, and PRDFBUFFERID.

+ Here is the call graph for this function:

Member Function Documentation

int oncsBuffer::buffer_swap ( )

Definition at line 31 of file oncsBuffer.cc.

View newest version in sPHENIX GitHub at line 31 of file oncsBuffer.cc

References bptr, BUFFERHEADERLENGTH, oncsBuffer::buffer_ptr::Bufseq, COUT, subevt_data::data, oncsevt_data::data, oncsBuffer::buffer_ptr::data, oncsevt_data::evt_length, oncsevt_data::evt_type, EVTHEADERLENGTH, i22swap(), i2swap(), i4swap(), oncsBuffer::buffer_ptr::ID, oncsBuffer::buffer_ptr::Length, subevt_data::reserved, oncsBuffer::buffer_ptr::Runnr, SEVTHEADERLENGTH, subevt_data::sub_decoding, subevt_data::sub_id, subevt_data::sub_length, subevt_data::sub_padding, and subevt_data::sub_type.

Referenced by oncsBuffer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Event * oncsBuffer::getEvent ( )
virtual

Implements buffer.

Definition at line 166 of file oncsBuffer.cc.

View newest version in sPHENIX GitHub at line 166 of file oncsBuffer.cc

References bptr, buffer_size, current_index, oncsBuffer::buffer_ptr::data, and Event::getEvtLength().

Referenced by oncsEventiterator::getNextEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int* oncsBuffer::getEventData ( )
inlinevirtual

Implements buffer.

Definition at line 33 of file oncsBuffer.h.

View newest version in sPHENIX GitHub at line 33 of file oncsBuffer.h

int oncsBuffer::i22swap ( const int  in)
static

Definition at line 132 of file oncsBuffer.cc.

View newest version in sPHENIX GitHub at line 132 of file oncsBuffer.cc

References c, and in.

Referenced by buffer_swap().

+ Here is the caller graph for this function:

short oncsBuffer::i2swap ( const short  in)
static

Definition at line 149 of file oncsBuffer.cc.

View newest version in sPHENIX GitHub at line 149 of file oncsBuffer.cc

References c, and in.

Referenced by buffer_swap().

+ Here is the caller graph for this function:

int oncsBuffer::i4swap ( const int  in)
static

Definition at line 116 of file oncsBuffer.cc.

View newest version in sPHENIX GitHub at line 116 of file oncsBuffer.cc

References c, and in.

Referenced by buffer_swap(), oncsBuffer(), and oncsEventiterator::read_next_buffer().

+ Here is the caller graph for this function:

int oncsBuffer::isGood ( ) const
inlinevirtual

Implements buffer.

Definition at line 34 of file oncsBuffer.h.

View newest version in sPHENIX GitHub at line 34 of file oncsBuffer.h

Member Data Documentation

buffer_ptr oncsBuffer::bptr
protected

Definition at line 54 of file oncsBuffer.h.

View newest version in sPHENIX GitHub at line 54 of file oncsBuffer.h

Referenced by buffer_swap(), getEvent(), and oncsBuffer().

int oncsBuffer::buffer_size
protected

Definition at line 51 of file oncsBuffer.h.

View newest version in sPHENIX GitHub at line 51 of file oncsBuffer.h

Referenced by getEvent(), and oncsBuffer().

int oncsBuffer::current_index
protected

Definition at line 53 of file oncsBuffer.h.

View newest version in sPHENIX GitHub at line 53 of file oncsBuffer.h

Referenced by getEvent(), and oncsBuffer().

int* oncsBuffer::data_ptr
protected

Definition at line 50 of file oncsBuffer.h.

View newest version in sPHENIX GitHub at line 50 of file oncsBuffer.h

Referenced by oncsBuffer().

int oncsBuffer::max_length
protected

Definition at line 52 of file oncsBuffer.h.

View newest version in sPHENIX GitHub at line 52 of file oncsBuffer.h

Referenced by oncsBuffer().


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