CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

edm::ProducerSourceFromFiles Class Reference

#include <ProducerSourceFromFiles.h>

Inheritance diagram for edm::ProducerSourceFromFiles:
edm::ProducerSourceBase edm::InputSource edm::ProductRegistryHelper AlpgenSource edm::MCFileSource ErrorStreamSource HcalTBSource L1MuGMTHWFileReader LHESource MCatNLOSource PixelSLinkDataInputSource

List of all members.

Public Member Functions

InputFileCatalogcatalog ()
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_

Detailed Description

Definition at line 18 of file ProducerSourceFromFiles.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

InputFileCatalog& edm::ProducerSourceFromFiles::catalog ( ) [inline]

Definition at line 25 of file ProducerSourceFromFiles.h.

References catalog_.

{return catalog_;}
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]
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().

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();
  }

Member Data Documentation

Definition at line 37 of file ProducerSourceFromFiles.h.

Referenced by catalog(), fileNames(), logicalFileNames(), and noFiles().

Definition at line 36 of file ProducerSourceFromFiles.h.

Referenced by fileIndex(), and incrementFileIndex().