CMS 3D CMS Logo

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 override
 
 ConfigurableVertexReconstructor (const edm::ParameterSet &)
 
 ConfigurableVertexReconstructor (const ConfigurableVertexReconstructor &o)
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &) const override
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const override
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &, const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const override
 
 ~ConfigurableVertexReconstructor () override
 
- 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 24 of file ConfigurableVertexReconstructor.cc.

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

Referenced by clone(), and ~ConfigurableVertexReconstructor().

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

Definition at line 44 of file ConfigurableVertexReconstructor.cc.

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

Definition at line 38 of file ConfigurableVertexReconstructor.cc.

References ConfigurableVertexReconstructor(), and theRector.

39 {
40  delete theRector;
41 }

Member Function Documentation

ConfigurableVertexReconstructor * ConfigurableVertexReconstructor::clone ( void  ) const
overridevirtual

Implements VertexReconstructor.

Definition at line 49 of file ConfigurableVertexReconstructor.cc.

References ConfigurableVertexReconstructor().

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

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 69 of file ConfigurableVertexReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

71 {
72  return theRector->vertices ( t );
73 }
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
overridevirtual

Reconstruct vertices, exploiting the beamspot constraint for the primary vertex

Reimplemented from VertexReconstructor.

Definition at line 62 of file ConfigurableVertexReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

65 {
66  return theRector->vertices ( t, s );
67 }
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
overridevirtual

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 54 of file ConfigurableVertexReconstructor.cc.

References theRector, and VertexReconstructor::vertices().

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

Member Data Documentation

AbstractConfReconstructor* ConfigurableVertexReconstructor::theRector
private