RecoVertex
BeamSpotProducer
interface
BeamSpotProducer.h
Go to the documentation of this file.
1
#ifndef BeamSpotProducer_BeamSpotProducer_h
2
#define BeamSpotProducer_BeamSpotProducer_h
3
15
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
16
#include "
FWCore/Framework/interface/Event.h
"
17
#include "
DataFormats/Common/interface/Handle.h
"
18
#include "
FWCore/Framework/interface/ESHandle.h
"
19
#include "
FWCore/Framework/interface/EventSetup.h
"
20
#include "
FWCore/Utilities/interface/ESGetToken.h
"
21
22
#include "
CondFormats/DataRecord/interface/BeamSpotObjectsRcd.h
"
23
#include "
CondFormats/BeamSpotObjects/interface/BeamSpotObjects.h
"
24
25
class
BeamSpotProducer
:
public
edm::stream::EDProducer
<> {
26
public
:
27
typedef
std::vector<edm::ParameterSet>
Parameters
;
28
30
explicit
BeamSpotProducer
(
const
edm::ParameterSet
& iConf);
32
~BeamSpotProducer
()
override
;
33
35
void
produce
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
override
;
36
37
private
:
38
edm::ESGetToken<BeamSpotObjects, BeamSpotObjectsRcd>
m_beamToken
;
39
};
40
41
#endif
Handle.h
ESHandle.h
BeamSpotProducer::m_beamToken
edm::ESGetToken< BeamSpotObjects, BeamSpotObjectsRcd > m_beamToken
Definition:
BeamSpotProducer.h:38
BeamSpotProducer::BeamSpotProducer
BeamSpotProducer(const edm::ParameterSet &iConf)
constructor
Definition:
BeamSpotProducer.cc:17
BeamSpotProducer
Definition:
BeamSpotProducer.h:25
EDProducer.h
BeamSpotProducer::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
produce a beam spot class
Definition:
BeamSpotProducer.cc:34
ESGetToken.h
BeamSpotObjects.h
BeamSpotObjectsRcd.h
BeamSpotProducer::~BeamSpotProducer
~BeamSpotProducer() override
destructor
Definition:
BeamSpotProducer.cc:27
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
BeamSpotProducer::Parameters
std::vector< edm::ParameterSet > Parameters
Definition:
BeamSpotProducer.h:27
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:58
edm::ESGetToken< BeamSpotObjects, BeamSpotObjectsRcd >
EventSetup.h
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16