Main Page
Namespaces
Classes
Package Documentation
GIT Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Framework
src
stream
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
16
#include "
FWCore/Framework/interface/stream/EDProducerAdaptorBase.h
"
17
#include "
FWCore/Framework/interface/stream/EDProducerBase.h
"
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/LuminosityBlock.h
"
20
#include "
FWCore/Framework/interface/Run.h
"
21
#include "
FWCore/Framework/interface/EventPrincipal.h
"
22
#include "
FWCore/Framework/interface/LuminosityBlockPrincipal.h
"
23
#include "
FWCore/Framework/interface/RunPrincipal.h
"
24
#include "
FWCore/Framework/src/stream/ProducingModuleAdaptorBase.cc
"
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
//
43
EDProducerAdaptorBase::EDProducerAdaptorBase
()
44
{
45
}
46
47
bool
48
EDProducerAdaptorBase::doEvent
(
EventPrincipal
& ep,
EventSetup
const
&
c
,
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
59
template
class
edm::stream::ProducingModuleAdaptorBase<edm::stream::EDProducerBase>
;
60
}
61
}
62
edm::stream::EDProducerAdaptorBase::EDProducerAdaptorBase
EDProducerAdaptorBase()
Definition:
EDProducerAdaptorBase.cc:43
edm::stream::EDProducerAdaptorBase::doEvent
bool doEvent(EventPrincipal &ep, EventSetup const &c, ModuleCallingContext const *)
Definition:
EDProducerAdaptorBase.cc:48
EDProducerBase.h
edm::ModuleCallingContext
Definition:
ModuleCallingContext.h:30
Event.h
LuminosityBlockPrincipal.h
RunPrincipal.h
edm::EventPrincipal
Definition:
EventPrincipal.h:45
edm::Event::setConsumer
void setConsumer(EDConsumerBase const *iConsumer)
Definition:
Event.cc:40
EventPrincipal.h
edm::stream::ProducingModuleAdaptorBase
Definition:
Event.h:59
edm::EventPrincipal::streamID
StreamID streamID() const
Definition:
EventPrincipal.h:123
edm::EventSetup
Definition:
EventSetup.h:44
Run.h
EDProducerAdaptorBase.h
trackerHits.c
tuple c
Definition:
trackerHits.py:26
ProducingModuleAdaptorBase.cc
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
LuminosityBlock.h
edm::Event
Definition:
Event.h:62
mod
T mod(const T &a, const T &b)
Definition:
ecalDccMap.h:4
Generated for CMSSW Reference Manual by
1.8.5