Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
RecoAlgos
plugins
CandKinematicVertexFitter.h
Go to the documentation of this file.
1
#ifndef RecoAlgos_CandKalmanVertexFitter_h
2
#define RecoAlgos_CandKalmanVertexFitter_h
3
#include "
CommonTools/UtilAlgos/interface/EventSetupInitTrait.h
"
4
#include "
PhysicsTools/RecoUtils/interface/CandKinematicVertexFitter.h
"
5
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
6
#include "
SimGeneral/HepPDTRecord/interface/ParticleDataTable.h
"
7
#include "
FWCore/Framework/interface/ESHandle.h
"
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
10
namespace
reco
{
11
namespace
modules
{
12
struct
CandKinematicVertexFitterEventSetupInit
{
13
static
void
init
(
CandKinematicVertexFitter
& fitter,
14
const
edm::Event
& evt,
15
const
edm::EventSetup
& es) {
16
edm::ESHandle<MagneticField>
h
;
17
es.
get
<
IdealMagneticFieldRecord
>().
get
(h);
18
fitter.
set
(h.
product
());
19
edm::ESHandle<ParticleDataTable>
pdt;
20
es.
getData
(pdt);
21
fitter.
set
(pdt.
product
());
22
}
23
};
24
25
template
<>
26
struct
EventSetupInit
<
CandKinematicVertexFitter
> {
27
typedef
CandKinematicVertexFitterEventSetupInit
type
;
28
};
29
}
30
}
31
32
#endif
edmConvertToStreamModule.modules
list modules
Definition:
edmConvertToStreamModule.py:120
EventSetup.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
reco::modules::EventSetupInit< CandKinematicVertexFitter >::type
CandKinematicVertexFitterEventSetupInit type
Definition:
CandKinematicVertexFitter.h:27
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
edm::EventSetup::getData
void getData(T &iHolder) const
Definition:
EventSetup.h:78
ParticleDataTable.h
reco::modules::CandKinematicVertexFitterEventSetupInit::init
static void init(CandKinematicVertexFitter &fitter, const edm::Event &evt, const edm::EventSetup &es)
Definition:
CandKinematicVertexFitter.h:13
edm::ESHandle< MagneticField >
ESHandle.h
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
edm::EventSetup
Definition:
EventSetup.h:44
CandKinematicVertexFitter.h
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
reco::modules::EventSetupInit
Definition:
EventSetupInitTrait.h:35
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
CandKinematicVertexFitter::set
void set(const MagneticField *bField)
Definition:
CandKinematicVertexFitter.h:32
reco::modules::CandKinematicVertexFitterEventSetupInit
Definition:
CandKinematicVertexFitter.h:12
edm::Event
Definition:
Event.h:59
EventSetupInitTrait.h
CandKinematicVertexFitter
Definition:
CandKinematicVertexFitter.h:23
IdealMagneticFieldRecord.h
Generated for CMSSW Reference Manual by
1.8.5