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
25 
26 
27 
28 using namespace edm::stream;
29 namespace edm {
30  namespace stream {
31 
32  //
33  // constants, enums and typedefs
34  //
35 
36  //
37  // static data member definitions
38  //
39 
40  //
41  // constructors and destructor
42  //
44  {
45  }
46 
47  bool
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  mod->produce(e, c);
55  commit(e,&mod->previousParentage_, &mod->previousParentageId_);
56  return true;
57  }
58 
60  }
61 }
62 
bool doEvent(EventPrincipal &ep, EventSetup const &c, ModuleCallingContext const *)
void setConsumer(EDConsumerBase const *iConsumer)
Definition: Event.cc:40
StreamID streamID() const
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4