#include <ProducerSourceFromFiles.h>
Public Member Functions | |
InputFileCatalog & | catalog () |
std::vector< std::string > const & | fileNames () const |
std::vector< std::string > const & | logicalFileNames () const |
ProducerSourceFromFiles (ParameterSet const &pset, InputSourceDescription const &desc, bool realData) | |
virtual | ~ProducerSourceFromFiles () |
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Protected Member Functions | |
void | incrementFileIndex () |
Private Member Functions | |
virtual size_t | fileIndex () const |
virtual bool | noFiles () const |
Private Attributes | |
InputFileCatalog | catalog_ |
size_t | fileIndex_ |
Definition at line 18 of file ProducerSourceFromFiles.h.
edm::ProducerSourceFromFiles::ProducerSourceFromFiles | ( | ParameterSet const & | pset, |
InputSourceDescription const & | desc, | ||
bool | realData | ||
) |
Definition at line 6 of file ProducerSourceFromFiles.cc.
: ProducerSourceBase(pset, desc, realData), fileIndex_(0), catalog_(pset.getUntrackedParameter<std::vector<std::string> >("fileNames"), pset.getUntrackedParameter<std::string>("overrideCatalog", std::string())) { }
edm::ProducerSourceFromFiles::~ProducerSourceFromFiles | ( | ) | [virtual] |
Definition at line 12 of file ProducerSourceFromFiles.cc.
{}
InputFileCatalog& edm::ProducerSourceFromFiles::catalog | ( | ) | [inline] |
size_t edm::ProducerSourceFromFiles::fileIndex | ( | ) | const [private, virtual] |
Reimplemented from edm::ProducerSourceBase.
Definition at line 29 of file ProducerSourceFromFiles.cc.
References fileIndex_.
{ return fileIndex_; }
std::vector<std::string> const& edm::ProducerSourceFromFiles::fileNames | ( | ) | const [inline] |
Definition at line 24 of file ProducerSourceFromFiles.h.
References catalog_, and edm::InputFileCatalog::fileNames().
Referenced by AlpgenSource::AlpgenSource(), ErrorStreamSource::ErrorStreamSource(), L1MuGMTHWFileReader::L1MuGMTHWFileReader(), MCatNLOSource::MCatNLOSource(), edm::MCFileSource::MCFileSource(), PixelSLinkDataInputSource::PixelSLinkDataInputSource(), L1MuGMTHWFileReader::setRunAndEventInfo(), and ErrorStreamSource::setRunAndEventInfo().
{return catalog_.fileNames();}
void edm::ProducerSourceFromFiles::fillDescription | ( | ParameterSetDescription & | desc | ) | [static] |
Reimplemented from edm::ProducerSourceBase.
Definition at line 15 of file ProducerSourceFromFiles.cc.
References edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
{ std::vector<std::string> defaultStrings; desc.addUntracked<std::vector<std::string> >("fileNames", defaultStrings) ->setComment("Names of files to be processed."); desc.addUntracked<std::string>("overrideCatalog", std::string()); ProducerSourceBase::fillDescription(desc); }
void edm::ProducerSourceFromFiles::incrementFileIndex | ( | ) | [inline, protected] |
Definition at line 30 of file ProducerSourceFromFiles.h.
References fileIndex_.
Referenced by LHESource::nextEvent().
{++fileIndex_;}
std::vector<std::string> const& edm::ProducerSourceFromFiles::logicalFileNames | ( | ) | const [inline] |
Definition at line 23 of file ProducerSourceFromFiles.h.
References catalog_, and edm::InputFileCatalog::logicalFileNames().
{return catalog_.logicalFileNames();}
bool edm::ProducerSourceFromFiles::noFiles | ( | ) | const [private, virtual] |
Reimplemented from edm::ProducerSourceBase.
Definition at line 24 of file ProducerSourceFromFiles.cc.
References catalog_, and edm::InputFileCatalog::fileCatalogItems().
{ return catalog_.fileCatalogItems().empty(); }
Definition at line 37 of file ProducerSourceFromFiles.h.
Referenced by catalog(), fileNames(), logicalFileNames(), and noFiles().
size_t edm::ProducerSourceFromFiles::fileIndex_ [private] |
Definition at line 36 of file ProducerSourceFromFiles.h.
Referenced by fileIndex(), and incrementFileIndex().