CMS 3D CMS Logo

ConfigurableVertexReconstructor Class Reference

Wrap any VertexFitter into the VertexReconstructor interface. More...

#include <RecoVertex/ConfigurableVertexReco/interface/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 std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
 Reconstruct vertices, but exploit the fact that you know that some tracks cannot come from a secondary vertex.
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const
 Reconstruct vertices, exploiting the beamspot constraint for the primary vertex.
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &) const
 Reconstruct vertices.
 ~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 errorNoReconstructor(), VertexRecoManager::get(), edm::ParameterSet::getParameter(), VertexRecoManager::Instance(), and theRector.

Referenced by clone().

00026                                 : theRector ( 0 )
00027 {
00028   string finder=p.getParameter<string>("finder");
00029   theRector = VertexRecoManager::Instance().get ( finder );
00030   if (!theRector)
00031   {
00032     errorNoReconstructor ( finder );
00033   }
00034   theRector->configure ( p );
00035   // theRector = theRector->clone();
00036   // theRector = new ReconstructorFromFitter ( KalmanVertexFitter() );
00037 }

ConfigurableVertexReconstructor::ConfigurableVertexReconstructor ( const ConfigurableVertexReconstructor o  ) 

Definition at line 45 of file ConfigurableVertexReconstructor.cc.

00045                                                   :
00046   theRector ( o.theRector->clone() )
00047 {}

ConfigurableVertexReconstructor::~ConfigurableVertexReconstructor (  ) 

Definition at line 39 of file ConfigurableVertexReconstructor.cc.

00040 {
00041 //  delete theRector;
00042 }


Member Function Documentation

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

Implements VertexReconstructor.

Definition at line 50 of file ConfigurableVertexReconstructor.cc.

References ConfigurableVertexReconstructor().

00051 {
00052   return new ConfigurableVertexReconstructor ( *this );
00053 }

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

00059 {
00060   return theRector->vertices ( prims, secs, s );
00061 }

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

00066 {
00067   return theRector->vertices ( t, s );
00068 }

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

Referenced by SecondaryVertexProducer::produce().

00072 {
00073   return theRector->vertices ( t );
00074 }


Member Data Documentation

AbstractConfReconstructor* ConfigurableVertexReconstructor::theRector [private]

Definition at line 29 of file ConfigurableVertexReconstructor.h.

Referenced by ConfigurableVertexReconstructor(), and vertices().


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