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 edmtest::ThingExtSource FRDStreamSource HcalTBSource L1MuGMTHWFileReader LH5Source LHESource PixelSLinkDataInputSource

Public Member Functions

InputFileCatalogcatalog ()
 
size_t fileIndex () const
 
std::vector< std::string > fileNames (unsigned iCatalog) 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

◆ FromFiles()

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

◆ ~FromFiles()

edm::FromFiles::~FromFiles ( )

Definition at line 11 of file FromFiles.cc.

11 {}

Member Function Documentation

◆ catalog()

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

Definition at line 23 of file FromFiles.h.

References catalog_.

23 { return catalog_; }
InputFileCatalog catalog_
Definition: FromFiles.h:32

◆ fileIndex()

size_t edm::FromFiles::fileIndex ( ) const

Definition at line 20 of file FromFiles.cc.

References fileIndex_.

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

20 { return fileIndex_; }
size_t fileIndex_
Definition: FromFiles.h:33

◆ fileNames()

std::vector<std::string> edm::FromFiles::fileNames ( unsigned  iCatalog) const
inline

◆ fillDescription()

void edm::FromFiles::fillDescription ( ParameterSetDescription desc)
static

Definition at line 13 of file FromFiles.cc.

References submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by 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  }

◆ incrementFileIndex()

void edm::FromFiles::incrementFileIndex ( )
inline

Definition at line 27 of file FromFiles.h.

References fileIndex_.

Referenced by LH5Source::nextEvent(), and LHESource::nextEvent().

27 { ++fileIndex_; }
size_t fileIndex_
Definition: FromFiles.h:33

◆ logicalFileNames()

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(); }
InputFileCatalog catalog_
Definition: FromFiles.h:32
std::vector< std::string > const & logicalFileNames() const

Member Data Documentation

◆ catalog_

InputFileCatalog edm::FromFiles::catalog_
private

Definition at line 32 of file FromFiles.h.

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

◆ fileIndex_

size_t edm::FromFiles::fileIndex_
private

Definition at line 33 of file FromFiles.h.

Referenced by fileIndex(), and incrementFileIndex().