CMS 3D CMS Logo

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

#include <ConfigurableVertexReconstructor.h>

Inheritance diagram for ConfigurableVertexReconstructor:
VertexReconstructor

Public Member Functions

ConfigurableVertexReconstructorclone () const
 
 ConfigurableVertexReconstructor (const edm::ParameterSet &)
 
 ConfigurableVertexReconstructor (const ConfigurableVertexReconstructor &o)
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &) const
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &, const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
 
 ~ConfigurableVertexReconstructor ()
 
- Public Member Functions inherited from VertexReconstructor
 VertexReconstructor ()
 
virtual ~VertexReconstructor ()
 

Private Attributes

AbstractConfReconstructortheRector
 

Detailed Description

Wrap any VertexFitter into the VertexReconstructor interface

Definition at line 13 of file ConfigurableVertexReconstructor.h.

Constructor & Destructor Documentation

ConfigurableVertexReconstructor::ConfigurableVertexReconstructor ( const edm::ParameterSet p)

Definition at line 25 of file ConfigurableVertexReconstructor.cc.

References VertexRecoManager::get(), edm::ParameterSet::getParameter(), VertexRecoManager::Instance(), and theRector.

Referenced by clone().

26  : theRector ( 0 )
27 {
28  string finder=p.getParameter<string>("finder");
30  if (!theRector)
31  {
32  errorNoReconstructor ( finder );
33  }
34  theRector->configure ( p );
35  // theRector = theRector->clone();
36  // theRector = new ReconstructorFromFitter ( KalmanVertexFitter() );
37 }
T getParameter(std::string const &) const
AbstractConfReconstructor * get(const std::string &)
static VertexRecoManager & Instance()
ConfigurableVertexReconstructor::ConfigurableVertexReconstructor ( const ConfigurableVertexReconstructor o)

Definition at line 45 of file ConfigurableVertexReconstructor.cc.

45  :
46  theRector ( o.theRector->clone() )
47 {}
AbstractConfReconstructor * clone() const =0
ConfigurableVertexReconstructor::~ConfigurableVertexReconstructor ( )

Definition at line 39 of file ConfigurableVertexReconstructor.cc.

40 {
41 // delete theRector;
42 }

Member Function Documentation

ConfigurableVertexReconstructor * ConfigurableVertexReconstructor::clone ( void  ) const
virtual

Implements VertexReconstructor.

Definition at line 50 of file ConfigurableVertexReconstructor.cc.

References ConfigurableVertexReconstructor().

51 {
52  return new ConfigurableVertexReconstructor ( *this );
53 }
ConfigurableVertexReconstructor(const edm::ParameterSet &)
vector< TransientVertex > ConfigurableVertexReconstructor::vertices ( const std::vector< reco::TransientTrack > &  ) const
virtual

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 70 of file ConfigurableVertexReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

72 {
73  return theRector->vertices ( t );
74 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
vector< TransientVertex > ConfigurableVertexReconstructor::vertices ( const std::vector< reco::TransientTrack > &  t,
const reco::BeamSpot  
) const
virtual

Reconstruct vertices, exploiting the beamspot constraint for the primary vertex

Reimplemented from VertexReconstructor.

Definition at line 63 of file ConfigurableVertexReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

66 {
67  return theRector->vertices ( t, s );
68 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
vector< TransientVertex > ConfigurableVertexReconstructor::vertices ( const std::vector< reco::TransientTrack > &  primaries,
const std::vector< reco::TransientTrack > &  tracks,
const reco::BeamSpot spot 
) const
virtual

Reconstruct vertices, but exploit the fact that you know that some tracks cannot come from a secondary vertex. primaries Tracks that cannot come from a secondary vertex (but can, in principle, be non-primaries, also). tracks These are the tracks that are of unknown origin. These tracks are subjected to pattern recognition. spot A beamspot constraint is mandatory in this method.

Reimplemented from VertexReconstructor.

Definition at line 55 of file ConfigurableVertexReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

59 {
60  return theRector->vertices ( prims, secs, s );
61 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0

Member Data Documentation

AbstractConfReconstructor* ConfigurableVertexReconstructor::theRector
private

Definition at line 29 of file ConfigurableVertexReconstructor.h.

Referenced by ConfigurableVertexReconstructor(), and vertices().