Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Sources
interface
EDInputSource.h
Go to the documentation of this file.
1
#ifndef FWCore_Sources_EDInputSource_h
2
#define FWCore_Sources_EDInputSource_h
3
4
/*----------------------------------------------------------------------
5
----------------------------------------------------------------------*/
6
7
#include "
DataFormats/Provenance/interface/LuminosityBlockID.h
"
8
#include "
DataFormats/Provenance/interface/RunID.h
"
9
#include "
FWCore/Catalog/interface/InputFileCatalog.h
"
10
#include "
FWCore/Framework/interface/InputSource.h
"
11
#include <vector>
12
#include <string>
13
14
namespace
edm {
15
struct
InputSourceDescription;
16
class
ParameterSet
;
17
class
ParameterSetDescription
;
18
19
class
EDInputSource
:
public
InputSource
{
20
public
:
21
explicit
EDInputSource
(
ParameterSet
const
& pset,
InputSourceDescription
const
& desc);
22
virtual
~EDInputSource
();
23
24
std::vector<std::string>
const
&
logicalFileNames
(
int
n
= 0)
const
{
25
return
n
?
secondaryCatalog_
.
logicalFileNames
() :
catalog_
.
logicalFileNames
();
26
}
27
std::vector<std::string>
const
&
fileNames
(
int
n
= 0)
const
{
28
return
n
?
secondaryCatalog_
.
fileNames
() :
catalog_
.
fileNames
();
29
}
30
std::vector<FileCatalogItem>
const
&
fileCatalogItems
(
int
n
= 0)
const
{
31
return
n
?
secondaryCatalog_
.
fileCatalogItems
() :
catalog_
.
fileCatalogItems
();
32
}
33
InputFileCatalog
&
catalog
(
int
n
= 0) {
return
n
?
secondaryCatalog_
:
catalog_
;}
34
35
static
void
fillDescription
(
ParameterSetDescription
& desc);
36
37
private
:
38
virtual
void
setRun
(
RunNumber_t
);
39
virtual
void
setLumi
(
LuminosityBlockNumber_t
lb);
40
41
InputFileCatalog
catalog_
;
42
InputFileCatalog
secondaryCatalog_
;
43
};
44
}
45
#endif
LuminosityBlockID.h
RunID.h
ParameterSetDescription
edm::EDInputSource::fileNames
std::vector< std::string > const & fileNames(int n=0) const
Definition:
EDInputSource.h:27
ParameterSet
Definition:
Functions.h:16
edm::EDInputSource::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition:
EDInputSource.cc:47
edm::EDInputSource
Definition:
EDInputSource.h:19
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition:
EventID.h:31
InputSource.h
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:50
edm::EDInputSource::EDInputSource
EDInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
Definition:
EDInputSource.cc:17
edm::EDInputSource::catalog_
InputFileCatalog catalog_
Definition:
EDInputSource.h:41
edm::InputSourceDescription
Definition:
InputSourceDescription.h:17
edm::EDInputSource::catalog
InputFileCatalog & catalog(int n=0)
Definition:
EDInputSource.h:33
edm::InputFileCatalog::logicalFileNames
std::vector< std::string > const & logicalFileNames() const
Definition:
InputFileCatalog.h:34
edm::EDInputSource::fileCatalogItems
std::vector< FileCatalogItem > const & fileCatalogItems(int n=0) const
Definition:
EDInputSource.h:30
edm::InputFileCatalog::fileNames
std::vector< std::string > const & fileNames() const
Definition:
InputFileCatalog.h:35
InputFileCatalog.h
n
int n
Definition:
DTDataIntegrityTask.cc:33
edm::EDInputSource::setLumi
virtual void setLumi(LuminosityBlockNumber_t lb)
Definition:
EDInputSource.cc:40
edm::EDInputSource::secondaryCatalog_
InputFileCatalog secondaryCatalog_
Definition:
EDInputSource.h:42
edm::InputSource
Definition:
InputSource.h:68
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::EDInputSource::setRun
virtual void setRun(RunNumber_t)
Definition:
EDInputSource.cc:33
edm::RunNumber_t
unsigned int RunNumber_t
Definition:
EventRange.h:32
edm::EDInputSource::logicalFileNames
std::vector< std::string > const & logicalFileNames(int n=0) const
Definition:
EDInputSource.h:24
edm::EDInputSource::~EDInputSource
virtual ~EDInputSource()
Definition:
EDInputSource.cc:29
edm::InputFileCatalog
Definition:
InputFileCatalog.h:28
edm::InputFileCatalog::fileCatalogItems
std::vector< FileCatalogItem > const & fileCatalogItems() const
Definition:
InputFileCatalog.h:33
Generated for CMSSW Reference Manual by
1.8.5