CMS 3D CMS Logo

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

edm::ExternalInputSource Class Reference

#include <ExternalInputSource.h>

Inheritance diagram for edm::ExternalInputSource:
edm::ConfigurableInputSource edm::InputSource edm::ProductRegistryHelper AlpgenSource edm::H2RootNtplSource edm::MCFileSource ErrorStreamSource HcalTBSource L1MuGMTHWFileReader LHESource MCatNLOSource PixelSLinkDataInputSource

List of all members.

Public Member Functions

InputFileCatalogcatalog ()
 ExternalInputSource (ParameterSet const &pset, InputSourceDescription const &desc, bool realData=true)
std::vector< std::string > const & fileNames () const
std::vector< std::string > const & logicalFileNames () const
virtual ~ExternalInputSource ()

Static Public Member Functions

static void fillDescription (ParameterSetDescription &desc)

Protected Member Functions

void incrementFileIndex ()

Private Member Functions

virtual size_t fileIndex () const

Private Attributes

InputFileCatalog catalog_
size_t fileIndex_

Detailed Description

Definition at line 18 of file ExternalInputSource.h.


Constructor & Destructor Documentation

edm::ExternalInputSource::ExternalInputSource ( ParameterSet const &  pset,
InputSourceDescription const &  desc,
bool  realData = true 
)

Definition at line 6 of file ExternalInputSource.cc.

                                                                                                                      :
    ConfigurableInputSource(pset, desc, realData), fileIndex_(0UL),
    catalog_(pset.getUntrackedParameter<std::vector<std::string> >("fileNames"),
             pset.getUntrackedParameter<std::string>("overrideCatalog", std::string())) {
  }
edm::ExternalInputSource::~ExternalInputSource ( ) [virtual]

Definition at line 12 of file ExternalInputSource.cc.

{}

Member Function Documentation

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

Definition at line 25 of file ExternalInputSource.h.

References catalog_.

{return catalog_;}
virtual size_t edm::ExternalInputSource::fileIndex ( ) const [inline, private, virtual]

Reimplemented from edm::ConfigurableInputSource.

Definition at line 33 of file ExternalInputSource.h.

References fileIndex_.

{return fileIndex_;}
std::vector<std::string> const& edm::ExternalInputSource::fileNames ( ) const [inline]
void edm::ExternalInputSource::fillDescription ( ParameterSetDescription desc) [static]

Reimplemented from edm::ConfigurableInputSource.

Definition at line 15 of file ExternalInputSource.cc.

References edm::ParameterSetDescription::addUntracked().

                                                                      {
    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());
    ConfigurableInputSource::fillDescription(desc);
  }
void edm::ExternalInputSource::incrementFileIndex ( ) [inline, protected]

Definition at line 30 of file ExternalInputSource.h.

References fileIndex_.

Referenced by LHESource::nextEvent().

std::vector<std::string> const& edm::ExternalInputSource::logicalFileNames ( ) const [inline]

Definition at line 23 of file ExternalInputSource.h.

References catalog_, and edm::InputFileCatalog::logicalFileNames().

{return catalog_.logicalFileNames();}

Member Data Documentation

Definition at line 36 of file ExternalInputSource.h.

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

Definition at line 35 of file ExternalInputSource.h.

Referenced by fileIndex(), and incrementFileIndex().