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

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

+ Inheritance diagram for listEventiterator:
+ Collaboration diagram for listEventiterator:

Public Member Functions

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

Private Member Functions

EventiteratorgetNextIterator ()
 

Private Attributes

char thefilename [FEMAXFILENAMELENGTH]
 
char * listfilename
 
std::ifstream * liststream
 
Eventiteratorit
 
int defunct
 
int finished
 

Detailed Description

The listEventiterator reads the event data from a list of data files on disk. It creates and returns pointers to Event objects. At the end of the file it returns 0 when there are no events left.

Definition at line 21 of file listEventiterator.h.

View newest version in sPHENIX GitHub at line 21 of file listEventiterator.h

Constructor & Destructor Documentation

listEventiterator::~listEventiterator ( )
virtual

Definition at line 16 of file listEventiterator.cc.

View newest version in sPHENIX GitHub at line 16 of file listEventiterator.cc

References it, listfilename, and liststream.

listEventiterator::listEventiterator ( const char *  filename)

This simple constructor just needs the file name of the file that contains, line by line, teh filenames.

Definition at line 24 of file listEventiterator.cc.

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

References defunct, finished, it, listfilename, liststream, and thefilename.

listEventiterator::listEventiterator ( const char *  filename,
int status 
)

This constructor gives you a status so you can learn that the creation of the fileEventiterator object was successful. If the status is not 0, something went wrong and you should delete the object again.

Definition at line 46 of file listEventiterator.cc.

View newest version in sPHENIX GitHub at line 46 of file listEventiterator.cc

References defunct, finished, it, listfilename, liststream, and thefilename.

Member Function Documentation

const char * listEventiterator::getCurrentFileName ( ) const
virtual

Reimplemented from Eventiterator.

Definition at line 78 of file listEventiterator.cc.

View newest version in sPHENIX GitHub at line 78 of file listEventiterator.cc

References thefilename.

const char * listEventiterator::getIdTag ( ) const
virtual

Implements Eventiterator.

Definition at line 88 of file listEventiterator.cc.

View newest version in sPHENIX GitHub at line 88 of file listEventiterator.cc

Event * listEventiterator::getNextEvent ( )
virtual

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

Implements Eventiterator.

Definition at line 125 of file listEventiterator.cc.

View newest version in sPHENIX GitHub at line 125 of file listEventiterator.cc

References e, finished, Eventiterator::getNextEvent(), getNextIterator(), and it.

+ Here is the call graph for this function:

Eventiterator * listEventiterator::getNextIterator ( )
private

Definition at line 99 of file listEventiterator.cc.

View newest version in sPHENIX GitHub at line 99 of file listEventiterator.cc

References FEMAXFILENAMELENGTH, finished, it, liststream, and thefilename.

Referenced by getNextEvent().

+ Here is the caller graph for this function:

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

Implements Eventiterator.

Definition at line 71 of file listEventiterator.cc.

View newest version in sPHENIX GitHub at line 71 of file listEventiterator.cc

References listfilename, and thefilename.

Member Data Documentation

int listEventiterator::defunct
private

Definition at line 66 of file listEventiterator.h.

View newest version in sPHENIX GitHub at line 66 of file listEventiterator.h

Referenced by listEventiterator().

int listEventiterator::finished
private

Definition at line 67 of file listEventiterator.h.

View newest version in sPHENIX GitHub at line 67 of file listEventiterator.h

Referenced by getNextEvent(), getNextIterator(), and listEventiterator().

Eventiterator* listEventiterator::it
private

Definition at line 65 of file listEventiterator.h.

View newest version in sPHENIX GitHub at line 65 of file listEventiterator.h

Referenced by getNextEvent(), getNextIterator(), listEventiterator(), and ~listEventiterator().

char* listEventiterator::listfilename
private

Definition at line 59 of file listEventiterator.h.

View newest version in sPHENIX GitHub at line 59 of file listEventiterator.h

Referenced by identify(), listEventiterator(), and ~listEventiterator().

std::ifstream* listEventiterator::liststream
private

Definition at line 62 of file listEventiterator.h.

View newest version in sPHENIX GitHub at line 62 of file listEventiterator.h

Referenced by getNextIterator(), listEventiterator(), and ~listEventiterator().

char listEventiterator::thefilename[FEMAXFILENAMELENGTH]
private

Definition at line 58 of file listEventiterator.h.

View newest version in sPHENIX GitHub at line 58 of file listEventiterator.h

Referenced by getCurrentFileName(), getNextIterator(), identify(), and listEventiterator().


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