Simple file source based on an explicit list provided by the user. More...
#include <FileListSource.h>
Public Member Functions | |
FileListSource (const std::vector< std::string > &files, int stride=-1, int offset=-1) | |
default offset and stride mean obey cmd-line options More... | |
virtual | ~FileListSource () |
virtual TFile * | GetNextFile () override |
Returns the next file in sequence, ready for reading. More... | |
int | NFiles () const override |
May return -1 indicating the number of files is not known. More... | |
Public Member Functions inherited from ana::IFileSource | |
virtual | ~IFileSource () |
Protected Attributes | |
std::vector< std::string > | fFileNames |
The list of files. More... | |
std::vector< std::string > ::iterator | fIt |
Iterator into fFileNames. More... | |
int | fStride |
int | fN |
Number of files that will actually be returned. More... | |
TFile * | fFile |
The most-recently-returned file. More... | |
Static Protected Attributes | |
static bool | fgGotTickets = false |
Have we renewed our tickets? More... | |
Simple file source based on an explicit list provided by the user.
Definition at line 11 of file FileListSource.h.
ana::FileListSource::FileListSource | ( | const std::vector< std::string > & | files, |
int | stride = -1 , |
||
int | offset = -1 |
||
) |
default offset and stride mean obey cmd-line options
Definition at line 15 of file FileListSource.cxx.
|
virtual |
Definition at line 82 of file FileListSource.cxx.
|
overridevirtual |
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.
Implements ana::IFileSource.
Definition at line 88 of file FileListSource.cxx.
|
inlineoverridevirtual |
May return -1 indicating the number of files is not known.
Reimplemented from ana::IFileSource.
Definition at line 20 of file FileListSource.h.
|
protected |
The most-recently-returned file.
Definition at line 26 of file FileListSource.h.
|
protected |
The list of files.
Definition at line 22 of file FileListSource.h.
|
staticprotected |
Have we renewed our tickets?
Definition at line 27 of file FileListSource.h.
|
protected |
Iterator into fFileNames.
Definition at line 23 of file FileListSource.h.
|
protected |
Number of files that will actually be returned.
Definition at line 25 of file FileListSource.h.
|
protected |
Definition at line 24 of file FileListSource.h.