FWCore
Modules
src
EmptySource.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
2
#include "
FWCore/Framework/interface/InputSourceMacros.h
"
3
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
4
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
5
#include "
FWCore/Framework/interface/InputSource.h
"
6
#include "
FWCore/Sources/interface/IDGeneratorSourceBase.h
"
7
8
namespace
edm
{
9
class
EmptySource
:
public
IDGeneratorSourceBase
<InputSource> {
10
public
:
11
explicit
EmptySource
(
ParameterSet
const
&,
InputSourceDescription
const
&);
12
~EmptySource
()
override
;
13
static
void
fillDescriptions
(
ConfigurationDescriptions
& descriptions);
14
15
private
:
16
bool
setRunAndEventInfo
(
EventID
&
id
,
TimeValue_t
&
time
,
edm::EventAuxiliary::ExperimentType
&)
override
;
17
void
readEvent_
(
edm::EventPrincipal
&)
override
;
18
};
19
20
EmptySource::EmptySource
(
ParameterSet
const
&
pset
,
InputSourceDescription
const
& desc)
21
:
IDGeneratorSourceBase
<
InputSource
>(
pset
, desc,
false
) {}
22
23
EmptySource::~EmptySource
() {}
24
25
bool
EmptySource::setRunAndEventInfo
(
EventID
&,
TimeValue_t
&,
edm::EventAuxiliary::ExperimentType
&) {
return
true
; }
26
27
void
EmptySource::readEvent_
(
edm::EventPrincipal
&
e
) {
28
doReadEvent
(
e
, [](
auto
const
&) {});
29
}
30
31
void
EmptySource::fillDescriptions
(
ConfigurationDescriptions
& descriptions) {
32
ParameterSetDescription
desc;
33
desc.
setComment
(
"Creates runs, lumis and events containing no products."
);
34
IDGeneratorSourceBase<InputSource>::fillDescription
(desc);
35
descriptions.
add
(
"source"
, desc);
36
}
37
}
// namespace edm
38
39
using
edm::EmptySource
;
40
DEFINE_FWK_INPUT_SOURCE
(
EmptySource
);
ConfigurationDescriptions.h
funct::false
false
Definition:
Factorize.h:34
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::EmptySource::~EmptySource
~EmptySource() override
Definition:
EmptySource.cc:23
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
edm::EmptySource
Definition:
EmptySource.cc:9
edm::InputSourceDescription
Definition:
InputSourceDescription.h:20
edm::IDGeneratorSourceBase
Definition:
IDGeneratorSourceBase.h:24
edm::EmptySource::EmptySource
EmptySource(ParameterSet const &, InputSourceDescription const &)
Definition:
EmptySource.cc:20
edm::EventPrincipal
Definition:
EventPrincipal.h:46
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
edm::IDGeneratorSourceBase< InputSource >::doReadEvent
void doReadEvent(EventPrincipal &eventPrincipal, F &&f)
Definition:
IDGeneratorSourceBase.h:45
DEFINE_FWK_INPUT_SOURCE
#define DEFINE_FWK_INPUT_SOURCE(type)
Definition:
InputSourceMacros.h:8
edm::EmptySource::setRunAndEventInfo
bool setRunAndEventInfo(EventID &id, TimeValue_t &time, edm::EventAuxiliary::ExperimentType &) override
Definition:
EmptySource.cc:25
edm::EmptySource::readEvent_
void readEvent_(edm::EventPrincipal &) override
Definition:
EmptySource.cc:27
ParameterSetDescription.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::ParameterSetDescription::setComment
void setComment(std::string const &value)
Definition:
ParameterSetDescription.cc:33
edm::EmptySource::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition:
EmptySource.cc:31
InputSourceMacros.h
Frameworkfwd.h
InputSource.h
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition:
EventAuxiliary.h:18
IDGeneratorSourceBase.h
edm::InputSource
Definition:
InputSource.h:76
ntuplemaker.time
time
Definition:
ntuplemaker.py:310
edm::EventID
Definition:
EventID.h:31
edm::IDGeneratorSourceBase::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition:
IDGeneratorSourceBase.cc:263
edm::TimeValue_t
unsigned long long TimeValue_t
Definition:
Timestamp.h:28
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16