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
edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent
void doReadEvent(EventPrincipal &eventPrincipal, F &&f)
Definition:
IDGeneratorSourceBase.h:45
ProductResolverIndexHelper.h
funct::false
false
Definition:
Factorize.h:29
edm::ProducerSourceBase::readEvent_
void readEvent_(EventPrincipal &eventPrincipal) override
Definition:
ProducerSourceBase.cc:25
Event.h
edm::EventPrincipal
Definition:
EventPrincipal.h:48
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
edm::ProducerSourceBase::~ProducerSourceBase
~ProducerSourceBase() noexcept(false) override
Definition:
ProducerSourceBase.cc:23
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
ExceptionHelpers.h
ParameterSet.h
edm::InputSourceDescription
Definition:
InputSourceDescription.h:21
EventPrincipal.h
ParameterSetDescription.h
edm::ProducerSourceBase::ProducerSourceBase
ProducerSourceBase(ParameterSet const &pset, InputSourceDescription const &desc, bool realData)
Definition:
ProducerSourceBase.cc:20
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
edm::PuttableSourceBase
Definition:
PuttableSourceBase.h:30
Run.h
ProducerSourceBase.h
LuminosityBlockAuxiliary.h
edm::IDGeneratorSourceBase
Definition:
IDGeneratorSourceBase.h:24
edm::InputSource::moduleDescription
ModuleDescription const & moduleDescription() const
Accessor for 'module' description.
Definition:
InputSource.h:189
LuminosityBlock.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ProducerSourceBase::produce
virtual void produce(Event &e)=0
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::Event
Definition:
Event.h:73
RunAuxiliary.h
ProductRegistry.h
Generated for CMSSW Reference Manual by
1.8.14