CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
edm::FromFiles Class Reference

#include <FromFiles.h>

Inheritance diagram for edm::FromFiles:
edm::ProducerSourceFromFiles edm::RawInputSourceFromFiles AlpgenSource edm::MCFileSource FRDStreamSource HcalTBSource L1MuGMTHWFileReader LHESource MCatNLOSource PixelSLinkDataInputSource

Public Member Functions

InputFileCatalogcatalog ()
 
size_t fileIndex () const
 
std::vector< std::string > const & fileNames () const
 
 FromFiles (ParameterSet const &pset)
 
void incrementFileIndex ()
 
std::vector< std::string > const & logicalFileNames () const
 
 ~FromFiles ()
 

Static Public Member Functions

static void fillDescription (ParameterSetDescription &desc)
 

Private Attributes

InputFileCatalog catalog_
 
size_t fileIndex_
 

Detailed Description

Definition at line 16 of file FromFiles.h.

Constructor & Destructor Documentation

edm::FromFiles::FromFiles ( ParameterSet const &  pset)

Definition at line 6 of file FromFiles.cc.

7  : catalog_(pset.getUntrackedParameter<std::vector<std::string> >("fileNames"),
8  pset.getUntrackedParameter<std::string>("overrideCatalog", std::string())),
9  fileIndex_(0) {}
InputFileCatalog catalog_
Definition: FromFiles.h:32
size_t fileIndex_
Definition: FromFiles.h:33
edm::FromFiles::~FromFiles ( )

Definition at line 11 of file FromFiles.cc.

11 {}

Member Function Documentation

InputFileCatalog& edm::FromFiles::catalog ( )
inline

Definition at line 23 of file FromFiles.h.

References catalog_, and fillDescription().

23 { return catalog_; }
InputFileCatalog catalog_
Definition: FromFiles.h:32
size_t edm::FromFiles::fileIndex ( ) const

Definition at line 20 of file FromFiles.cc.

References fileIndex_.

Referenced by edm::ProducerSourceFromFiles::fileIndex(), and incrementFileIndex().

20 { return fileIndex_; }
size_t fileIndex_
Definition: FromFiles.h:33
std::vector<std::string> const& edm::FromFiles::fileNames ( ) const
inline
void edm::FromFiles::fillDescription ( ParameterSetDescription desc)
static

Definition at line 13 of file FromFiles.cc.

References edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by catalog(), edm::RawInputSourceFromFiles::fillDescription(), and edm::ProducerSourceFromFiles::fillDescription().

13  {
14  std::vector<std::string> defaultStrings;
15  desc.addUntracked<std::vector<std::string> >("fileNames", defaultStrings)
16  ->setComment("Names of files to be processed.");
17  desc.addUntracked<std::string>("overrideCatalog", std::string());
18  }
void edm::FromFiles::incrementFileIndex ( )
inline

Definition at line 27 of file FromFiles.h.

References fileIndex(), and fileIndex_.

Referenced by LHESource::nextEvent(), and edm::ProducerSourceFromFiles::noFiles().

27 { ++fileIndex_; }
size_t fileIndex_
Definition: FromFiles.h:33
std::vector<std::string> const& edm::FromFiles::logicalFileNames ( ) const
inline

Definition at line 21 of file FromFiles.h.

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

21 { return catalog_.logicalFileNames(); }
std::vector< std::string > const & logicalFileNames() const
InputFileCatalog catalog_
Definition: FromFiles.h:32

Member Data Documentation

InputFileCatalog edm::FromFiles::catalog_
private

Definition at line 32 of file FromFiles.h.

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

size_t edm::FromFiles::fileIndex_
private

Definition at line 33 of file FromFiles.h.

Referenced by fileIndex(), and incrementFileIndex().