CMS 3D CMS Logo

ProducerSourceBase.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 ----------------------------------------------------------------------*/
3 
4 #include <cerrno>
5 
18 
19 namespace edm {
21  : IDGeneratorSourceBase<PuttableSourceBase>(pset, desc, realData) {}
22 
24 
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