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

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

+ Inheritance diagram for rcdaqEventiterator:
+ Collaboration diagram for rcdaqEventiterator:

Public Member Functions

virtual ~rcdaqEventiterator ()
 
 rcdaqEventiterator ()
 
 rcdaqEventiterator (const char *ip)
 
 rcdaqEventiterator (const char *ip, 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
 

Protected Member Functions

int read_next_buffer ()
 
int setup (const char *ip, int &status)
 
int readn (int fd, char *ptr, int nbytes)
 
int writen (int fd, char *ptr, int nbytes)
 

Protected Attributes

std::string _theIP
 
int _sockfd
 
PHDWORD initialbuffer [BUFFERSIZE]
 
PHDWORDbp
 
int allocatedsize
 
int current_index
 
int last_read_status
 
int buffer_size
 
bufferbptr
 
struct sockaddr_in server
 
int _defunct
 

Detailed Description

Definition at line 18 of file rcdaqEventiterator.h.

View newest version in sPHENIX GitHub at line 18 of file rcdaqEventiterator.h

Constructor & Destructor Documentation

rcdaqEventiterator::~rcdaqEventiterator ( )
virtual

Definition at line 39 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 39 of file rcdaqEventiterator.cc

rcdaqEventiterator::rcdaqEventiterator ( )

Definition at line 47 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 47 of file rcdaqEventiterator.cc

References physmon_ckf_tracking::setup, and utils::status.

rcdaqEventiterator::rcdaqEventiterator ( const char *  ip)

Definition at line 60 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 60 of file rcdaqEventiterator.cc

References physmon_ckf_tracking::setup, and utils::status.

rcdaqEventiterator::rcdaqEventiterator ( const char *  ip,
int &  status 
)

Definition at line 66 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 66 of file rcdaqEventiterator.cc

References physmon_ckf_tracking::setup.

Member Function Documentation

const char * rcdaqEventiterator::getIdTag ( ) const
virtual

Implements Eventiterator.

Definition at line 116 of file rcdaqEventiterator.cc.

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

References line.

Event * rcdaqEventiterator::getNextEvent ( )
virtual

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

Implements Eventiterator.

Definition at line 128 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 128 of file rcdaqEventiterator.cc

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

Implements Eventiterator.

Definition at line 108 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 108 of file rcdaqEventiterator.cc

int rcdaqEventiterator::read_next_buffer ( )
protected

Definition at line 161 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 161 of file rcdaqEventiterator.cc

References versiongenerate::buffer_size, BUFFERBLOCKSIZE, i, buffer::makeBuffer(), readn(), server(), utils::status, and writen().

+ Here is the call graph for this function:

int rcdaqEventiterator::readn ( int  fd,
char *  ptr,
int  nbytes 
)
protected

Definition at line 234 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 234 of file rcdaqEventiterator.cc

int rcdaqEventiterator::setup ( const char *  ip,
int &  status 
)
protected

Definition at line 72 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 72 of file rcdaqEventiterator.cc

References MONITORINGPORT, and server().

+ Here is the call graph for this function:

int rcdaqEventiterator::writen ( int  fd,
char *  ptr,
int  nbytes 
)
protected

Definition at line 254 of file rcdaqEventiterator.cc.

View newest version in sPHENIX GitHub at line 254 of file rcdaqEventiterator.cc

Member Data Documentation

int rcdaqEventiterator::_defunct
protected

Definition at line 56 of file rcdaqEventiterator.h.

View newest version in sPHENIX GitHub at line 56 of file rcdaqEventiterator.h

int rcdaqEventiterator::_sockfd
protected

Definition at line 46 of file rcdaqEventiterator.h.

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

std::string rcdaqEventiterator::_theIP
protected

Definition at line 44 of file rcdaqEventiterator.h.

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

int rcdaqEventiterator::allocatedsize
protected

Definition at line 49 of file rcdaqEventiterator.h.

View newest version in sPHENIX GitHub at line 49 of file rcdaqEventiterator.h

PHDWORD* rcdaqEventiterator::bp
protected

Definition at line 48 of file rcdaqEventiterator.h.

View newest version in sPHENIX GitHub at line 48 of file rcdaqEventiterator.h

buffer* rcdaqEventiterator::bptr
protected

Definition at line 54 of file rcdaqEventiterator.h.

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

int rcdaqEventiterator::buffer_size
protected

Definition at line 53 of file rcdaqEventiterator.h.

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

int rcdaqEventiterator::current_index
protected

Definition at line 51 of file rcdaqEventiterator.h.

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

PHDWORD rcdaqEventiterator::initialbuffer[BUFFERSIZE]
protected

Definition at line 47 of file rcdaqEventiterator.h.

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

int rcdaqEventiterator::last_read_status
protected

Definition at line 52 of file rcdaqEventiterator.h.

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

struct sockaddr_in rcdaqEventiterator::server
protected

Definition at line 55 of file rcdaqEventiterator.h.

View newest version in sPHENIX GitHub at line 55 of file rcdaqEventiterator.h


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