Public Member Functions | List of all members
ana::IFileSource Class Referenceabstract

Interface class for accessing ROOT files in sequence. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/cafanacore/v01.11/src/CAFAna/Core/IFileSource.h"

Inheritance diagram for ana::IFileSource:
ana::FileListSource ana::SAMProjectSource ana::SAMQuerySource ana::WildcardSource

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...
 

Detailed Description

Interface class for accessing ROOT files in sequence.

Used internally by SpectrumLoaderBase etc.

Definition at line 10 of file IFileSource.h.

Constructor & Destructor Documentation

virtual ana::IFileSource::~IFileSource ( )
inlinevirtual

Definition at line 13 of file IFileSource.h.

References GetNextFile().

13 {}

Member Function Documentation

virtual TFile* ana::IFileSource::GetNextFile ( )
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.

Referenced by ProducingSA(), useBDTG(), and ~IFileSource().

virtual int ana::IFileSource::NFiles ( ) const
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.

Referenced by ProducingSA(), and useBDTG().

21 {return -1;}

The documentation for this class was generated from the following file: