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.

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

Definition at line 12 of file FromFiles.cc.

12 {}

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:33
size_t edm::FromFiles::fileIndex ( ) const

Definition at line 23 of file FromFiles.cc.

References fileIndex_.

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

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

Definition at line 15 of file FromFiles.cc.

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

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

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

Definition at line 27 of file FromFiles.h.

References fileIndex(), and fileIndex_.

Referenced by edm::ProducerSourceFromFiles::noFiles().

27 {++fileIndex_;}
size_t fileIndex_
Definition: FromFiles.h:34
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:33

Member Data Documentation

InputFileCatalog edm::FromFiles::catalog_
private

Definition at line 33 of file FromFiles.h.

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

size_t edm::FromFiles::fileIndex_
private

Definition at line 34 of file FromFiles.h.

Referenced by fileIndex(), and incrementFileIndex().