CMS 3D CMS Logo

Public Member Functions | Private Attributes

ConfigurableVertexReconstructor Class Reference

#include <ConfigurableVertexReconstructor.h>

Inheritance diagram for ConfigurableVertexReconstructor:
VertexReconstructor

List of all members.

Public Member Functions

ConfigurableVertexReconstructorclone () const
 ConfigurableVertexReconstructor (const ConfigurableVertexReconstructor &o)
 ConfigurableVertexReconstructor (const edm::ParameterSet &)
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &) const
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &, const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
 ~ConfigurableVertexReconstructor ()

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

                                : theRector ( 0 )
{
  string finder=p.getParameter<string>("finder");
  theRector = VertexRecoManager::Instance().get ( finder );
  if (!theRector)
  {
    errorNoReconstructor ( finder );
  }
  theRector->configure ( p );
  // theRector = theRector->clone();
  // theRector = new ReconstructorFromFitter ( KalmanVertexFitter() );
}
ConfigurableVertexReconstructor::ConfigurableVertexReconstructor ( const ConfigurableVertexReconstructor o)

Definition at line 45 of file ConfigurableVertexReconstructor.cc.

                                                  :
  theRector ( o.theRector->clone() )
{}
ConfigurableVertexReconstructor::~ConfigurableVertexReconstructor ( )

Definition at line 39 of file ConfigurableVertexReconstructor.cc.

{
//  delete theRector;
}

Member Function Documentation

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

Implements VertexReconstructor.

Definition at line 50 of file ConfigurableVertexReconstructor.cc.

References ConfigurableVertexReconstructor().

{
  return new ConfigurableVertexReconstructor ( *this );
}
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().

{
  return theRector->vertices ( t, s );
}
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().

{
  return theRector->vertices ( prims, secs, s );
}
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().

{
  return theRector->vertices ( t );
}

Member Data Documentation

Definition at line 29 of file ConfigurableVertexReconstructor.h.

Referenced by ConfigurableVertexReconstructor(), and vertices().