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,
const
edm::Event
& evt,
const
edm::EventSetup
& es) {
14
edm::ESHandle<MagneticField>
h
;
15
es.
get
<
IdealMagneticFieldRecord
>().
get
(
h
);
16
fitter.
set
(
h
.product());
17
edm::ESHandle<ParticleDataTable>
pdt;
18
es.
getData
(pdt);
19
fitter.
set
(pdt.
product
());
20
}
21
};
22
23
template
<>
24
struct
EventSetupInit
<
CandKinematicVertexFitter
> {
25
typedef
CandKinematicVertexFitterEventSetupInit
type
;
26
};
27
}
// namespace modules
28
}
// namespace reco
29
30
#endif
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
CandKinematicVertexFitter.h
CandKinematicVertexFitter::set
void set(const MagneticField *bField)
Definition:
CandKinematicVertexFitter.h:31
ESHandle.h
modules
Definition:
MuonCleanerBySegments.cc:35
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
reco::modules::EventSetupInit
Definition:
EventSetupInitTrait.h:33
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
EventSetupInitTrait.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:87
reco::modules::CandKinematicVertexFitterEventSetupInit::init
static void init(CandKinematicVertexFitter &fitter, const edm::Event &evt, const edm::EventSetup &es)
Definition:
CandKinematicVertexFitter.h:13
IdealMagneticFieldRecord.h
edm::ESHandle< MagneticField >
CandKinematicVertexFitter
Definition:
CandKinematicVertexFitter.h:24
h
ParticleDataTable.h
reco::modules::EventSetupInit< CandKinematicVertexFitter >::type
CandKinematicVertexFitterEventSetupInit type
Definition:
CandKinematicVertexFitter.h:25
edm::EventSetup
Definition:
EventSetup.h:58
reco::get
T get(const Candidate &c)
Definition:
component.h:60
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition:
EventSetup.h:127
EventSetup.h
edm::Event
Definition:
Event.h:73
reco::modules::CandKinematicVertexFitterEventSetupInit
Definition:
CandKinematicVertexFitter.h:12
Generated for CMSSW Reference Manual by
1.8.16