CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
KalmanVertexFitter Class Reference

#include <KalmanVertexFitter.h>

Inheritance diagram for KalmanVertexFitter:
VertexFitter< 5 >

Public Types

typedef CachingVertex
< 5 >::RefCountedVertexTrack 
RefCountedVertexTrack
 

Public Member Functions

KalmanVertexFitterclone () const
 
 KalmanVertexFitter (bool useSmoothing=false)
 
 KalmanVertexFitter (const edm::ParameterSet &pSet, bool useSmoothing=false)
 
 KalmanVertexFitter (const KalmanVertexFitter &other)
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks) const
 
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks) const
 
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &linPoint) const
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) const
 
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
 
virtual ~KalmanVertexFitter ()
 
- Public Member Functions inherited from VertexFitter< 5 >
virtual CachingVertex< Nvertex (const std::vector< typename CachingVertex< N >::RefCountedVertexTrack > &tracks) const =0
 
virtual CachingVertex< Nvertex (const std::vector< typename CachingVertex< N >::RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const =0
 
virtual CachingVertex< Nvertex (const std::vector< typename CachingVertex< N >::RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const =0
 
 VertexFitter ()
 
virtual ~VertexFitter ()
 

Private Member Functions

edm::ParameterSet defaultParameters () const
 
void setup (const edm::ParameterSet &pSet, bool useSmoothing)
 

Private Attributes

const SequentialVertexFitter< 5 > * theSequentialFitter
 

Detailed Description

Least-squares vertex fitter implemented in the Kalman Filter formalism 
Fits vertex position and, if smoothing is requested at construction, 
constrains track parameters at the vertex. 
A beam spot constraint can also be specified in form of a 3D point 
and a 3D matrix describing a Gaussian beam spread. 

References: 

`Vertex fitting with the Kalman filter formalism', T.speer, K.Prokofiev, R.Fruehwirth, CMS IN 2003/008
T.Speer, K.Prokofiev, R.Fruhwirth, W.Waltenberger, P.Vanlaer, "Vertex Fitting in the CMS Tracker", CMS Note 2006/032
P.Billoir, S.Qian, "Fast vertex fitting...", NIM A311 (1992) 139.
R.Fruhwirth, R.Kubinec, W.Mitaroff, M.Regler, Comp. Physics Comm. 96, 189 (1996)
P.Avery, lectures on track and vertex fitting"

Definition at line 22 of file KalmanVertexFitter.h.

Member Typedef Documentation

Definition at line 54 of file KalmanVertexFitter.h.

Constructor & Destructor Documentation

KalmanVertexFitter::KalmanVertexFitter ( bool  useSmoothing = false)

The constructor, setting everything up to have a VertexFitter using the Kalman algorithm.

Parameters
useSmoothingSpecifies whether the tracks should be refit or not.

Definition at line 11 of file KalmanVertexFitter.cc.

References defaultParameters(), and setup().

Referenced by clone().

12 {
14  setup(pSet, useSmoothing);
15 }
edm::ParameterSet defaultParameters() const
void setup(const edm::ParameterSet &pSet, bool useSmoothing)
KalmanVertexFitter::KalmanVertexFitter ( const edm::ParameterSet pSet,
bool  useSmoothing = false 
)

Same as above, using a ParameterSet to set the convergence criteria

Definition at line 17 of file KalmanVertexFitter.cc.

References setup().

18 {
19  setup(pSet, useSmoothing);
20 }
void setup(const edm::ParameterSet &pSet, bool useSmoothing)
KalmanVertexFitter::KalmanVertexFitter ( const KalmanVertexFitter other)
inline

Definition at line 39 of file KalmanVertexFitter.h.

39  :
const SequentialVertexFitter< 5 > * theSequentialFitter
SequentialVertexFitter * clone() const
virtual KalmanVertexFitter::~KalmanVertexFitter ( )
inlinevirtual

Definition at line 42 of file KalmanVertexFitter.h.

References theSequentialFitter.

43  {
44  delete theSequentialFitter;
45  }
const SequentialVertexFitter< 5 > * theSequentialFitter

Member Function Documentation

KalmanVertexFitter* KalmanVertexFitter::clone ( void  ) const
inlinevirtual

Fit vertex out of a VertexSeed

Implements VertexFitter< 5 >.

Definition at line 47 of file KalmanVertexFitter.h.

References KalmanVertexFitter().

48  {
49  return new KalmanVertexFitter(* this);
50  }
KalmanVertexFitter(bool useSmoothing=false)
edm::ParameterSet KalmanVertexFitter::defaultParameters ( ) const
private

Definition at line 44 of file KalmanVertexFitter.cc.

References edm::ParameterSet::addParameter().

Referenced by KalmanVertexFitter().

45 {
46  edm::ParameterSet pSet;
47  pSet.addParameter<double>("maxDistance", 0.01);
48  pSet.addParameter<int>("maxNbrOfIterations", 10); //10
49  return pSet;
50 }
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:142
void KalmanVertexFitter::setup ( const edm::ParameterSet pSet,
bool  useSmoothing 
)
private
virtual CachingVertex<5> KalmanVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks) const
inlinevirtual
virtual CachingVertex<5> KalmanVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks) const
inlinevirtual

Fit vertex out of a set of VertexTracks

Definition at line 67 of file KalmanVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

68  {
70  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
const SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> KalmanVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const reco::BeamSpot spot 
) const
inlinevirtual

Definition at line 73 of file KalmanVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

75  {
76  return theSequentialFitter->vertex(tracks, spot );
77  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
const SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> KalmanVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint linPoint 
) const
inlinevirtual

Fit vertex out of a set of RecTracks. Uses the specified linearization point.

Implements VertexFitter< 5 >.

Definition at line 84 of file KalmanVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

86  {
87  return theSequentialFitter->vertex(tracks, linPoint);
88  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
const SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> KalmanVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
inlinevirtual

Fit vertex out of a set of RecTracks. Uses the specified point as both the linearization point AND as prior estimate of the vertex position. The error is used for the weight of the prior estimate.

Implements VertexFitter< 5 >.

Definition at line 96 of file KalmanVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

99  {
100  return theSequentialFitter->vertex(tracks, priorPos, priorError);
101  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
const SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> KalmanVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const reco::BeamSpot beamSpot 
) const
inlinevirtual

Fit vertex out of a set of TransientTracks. The specified BeamSpot will be used as priot, but NOT for the linearization. The specified LinearizationPointFinder will be used to find the linearization point.

Implements VertexFitter< 5 >.

Definition at line 108 of file KalmanVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

109  {
110  return theSequentialFitter->vertex(tracks, beamSpot);
111  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
const SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> KalmanVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
inlinevirtual

Fit vertex out of a set of VertexTracks. Uses the specified point and error as the prior estimate of the vertex. This position is not used to relinearize the tracks.

Definition at line 120 of file KalmanVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

123  {
124  return theSequentialFitter->vertex(tracks, priorPos, priorError);
125  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
const SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39

Member Data Documentation

const SequentialVertexFitter<5>* KalmanVertexFitter::theSequentialFitter
private

Definition at line 137 of file KalmanVertexFitter.h.

Referenced by setup(), vertex(), and ~KalmanVertexFitter().