EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <online_distribution/blob/master/newbasic/listEventiterator.h>
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 |
Event * | getNextEvent () |
Public Member Functions inherited from Eventiterator | |
virtual | ~Eventiterator () |
The virtual destructor. | |
virtual int * | getNextEventData () |
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 | |
Eventiterator * | getNextIterator () |
Private Attributes | |
char | thefilename [FEMAXFILENAMELENGTH] |
char * | listfilename |
std::ifstream * | liststream |
Eventiterator * | it |
int | defunct |
int | finished |
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
|
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.
|
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.
|
virtual |
Implements Eventiterator.
Definition at line 88 of file listEventiterator.cc.
View newest version in sPHENIX GitHub at line 88 of file listEventiterator.cc
|
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 Acts::UnitConstants::e, finished, Eventiterator::getNextEvent(), getNextIterator(), and it.
|
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().
|
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.
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().