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
27 
28 
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  {
47  }
48 
49  bool
51  ActivityRegistry* act,
52  ModuleCallingContext const* mcc) {
53  assert(ep.streamID()<m_streamModules.size());
54  auto mod = m_streamModules[ep.streamID()];
55  Event e(ep, moduleDescription(), mcc);
56  e.setConsumer(mod);
57  e.setProducer(mod,
58  &mod->previousParentage_,
59  &mod->gotBranchIDsFromAcquire_);
60  EventSignalsSentry sentry(act,mcc);
61  mod->produce(e, c);
62  commit(e, &mod->previousParentageId_);
63  return true;
64  }
65 
66  void
68  ActivityRegistry* act,
69  ModuleCallingContext const* mcc,
71  assert(ep.streamID()<m_streamModules.size());
72  auto mod = m_streamModules[ep.streamID()];
73  Event e(ep, moduleDescription(), mcc);
74  e.setConsumer(mod);
76  nullptr,
77  mod->gotBranchIDsFromAcquire_);
78  EventAcquireSignalsSentry sentry(act,mcc);
79  mod->doAcquire_(e, c, holder);
80  }
81 
83  }
84 }
85 
void setProducerForAcquire(ProducerBase const *iProd, std::vector< BranchID > *previousParentage, std::vector< BranchID > &gotBranchIDsFromAcquire)
Definition: Event.cc:90
bool doEvent(EventPrincipal const &, EventSetup const &, ActivityRegistry *, ModuleCallingContext const *)
void setConsumer(EDConsumerBase const *iConsumer)
Definition: Event.cc:42
void doAcquire(EventPrincipal const &, EventSetup const &, ActivityRegistry *, ModuleCallingContext const *, WaitingTaskWithArenaHolder &)
StreamID streamID() const
void setProducer(ProducerBase const *iProd, std::vector< BranchID > *previousParentage, std::vector< BranchID > *gotBranchIDsFromAcquire=0)
Definition: Event.cc:66
HLT enums.
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4