Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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,
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
}
20
};
21
22
template
<
typename
Fitter>
23
struct
EventSetupInit
<
CandCommonVertexFitter
<
Fitter
> > {
24
typedef
CandVertexFitterEventSetupInit<Fitter>
type
;
25
};
26
}
27
}
28
29
#endif
reco::modules::CandVertexFitterEventSetupInit
Definition:
CandCommonVertexFitter.h:12
edmConvertToStreamModule.modules
list modules
Definition:
edmConvertToStreamModule.py:120
EventSetup.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
reco::modules::EventSetupInit< CandCommonVertexFitter< Fitter > >::type
CandVertexFitterEventSetupInit< Fitter > type
Definition:
CandCommonVertexFitter.h:24
reco::modules::CandVertexFitterEventSetupInit::init
static void init(CandCommonVertexFitter< Fitter > &fitter, const edm::Event &evt, const edm::EventSetup &es)
Definition:
CandCommonVertexFitter.h:13
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:106
CandCommonVertexFitter.h
CandCommonVertexFitter
Definition:
CandCommonVertexFitter.h:44
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:45
CandCommonVertexFitterBase::set
void set(const MagneticField *bField)
Definition:
CandCommonVertexFitter.h:22
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:56
reco::modules::EventSetupInit
Definition:
EventSetupInitTrait.h:35
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
HLT_25ns14e33_v1_cff.Fitter
tuple Fitter
Definition:
HLT_25ns14e33_v1_cff.py:1445
edm::Event
Definition:
Event.h:64
EventSetupInitTrait.h
IdealMagneticFieldRecord.h
Generated for CMSSW Reference Manual by
1.8.5