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 > 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) {}

◆ ~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.

23 { return catalog_; }

References catalog_.

◆ fileIndex()

size_t edm::FromFiles::fileIndex ( ) const

Definition at line 20 of file FromFiles.cc.

20 { return fileIndex_; }

References fileIndex_.

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

◆ 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.

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  }

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

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

◆ incrementFileIndex()

void edm::FromFiles::incrementFileIndex ( )
inline

Definition at line 27 of file FromFiles.h.

27 { ++fileIndex_; }

References fileIndex_.

Referenced by LHESource::nextEvent().

◆ logicalFileNames()

std::vector<std::string> const& edm::FromFiles::logicalFileNames ( ) const
inline

Definition at line 21 of file FromFiles.h.

21 { return catalog_.logicalFileNames(); }

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

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().

edm::FromFiles::catalog_
InputFileCatalog catalog_
Definition: FromFiles.h:32
edm::InputFileCatalog::fileNames
std::vector< std::string > fileNames(unsigned iCatalog) const
Definition: InputFileCatalog.cc:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::InputFileCatalog::logicalFileNames
std::vector< std::string > const & logicalFileNames() const
Definition: InputFileCatalog.h:40
edm::FromFiles::fileIndex_
size_t fileIndex_
Definition: FromFiles.h:33
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27