Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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/EventSignalsSentry.h
"
25
#include "
FWCore/Framework/src/stream/ProducingModuleAdaptorBase.cc
"
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
//
44
EDProducerAdaptorBase::EDProducerAdaptorBase
()
45
{
46
}
47
48
bool
49
EDProducerAdaptorBase::doEvent
(
EventPrincipal
const
& ep,
EventSetup
const
&
c
,
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
62
template
class
edm::stream::ProducingModuleAdaptorBase<edm::stream::EDProducerBase>
;
63
}
64
}
65
edm::stream::EDProducerAdaptorBase::EDProducerAdaptorBase
EDProducerAdaptorBase()
Definition:
EDProducerAdaptorBase.cc:44
EDProducerBase.h
edm::ModuleCallingContext
Definition:
ModuleCallingContext.h:30
Event.h
LuminosityBlockPrincipal.h
assert
assert(m_qm.get())
RunPrincipal.h
edm::EventPrincipal
Definition:
EventPrincipal.h:47
EventSignalsSentry.h
edm::EventSignalsSentry
Definition:
EventSignalsSentry.h:29
edm::Event::setConsumer
void setConsumer(EDConsumerBase const *iConsumer)
Definition:
Event.cc:38
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
EventPrincipal.h
edm::stream::ProducingModuleAdaptorBase
Definition:
Event.h:63
edm::EventPrincipal::streamID
StreamID streamID() const
Definition:
EventPrincipal.h:127
edm::stream::EDProducerAdaptorBase::doEvent
bool doEvent(EventPrincipal const &ep, EventSetup const &c, ActivityRegistry *, ModuleCallingContext const *)
Definition:
EDProducerAdaptorBase.cc:49
edm::EventSetup
Definition:
EventSetup.h:45
Run.h
EDProducerAdaptorBase.h
ProducingModuleAdaptorBase.cc
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
LuminosityBlock.h
edm::Event
Definition:
Event.h:66
mod
T mod(const T &a, const T &b)
Definition:
ecalDccMap.h:4
edm::ActivityRegistry
Definition:
ActivityRegistry.h:87
Generated for CMSSW Reference Manual by
1.8.5