Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
oncsEventiterator Class Reference

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

+ Inheritance diagram for oncsEventiterator:
+ Collaboration diagram for oncsEventiterator:

Public Member Functions

virtual ~oncsEventiterator ()
 
 oncsEventiterator (const char *filename)
 
 oncsEventiterator (const char *filename, int &status)
 
const char * getIdTag () const
 
virtual void identify (std::ostream &os=std::cout) const
 
EventgetNextEvent ()
 
- Public Member Functions inherited from Eventiterator
virtual ~Eventiterator ()
 The virtual destructor.
 
virtual int * getNextEventData ()
 
virtual int releaseEventData ()
 
virtual void setBlockingMode (const int)
 
virtual int getBlockingMode () const
 
virtual void setSelectMode (const int)
 
virtual int getSelectMode () const
 
virtual void setSelectWords (const int, const int, const int, const int)
 
virtual void getSelectWords (int[]) const
 
virtual const char * getCurrentFileName () const
 
virtual int setVerbosity (const int)
 
virtual int getVerbosity () const
 

Private Member Functions

int read_next_buffer ()
 

Private Attributes

char * thefilename
 
int fd
 
unsigned int initialbuffer [BUFFERSIZE]
 
int * bp
 
int allocatedsize
 
int current_index
 
int last_read_status
 
int buffer_size
 
oncsBufferbptr
 

Detailed Description

Definition at line 9 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 9 of file oncsEventiterator.h

Constructor & Destructor Documentation

oncsEventiterator::~oncsEventiterator ( )
virtual

Definition at line 24 of file oncsEventiterator.cc.

View newest version in sPHENIX GitHub at line 24 of file oncsEventiterator.cc

References bp, bptr, fd, and thefilename.

oncsEventiterator::oncsEventiterator ( const char *  filename)

Definition at line 33 of file oncsEventiterator.cc.

View newest version in sPHENIX GitHub at line 33 of file oncsEventiterator.cc

References allocatedsize, bp, bptr, current_index, fd, last_read_status, Acts::open, and thefilename.

oncsEventiterator::oncsEventiterator ( const char *  filename,
int &  status 
)

Definition at line 51 of file oncsEventiterator.cc.

View newest version in sPHENIX GitHub at line 51 of file oncsEventiterator.cc

References allocatedsize, bp, bptr, current_index, fd, last_read_status, Acts::open, and thefilename.

Member Function Documentation

const char * oncsEventiterator::getIdTag ( ) const
virtual

Implements Eventiterator.

Definition at line 79 of file oncsEventiterator.cc.

View newest version in sPHENIX GitHub at line 79 of file oncsEventiterator.cc

References line, and thefilename.

Referenced by identify().

+ Here is the caller graph for this function:

Event * oncsEventiterator::getNextEvent ( )
virtual

this member function returns a pointer to the Event object, or NULL if there no events left.

Implements Eventiterator.

Definition at line 91 of file oncsEventiterator.cc.

View newest version in sPHENIX GitHub at line 91 of file oncsEventiterator.cc

References bptr, oncsBuffer::getEvent(), last_read_status, and read_next_buffer().

+ Here is the call graph for this function:

void oncsEventiterator::identify ( std::ostream &  os = std::cout) const
virtual

Implements Eventiterator.

Definition at line 73 of file oncsEventiterator.cc.

View newest version in sPHENIX GitHub at line 73 of file oncsEventiterator.cc

References getIdTag().

+ Here is the call graph for this function:

int oncsEventiterator::read_next_buffer ( )
private

Definition at line 124 of file oncsEventiterator.cc.

View newest version in sPHENIX GitHub at line 124 of file oncsEventiterator.cc

References allocatedsize, bp, bptr, buffer_size, BUFFERBLOCKSIZE, COUT, fd, i, oncsBuffer::i4swap(), initialbuffer, ONCSBUFFERID, PRDFBUFFERID, and ActsExamples::JsonSurfacesReader::read().

Referenced by getNextEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

int oncsEventiterator::allocatedsize
private

Definition at line 32 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 32 of file oncsEventiterator.h

Referenced by oncsEventiterator(), and read_next_buffer().

int* oncsEventiterator::bp
private

Definition at line 31 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 31 of file oncsEventiterator.h

Referenced by oncsEventiterator(), read_next_buffer(), and ~oncsEventiterator().

oncsBuffer* oncsEventiterator::bptr
private

Definition at line 37 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 37 of file oncsEventiterator.h

Referenced by getNextEvent(), oncsEventiterator(), read_next_buffer(), and ~oncsEventiterator().

int oncsEventiterator::buffer_size
private

Definition at line 36 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 36 of file oncsEventiterator.h

Referenced by read_next_buffer().

int oncsEventiterator::current_index
private

Definition at line 34 of file oncsEventiterator.h.

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

Referenced by oncsEventiterator().

int oncsEventiterator::fd
private

Definition at line 29 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 29 of file oncsEventiterator.h

Referenced by oncsEventiterator(), read_next_buffer(), and ~oncsEventiterator().

unsigned int oncsEventiterator::initialbuffer[BUFFERSIZE]
private

Definition at line 30 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 30 of file oncsEventiterator.h

Referenced by read_next_buffer().

int oncsEventiterator::last_read_status
private

Definition at line 35 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 35 of file oncsEventiterator.h

Referenced by getNextEvent(), and oncsEventiterator().

char* oncsEventiterator::thefilename
private

Definition at line 28 of file oncsEventiterator.h.

View newest version in sPHENIX GitHub at line 28 of file oncsEventiterator.h

Referenced by getIdTag(), oncsEventiterator(), and ~oncsEventiterator().


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