Fetch files from a pre-existing SAM project. More...
#include <SAMProjectSource.h>
Public Member Functions | |
SAMProjectSource (const std::string &proj, int fileLimit=-1) | |
virtual | ~SAMProjectSource () |
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 | |
ifdh_ns::ifdh * | fIFDH |
std::string | fProjectURL |
std::string | fProcessID |
TFile * | fFile |
The most-recently-returned file. More... | |
int | fNFiles |
Static Protected Attributes | |
static bool | fgGotTickets = false |
Fetch files from a pre-existing SAM project.
Definition at line 14 of file SAMProjectSource.h.
ana::SAMProjectSource::SAMProjectSource | ( | const std::string & | proj, |
int | fileLimit = -1 |
||
) |
proj | SAM project name (not URL) |
fileLimit | Optional maximum number of files to process |
Definition at line 20 of file SAMProjectSource.cxx.
|
virtual |
Definition at line 52 of file SAMProjectSource.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 71 of file SAMProjectSource.cxx.
|
inlineoverridevirtual |
May return -1 indicating the number of files is not known.
Reimplemented from ana::IFileSource.
Definition at line 24 of file SAMProjectSource.h.
|
protected |
The most-recently-returned file.
Definition at line 31 of file SAMProjectSource.h.
|
staticprotected |
Definition at line 35 of file SAMProjectSource.h.
|
protected |
Definition at line 26 of file SAMProjectSource.h.
|
protected |
Definition at line 33 of file SAMProjectSource.h.
|
protected |
Definition at line 29 of file SAMProjectSource.h.
|
protected |
Definition at line 28 of file SAMProjectSource.h.