Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Sources
interface
ExternalInputSource.h
Go to the documentation of this file.
1
#ifndef FWCore_Sources_ExternalInputSource_h
2
#define FWCore_Sources_ExternalInputSource_h
3
4
/*----------------------------------------------------------------------
5
----------------------------------------------------------------------*/
6
7
#include <memory>
8
#include <vector>
9
#include <string>
10
11
#include "
FWCore/Framework/interface/ConfigurableInputSource.h
"
12
#include "
FWCore/Catalog/interface/InputFileCatalog.h
"
13
14
namespace
edm {
15
class
ParameterSet
;
16
class
ParameterSetDescription
;
17
18
class
ExternalInputSource
:
public
ConfigurableInputSource
{
19
public
:
20
ExternalInputSource
(
ParameterSet
const
& pset,
InputSourceDescription
const
& desc,
bool
realData =
true
);
21
virtual
~ExternalInputSource
();
22
23
std::vector<std::string>
const
&
logicalFileNames
()
const
{
return
catalog_
.
logicalFileNames
();}
24
std::vector<std::string>
const
&
fileNames
()
const
{
return
catalog_
.
fileNames
();}
25
InputFileCatalog
&
catalog
() {
return
catalog_
;}
26
27
static
void
fillDescription
(
ParameterSetDescription
& desc);
28
29
protected
:
30
void
incrementFileIndex
() {++
fileIndex_
;}
31
32
private
:
33
virtual
size_t
fileIndex
()
const
{
return
fileIndex_
;}
34
35
size_t
fileIndex_
;
36
InputFileCatalog
catalog_
;
37
};
38
}
39
#endif
edm::ExternalInputSource::catalog
InputFileCatalog & catalog()
Definition:
ExternalInputSource.h:25
ParameterSetDescription
ParameterSet
Definition:
Functions.h:16
edm::ExternalInputSource::fileIndex_
size_t fileIndex_
Definition:
ExternalInputSource.h:35
edm::ExternalInputSource::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition:
ExternalInputSource.cc:15
edm::ConfigurableInputSource
Definition:
ConfigurableInputSource.h:19
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:50
edm::ExternalInputSource::~ExternalInputSource
virtual ~ExternalInputSource()
Definition:
ExternalInputSource.cc:12
edm::InputSourceDescription
Definition:
InputSourceDescription.h:17
edm::ExternalInputSource::fileIndex
virtual size_t fileIndex() const
Definition:
ExternalInputSource.h:33
edm::ExternalInputSource::incrementFileIndex
void incrementFileIndex()
Definition:
ExternalInputSource.h:30
edm::InputFileCatalog::logicalFileNames
std::vector< std::string > const & logicalFileNames() const
Definition:
InputFileCatalog.h:34
edm::InputFileCatalog::fileNames
std::vector< std::string > const & fileNames() const
Definition:
InputFileCatalog.h:35
InputFileCatalog.h
edm::ExternalInputSource::logicalFileNames
std::vector< std::string > const & logicalFileNames() const
Definition:
ExternalInputSource.h:23
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::ExternalInputSource
Definition:
ExternalInputSource.h:18
edm::ExternalInputSource::ExternalInputSource
ExternalInputSource(ParameterSet const &pset, InputSourceDescription const &desc, bool realData=true)
Definition:
ExternalInputSource.cc:6
edm::ExternalInputSource::fileNames
std::vector< std::string > const & fileNames() const
Definition:
ExternalInputSource.h:24
edm::InputFileCatalog
Definition:
InputFileCatalog.h:28
edm::ExternalInputSource::catalog_
InputFileCatalog catalog_
Definition:
ExternalInputSource.h:36
ConfigurableInputSource.h
Generated for CMSSW Reference Manual by
1.8.5