CMS 3D CMS Logo

ConfigurableVertexFitter Class Reference

A VertexFitter whose concrete implementation (kalman filter, adaptive method, etc. More...

#include <RecoVertex/ConfigurableVertexReco/interface/ConfigurableVertexFitter.h>

Inheritance diagram for ConfigurableVertexFitter:

VertexFitter< 5 >

List of all members.

Public Types

typedef CachingVertex
< 5 >::RefCountedVertexTrack 
RefCountedVertexTrack

Public Member Functions

ConfigurableVertexFitterclone () const
 Fit vertex out of a VertexSeed.
 ConfigurableVertexFitter (const ConfigurableVertexFitter &o)
 ConfigurableVertexFitter (const edm::ParameterSet &)
CachingVertex< 5 > vertex (const vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
CachingVertex< 5 > vertex (const vector< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) const
 Fit vertex out of a set of TransientTracks.
CachingVertex< 5 > vertex (const vector< reco::TransientTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
 Fit vertex out of a set of TransientTracks.
CachingVertex< 5 > vertex (const vector< reco::TransientTrack > &tracks, const GlobalPoint &linPoint) const
 Fit vertex out of a set of TransientTracks.
CachingVertex< 5 > vertex (const vector< RefCountedVertexTrack > &tracks) const
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &t) const
 ~ConfigurableVertexFitter ()

Private Attributes

AbstractConfFittertheFitter


Detailed Description

A VertexFitter whose concrete implementation (kalman filter, adaptive method, etc.

) is completely definable at runtime via a ParameterSet. Note that every fitter registers as a finder, also.

Definition at line 17 of file ConfigurableVertexFitter.h.


Member Typedef Documentation

typedef CachingVertex<5>::RefCountedVertexTrack ConfigurableVertexFitter::RefCountedVertexTrack

Definition at line 21 of file ConfigurableVertexFitter.h.


Constructor & Destructor Documentation

ConfigurableVertexFitter::ConfigurableVertexFitter ( const edm::ParameterSet p  ) 

Definition at line 24 of file ConfigurableVertexFitter.cc.

References errorNoFitter(), VertexFitterManager::get(), edm::ParameterSet::getParameter(), VertexFitterManager::Instance(), and theFitter.

Referenced by clone().

00025                                 : theFitter ( 0 )
00026 {
00027   string fitter=p.getParameter<string>("fitter");
00028   theFitter = VertexFitterManager::Instance().get ( fitter );
00029   if (!theFitter)
00030   {
00031     errorNoFitter ( fitter );
00032   }
00033   theFitter->configure ( p );
00034 }

ConfigurableVertexFitter::ConfigurableVertexFitter ( const ConfigurableVertexFitter o  ) 

Definition at line 41 of file ConfigurableVertexFitter.cc.

00041                                            :
00042   theFitter ( o.theFitter->clone() )
00043 {}

ConfigurableVertexFitter::~ConfigurableVertexFitter (  ) 

Definition at line 36 of file ConfigurableVertexFitter.cc.

00037 {
00038 }


Member Function Documentation

ConfigurableVertexFitter * ConfigurableVertexFitter::clone ( void   )  const [virtual]

Fit vertex out of a VertexSeed.

Implements VertexFitter< 5 >.

Definition at line 46 of file ConfigurableVertexFitter.cc.

References ConfigurableVertexFitter().

00047 {
00048   return new ConfigurableVertexFitter ( *this );
00049 }

CachingVertex< 5 > ConfigurableVertexFitter::vertex ( const vector< RefCountedVertexTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const

Definition at line 83 of file ConfigurableVertexFitter.cc.

References theFitter, and AbstractConfFitter::vertex().

00085 {
00086   return theFitter->vertex ( tracks, priorPos, priorError );
00087 }

CachingVertex< 5 > ConfigurableVertexFitter::vertex ( const vector< reco::TransientTrack > &  tracks,
const reco::BeamSpot beamSpot 
) const [virtual]

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 77 of file ConfigurableVertexFitter.cc.

References theFitter, and AbstractConfFitter::vertex().

00079 {
00080   return theFitter->vertex ( tracks, beamSpot );
00081 }

CachingVertex< 5 > ConfigurableVertexFitter::vertex ( const vector< reco::TransientTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const [virtual]

Fit vertex out of a set of TransientTracks.

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 70 of file ConfigurableVertexFitter.cc.

References theFitter, and AbstractConfFitter::vertex().

00073 {
00074   return theFitter->vertex ( tracks, priorPos, priorError );
00075 }

CachingVertex< 5 > ConfigurableVertexFitter::vertex ( const vector< reco::TransientTrack > &  tracks,
const GlobalPoint linPoint 
) const [virtual]

Fit vertex out of a set of TransientTracks.

The specified point will be used as linearization point, but will NOT be used as prior.

Implements VertexFitter< 5 >.

Definition at line 64 of file ConfigurableVertexFitter.cc.

References theFitter, and AbstractConfFitter::vertex().

00066 {
00067   return theFitter->vertex ( tracks, linPoint );
00068 }

CachingVertex< 5 > ConfigurableVertexFitter::vertex ( const vector< RefCountedVertexTrack > &  tracks  )  const

Definition at line 58 of file ConfigurableVertexFitter.cc.

References theFitter, and AbstractConfFitter::vertex().

00060 {
00061   return theFitter->vertex ( tracks );
00062 }

CachingVertex< 5 > ConfigurableVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  t  )  const

Definition at line 52 of file ConfigurableVertexFitter.cc.

References theFitter, and AbstractConfFitter::vertex().

00054 {
00055   return theFitter->vertex ( t );
00056 }


Member Data Documentation

AbstractConfFitter* ConfigurableVertexFitter::theFitter [private]

Definition at line 41 of file ConfigurableVertexFitter.h.

Referenced by ConfigurableVertexFitter(), and vertex().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:46 2009 for CMSSW by  doxygen 1.5.4