CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
26 
27 
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  {
46  }
47 
48  bool
50  ActivityRegistry* act,
51  ModuleCallingContext const* mcc) {
52  assert(ep.streamID()<m_streamModules.size());
53  auto mod = m_streamModules[ep.streamID()];
54  Event e(ep, moduleDescription(), mcc);
55  e.setConsumer(mod);
56  EventSignalsSentry sentry(act,mcc);
57  mod->produce(e, c);
58  commit(e,&mod->previousParentage_, &mod->previousParentageId_);
59  return true;
60  }
61 
63  }
64 }
65 
assert(m_qm.get())
void setConsumer(EDConsumerBase const *iConsumer)
Definition: Event.cc:37
StreamID streamID() const
bool doEvent(EventPrincipal &ep, EventSetup const &c, ActivityRegistry *, ModuleCallingContext const *)
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4