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
29 
30 using namespace edm::stream;
31 namespace edm {
32  namespace stream {
33 
34  //
35  // constants, enums and typedefs
36  //
37 
38  //
39  // static data member definitions
40  //
41 
42  //
43  // constructors and destructor
44  //
46 
48  ActivityRegistry* act,
49  ModuleCallingContext const* mcc) {
50  EventPrincipal const& ep = info.principal();
51  assert(ep.streamID() < m_streamModules.size());
52  auto mod = m_streamModules[ep.streamID()];
53  Event e(ep, moduleDescription(), mcc);
54  e.setConsumer(mod);
55  e.setProducer(mod, &mod->previousParentage_, &mod->gotBranchIDsFromAcquire_);
56  EventSignalsSentry sentry(act, mcc);
57  const EventSetup c{
58  info, static_cast<unsigned int>(Transition::Event), mod->esGetTokenIndices(Transition::Event), false};
59  mod->produce(e, c);
60  commit(e, &mod->previousParentageId_);
61  return true;
62  }
63 
65  ActivityRegistry* act,
66  ModuleCallingContext const* mcc,
68  EventPrincipal const& ep = info.principal();
69  assert(ep.streamID() < m_streamModules.size());
70  auto mod = m_streamModules[ep.streamID()];
71  Event e(ep, moduleDescription(), mcc);
72  e.setConsumer(mod);
73  e.setProducerForAcquire(mod, nullptr, mod->gotBranchIDsFromAcquire_);
74  EventAcquireSignalsSentry sentry(act, mcc);
75  const EventSetup c{
76  info, static_cast<unsigned int>(Transition::Event), mod->esGetTokenIndices(Transition::Event), false};
77  mod->doAcquire_(e, c, holder);
78  }
79 
81  } // namespace stream
82 } // namespace edm
edm::EventTransitionInfo
Definition: TransitionInfoTypes.h:26
edm::stream::EDProducerAdaptorBase::doAcquire
void doAcquire(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *, WaitingTaskWithArenaHolder &)
Definition: EDProducerAdaptorBase.cc:64
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
cms::cuda::assert
assert(be >=bs)
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
EventSignalsSentry.h
ProducingModuleAdaptorBase.cc
edm::WaitingTaskWithArenaHolder
Definition: WaitingTaskWithArenaHolder.h:31
edm::EventPrincipal
Definition: EventPrincipal.h:46
EventPrincipal.h
edm::ActivityRegistry
Definition: ActivityRegistry.h:133
Run.h
EDProducerAdaptorBase.h
Event.h
RunPrincipal.h
edm::EventAcquireSignalsSentry
Definition: EventAcquireSignalsSentry.h:29
edm::EventSetup
Definition: EventSetup.h:57
edm::stream::EDProducerAdaptorBase::doEvent
bool doEvent(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
Definition: EDProducerAdaptorBase.cc:47
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:45
EventSetup.h
EDProducerBase.h
edm::stream
Definition: DQMEDAnalyzer.h:13
TransitionInfoTypes.h
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