FWCore
Sources
src
ProducerSourceBase.cc
Go to the documentation of this file.
1
/*----------------------------------------------------------------------
2
----------------------------------------------------------------------*/
3
4
#include <cerrno>
5
6
#include "
DataFormats/Provenance/interface/LuminosityBlockAuxiliary.h
"
7
#include "
DataFormats/Provenance/interface/RunAuxiliary.h
"
8
#include "
DataFormats/Provenance/interface/ProductRegistry.h
"
9
#include "
DataFormats/Provenance/interface/ProductResolverIndexHelper.h
"
10
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
11
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
12
#include "
FWCore/Framework/interface/EventPrincipal.h
"
13
#include "
FWCore/Framework/interface/LuminosityBlock.h
"
14
#include "
FWCore/Framework/interface/Run.h
"
15
#include "
FWCore/Framework/interface/Event.h
"
16
#include "
FWCore/Framework/interface/ExceptionHelpers.h
"
17
#include "
FWCore/Sources/interface/ProducerSourceBase.h
"
18
19
namespace
edm
{
20
ProducerSourceBase::ProducerSourceBase
(
ParameterSet
const
&
pset
,
InputSourceDescription
const
& desc,
bool
realData)
21
:
IDGeneratorSourceBase
<
PuttableSourceBase
>(
pset
, desc, realData) {}
22
23
ProducerSourceBase::~ProducerSourceBase
() noexcept(
false
) {}
24
25
void
ProducerSourceBase::readEvent_
(
EventPrincipal
& eventPrincipal) {
26
doReadEvent
(eventPrincipal, [
this
](
auto
& eventPrincipal) {
27
Event
e
(eventPrincipal,
moduleDescription
(),
nullptr
);
28
e
.setProducer(
this
,
nullptr
);
29
produce
(
e
);
30
e
.commit_(std::vector<ProductResolverIndex>());
31
});
32
}
33
}
// namespace edm
ProductResolverIndexHelper.h
funct::false
false
Definition:
Factorize.h:34
LuminosityBlock.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::InputSourceDescription
Definition:
InputSourceDescription.h:20
edm::IDGeneratorSourceBase
Definition:
IDGeneratorSourceBase.h:24
ProductRegistry.h
edm::EventPrincipal
Definition:
EventPrincipal.h:46
edm::InputSource::moduleDescription
ModuleDescription const & moduleDescription() const
Accessor for 'module' description.
Definition:
InputSource.h:198
edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent
void doReadEvent(EventPrincipal &eventPrincipal, F &&f)
Definition:
IDGeneratorSourceBase.h:45
EventPrincipal.h
Run.h
edm::ProducerSourceBase::readEvent_
void readEvent_(EventPrincipal &eventPrincipal) override
Definition:
ProducerSourceBase.cc:25
ParameterSetDescription.h
LuminosityBlockAuxiliary.h
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
ExceptionHelpers.h
RunAuxiliary.h
ParameterSet.h
edm::PuttableSourceBase
Definition:
PuttableSourceBase.h:30
edm::Event
Definition:
Event.h:73
edm::ProducerSourceBase::ProducerSourceBase
ProducerSourceBase(ParameterSet const &pset, InputSourceDescription const &desc, bool realData)
Definition:
ProducerSourceBase.cc:20
edm::ProducerSourceBase::produce
virtual void produce(Event &e)=0
edm::ProducerSourceBase::~ProducerSourceBase
~ProducerSourceBase() noexcept(false) override
Definition:
ProducerSourceBase.cc:23
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
ProducerSourceBase.h
Generated for CMSSW Reference Manual by
1.8.16