ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <online_distribution/blob/master/newbasic/fileEventiterator.h>
Public Member Functions | |
virtual | ~fileEventiterator () |
fileEventiterator (const char *filename) | |
This simple constructor just needs the file name of the data file. | |
fileEventiterator (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 () |
int | setVerbosity (const int v) |
int | getVerbosity () const |
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 |
Private Member Functions | |
int | open_file (const char *filename) |
int | read_next_buffer () |
Private Attributes | |
char * | thefilename |
int | fd |
PHDWORD * | bp |
unsigned int | allocatedsize |
int | current_index |
int | last_read_status |
unsigned int | buffer_size |
buffer * | bptr |
int | events_so_far |
int | verbosity |
int | _defunct |
The fileEventiterator reads the event data from a data file 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 19 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 19 of file fileEventiterator.h
|
virtual |
Definition at line 25 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 25 of file fileEventiterator.cc
References bp, bptr, close(), fd, and thefilename.
fileEventiterator::fileEventiterator | ( | const char * | filename | ) |
This simple constructor just needs the file name of the data file.
Definition at line 34 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 34 of file fileEventiterator.cc
References open_file().
fileEventiterator::fileEventiterator | ( | 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 39 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 39 of file fileEventiterator.cc
References open_file().
|
virtual |
Reimplemented from Eventiterator.
Definition at line 84 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 84 of file fileEventiterator.cc
References thefilename.
|
virtual |
Implements Eventiterator.
Definition at line 101 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 101 of file fileEventiterator.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 112 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 112 of file fileEventiterator.cc
References _defunct, bptr, events_so_far, buffer::getEvent(), last_read_status, and read_next_buffer().
|
inlinevirtual |
Reimplemented from Eventiterator.
Definition at line 55 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 55 of file fileEventiterator.h
|
virtual |
Implements Eventiterator.
Definition at line 75 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 75 of file fileEventiterator.cc
References _defunct, and thefilename.
|
private |
Definition at line 45 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 45 of file fileEventiterator.cc
References _defunct, allocatedsize, bp, bptr, current_index, events_so_far, fd, last_read_status, Acts::open, thefilename, and verbosity.
Referenced by fileEventiterator().
|
private |
Definition at line 148 of file fileEventiterator.cc.
View newest version in sPHENIX GitHub at line 148 of file fileEventiterator.cc
References allocatedsize, bp, bptr, buffer_size, BUFFERBLOCKSIZE, BUFFERMARKER, COUT, cp, events_so_far, fd, GZBUFFERMARKER, LZO1XBUFFERMARKER, buffer::makeBuffer(), ONCSBUFFERMARKER, and buffer::u4swap().
Referenced by getNextEvent().
Reimplemented from Eventiterator.
Definition at line 49 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 49 of file fileEventiterator.h
References v.
|
private |
Definition at line 78 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 78 of file fileEventiterator.h
Referenced by getNextEvent(), identify(), and open_file().
|
private |
Definition at line 69 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 69 of file fileEventiterator.h
Referenced by open_file(), and read_next_buffer().
|
private |
Definition at line 68 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 68 of file fileEventiterator.h
Referenced by open_file(), read_next_buffer(), and ~fileEventiterator().
|
private |
Definition at line 74 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 74 of file fileEventiterator.h
Referenced by getNextEvent(), open_file(), read_next_buffer(), and ~fileEventiterator().
|
private |
Definition at line 73 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 73 of file fileEventiterator.h
Referenced by read_next_buffer().
|
private |
Definition at line 71 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 71 of file fileEventiterator.h
Referenced by open_file().
|
private |
Definition at line 76 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 76 of file fileEventiterator.h
Referenced by getNextEvent(), open_file(), and read_next_buffer().
|
private |
Definition at line 66 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 66 of file fileEventiterator.h
Referenced by open_file(), read_next_buffer(), and ~fileEventiterator().
|
private |
Definition at line 72 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 72 of file fileEventiterator.h
Referenced by getNextEvent(), and open_file().
|
private |
Definition at line 65 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 65 of file fileEventiterator.h
Referenced by getCurrentFileName(), identify(), open_file(), and ~fileEventiterator().
|
private |
Definition at line 77 of file fileEventiterator.h.
View newest version in sPHENIX GitHub at line 77 of file fileEventiterator.h
Referenced by open_file().