Interface class for accessing ROOT files in sequence. More...
#include <IFileSource.h>
Public Member Functions | |
virtual | ~IFileSource () |
virtual TFile * | GetNextFile ()=0 |
Returns the next file in sequence, ready for reading. More... | |
virtual int | NFiles () const |
May return -1 indicating the number of files is not known. More... | |
Interface class for accessing ROOT files in sequence.
Used internally by SpectrumLoaderBase etc.
Definition at line 10 of file IFileSource.h.
|
inlinevirtual |
Definition at line 13 of file IFileSource.h.
|
pure virtual |
Returns the next file in sequence, ready for reading.
A null return means that the end of the sequence has been reached. DO NOT close or delete the file that is returned.
Implemented in ana::SAMProjectSource, and ana::FileListSource.
|
inlinevirtual |
May return -1 indicating the number of files is not known.
Reimplemented in ana::SAMProjectSource, and ana::FileListSource.
Definition at line 21 of file IFileSource.h.