Main Page
Namespaces
Classes
Package Documentation
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
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition:
L1TUtmAlgorithmRcd.h:4
EventSetup.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
reco::modules::EventSetupInit< CandKinematicVertexFitter >::type
CandKinematicVertexFitterEventSetupInit type
Definition:
CandKinematicVertexFitter.h:27
edm::EventSetup::getData
void getData(T &iHolder) const
Definition:
EventSetup.h:79
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
edm::EventSetup
Definition:
EventSetup.h:45
CandKinematicVertexFitter.h
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:56
reco::modules::EventSetupInit
Definition:
EventSetupInitTrait.h:35
CandKinematicVertexFitter::set
void set(const MagneticField *bField)
Definition:
CandKinematicVertexFitter.h:32
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:43
reco::modules::CandKinematicVertexFitterEventSetupInit
Definition:
CandKinematicVertexFitter.h:12
edm::Event
Definition:
Event.h:66
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
EventSetupInitTrait.h
CandKinematicVertexFitter
Definition:
CandKinematicVertexFitter.h:23
IdealMagneticFieldRecord.h
modules
Definition:
ZHLTMatchFilter.cc:17
Generated for CMSSW Reference Manual by
1.8.11