PhysicsTools
RecoAlgos
plugins
CandCommonVertexFitter.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/CandCommonVertexFitter.h
"
5
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
6
#include "
FWCore/Framework/interface/ESHandle.h
"
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
9
namespace
reco
{
10
namespace
modules
{
11
template
<
typename
Fitter>
12
struct
CandVertexFitterEventSetupInit
{
13
static
void
init
(
CandCommonVertexFitter<Fitter>
& 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
}
18
};
19
20
template
<
typename
Fitter>
21
struct
EventSetupInit
<
CandCommonVertexFitter
<
Fitter
> > {
22
typedef
CandVertexFitterEventSetupInit<Fitter>
type
;
23
};
24
}
// namespace modules
25
}
// namespace reco
26
27
#endif
CandCommonVertexFitter.h
ESHandle.h
modules
Definition:
MuonCleanerBySegments.cc:35
HLTSiStripMonitoring_cff.Fitter
Fitter
Definition:
HLTSiStripMonitoring_cff.py:207
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
reco::modules::EventSetupInit< CandCommonVertexFitter< Fitter > >::type
CandVertexFitterEventSetupInit< Fitter > type
Definition:
CandCommonVertexFitter.h:22
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:87
IdealMagneticFieldRecord.h
edm::ESHandle< MagneticField >
h
reco::modules::CandVertexFitterEventSetupInit::init
static void init(CandCommonVertexFitter< Fitter > &fitter, const edm::Event &evt, const edm::EventSetup &es)
Definition:
CandCommonVertexFitter.h:13
edm::EventSetup
Definition:
EventSetup.h:58
reco::get
T get(const Candidate &c)
Definition:
component.h:60
EventSetup.h
CandCommonVertexFitterBase::set
void set(const MagneticField *bField)
Definition:
CandCommonVertexFitter.h:24
CandCommonVertexFitter
Definition:
CandCommonVertexFitter.h:45
edm::Event
Definition:
Event.h:73
reco::modules::CandVertexFitterEventSetupInit
Definition:
CandCommonVertexFitter.h:12
Generated for CMSSW Reference Manual by
1.8.16