CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

ConfigurableVertexFitter Class Reference

#include <ConfigurableVertexFitter.h>

Inheritance diagram for ConfigurableVertexFitter:
VertexFitter< 5 >

List of all members.

Public Types

typedef CachingVertex
< 5 >::RefCountedVertexTrack 
RefCountedVertexTrack

Public Member Functions

ConfigurableVertexFitterclone () const
 ConfigurableVertexFitter (const edm::ParameterSet &)
 ConfigurableVertexFitter (const ConfigurableVertexFitter &o)
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &linPoint) const
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) const
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &t) const
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks) 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

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 VertexFitterManager::get(), edm::ParameterSet::getParameter(), VertexFitterManager::Instance(), and theFitter.

Referenced by clone().

                                : theFitter ( 0 )
{
  string fitter=p.getParameter<string>("fitter");
  theFitter = VertexFitterManager::Instance().get ( fitter );
  if (!theFitter)
  {
    errorNoFitter ( fitter );
  }
  theFitter->configure ( p );
}
ConfigurableVertexFitter::ConfigurableVertexFitter ( const ConfigurableVertexFitter o)

Definition at line 41 of file ConfigurableVertexFitter.cc.

                                           :
  theFitter ( o.theFitter->clone() )
{}
ConfigurableVertexFitter::~ConfigurableVertexFitter ( )

Definition at line 36 of file ConfigurableVertexFitter.cc.

{
}

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().

{
  return new ConfigurableVertexFitter ( *this );
}
CachingVertex<5> ConfigurableVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
CachingVertex<5> ConfigurableVertexFitter::vertex ( const std::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 >.

CachingVertex<5> ConfigurableVertexFitter::vertex ( const std::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 >.

CachingVertex<5> ConfigurableVertexFitter::vertex ( const std::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 >.

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

Fit vertex out of a set of TransientTracks

Implements VertexFitter< 5 >.

Definition at line 52 of file ConfigurableVertexFitter.cc.

References theFitter, and AbstractConfFitter::vertex().

{
  return theFitter->vertex ( t );
}

Member Data Documentation

Definition at line 43 of file ConfigurableVertexFitter.h.

Referenced by ConfigurableVertexFitter(), and vertex().