CMS 3D CMS Logo

EDProducerAdaptorBase.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FWCore/Framework
4 // Class : edm::stream::EDProducerAdaptorBase
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Chris Jones
10 // Created: Fri, 02 Aug 2013 21:43:44 GMT
11 //
12 
13 // system include files
14 
15 // user include files
28 
29 using namespace edm::stream;
30 namespace edm {
31  namespace stream {
32 
33  //
34  // constants, enums and typedefs
35  //
36 
37  //
38  // static data member definitions
39  //
40 
41  //
42  // constructors and destructor
43  //
45 
47  EventSetupImpl const& ci,
48  ActivityRegistry* act,
49  ModuleCallingContext const* mcc) {
50  assert(ep.streamID() < m_streamModules.size());
51  auto mod = m_streamModules[ep.streamID()];
52  Event e(ep, moduleDescription(), mcc);
53  e.setConsumer(mod);
54  e.setProducer(mod, &mod->previousParentage_, &mod->gotBranchIDsFromAcquire_);
55  EventSignalsSentry sentry(act, mcc);
56  const EventSetup c{
57  ci, static_cast<unsigned int>(Transition::Event), mod->esGetTokenIndices(Transition::Event), false};
58  mod->produce(e, c);
59  commit(e, &mod->previousParentageId_);
60  return true;
61  }
62 
64  EventSetupImpl const& ci,
65  ActivityRegistry* act,
66  ModuleCallingContext const* mcc,
68  assert(ep.streamID() < m_streamModules.size());
69  auto mod = m_streamModules[ep.streamID()];
70  Event e(ep, moduleDescription(), mcc);
71  e.setConsumer(mod);
72  e.setProducerForAcquire(mod, nullptr, mod->gotBranchIDsFromAcquire_);
73  EventAcquireSignalsSentry sentry(act, mcc);
74  const EventSetup c{
75  ci, static_cast<unsigned int>(Transition::Event), mod->esGetTokenIndices(Transition::Event), false};
76  mod->doAcquire_(e, c, holder);
77  }
78 
80  } // namespace stream
81 } // namespace edm
edm::stream::EDProducerAdaptorBase::doAcquire
void doAcquire(EventPrincipal const &, EventSetupImpl const &, ActivityRegistry *, ModuleCallingContext const *, WaitingTaskWithArenaHolder &)
Definition: EDProducerAdaptorBase.cc:63
edm::EventSetupImpl
Definition: EventSetupImpl.h:44
LuminosityBlock.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::Transition::Event
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
mod
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
edm::stream::EDProducerAdaptorBase::doEvent
bool doEvent(EventPrincipal const &, EventSetupImpl const &, ActivityRegistry *, ModuleCallingContext const *)
Definition: EDProducerAdaptorBase.cc:46
cms::cuda::assert
assert(be >=bs)
EventSignalsSentry.h
ProducingModuleAdaptorBase.cc
edm::WaitingTaskWithArenaHolder
Definition: WaitingTaskWithArenaHolder.h:31
edm::EventPrincipal
Definition: EventPrincipal.h:46
EventPrincipal.h
edm::ActivityRegistry
Definition: ActivityRegistry.h:132
Run.h
EDProducerAdaptorBase.h
Event.h
RunPrincipal.h
edm::EventAcquireSignalsSentry
Definition: EventAcquireSignalsSentry.h:29
edm::EventSetup
Definition: EventSetup.h:57
edm::stream::ProducingModuleAdaptorBase
Definition: Event.h:70
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
LuminosityBlockPrincipal.h
edm::EventSignalsSentry
Definition: EventSignalsSentry.h:29
EventAcquireSignalsSentry.h
edm::stream::EDProducerAdaptorBase::EDProducerAdaptorBase
EDProducerAdaptorBase()
Definition: EDProducerAdaptorBase.cc:44
EventSetup.h
EDProducerBase.h
edm::stream
Definition: DQMEDAnalyzer.h:13
edm::Event
Definition: Event.h:73
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29