reading from 2 or more files
#include <fileEventiterator.h>
int main(int argc, char *argv[])
// see if we can open the file
Eventiterator *it1 = new fileEventiterator(argv[1]);
Eventiterator *it2 = new fileEventiterator(argv[2]);
Event *evt1 = it1->getNextEvent();
Event *evt2 = it2->getNextEvent();
something which takes dyed-in-the-wool F77 programmers some getting-used to. You may be used to analysis code which opens THE data file, then opens the next one, and so on, typically on a certain F77 logical unit.
With objects, there can be as many objects as you wish...
So you can make and use many Eventiterators simultaneously, and open as may files or other sources of Events at the same time. (Think of a mixed-event background analysis, for example). Also, you can open the same data file with more than one Iterator at the same time.