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() [1/2]

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

Definition at line 20 of file ConfigurableVertexReconstructor.cc.

References AbstractConfReconstructor::configure(), HLT_2023v12_cff::finder, VertexRecoManager::get(), VertexRecoManager::Instance(), AlCaHLTBitMon_ParallelJobs::p, and theRector.

Referenced by clone().

20  : theRector(nullptr) {
21  string finder = p.getParameter<string>("finder");
23  if (!theRector) {
24  errorNoReconstructor(finder);
25  }
27  // theRector = theRector->clone();
28  // theRector = new ReconstructorFromFitter ( KalmanVertexFitter() );
29 }
virtual void configure(const edm::ParameterSet &)=0
static VertexRecoManager & Instance()
std::unique_ptr< AbstractConfReconstructor > get(const std::string &) const

◆ ConfigurableVertexReconstructor() [2/2]

ConfigurableVertexReconstructor::ConfigurableVertexReconstructor ( const ConfigurableVertexReconstructor o)

Definition at line 33 of file ConfigurableVertexReconstructor.cc.

34  : theRector(o.theRector->clone()) {}

◆ ~ConfigurableVertexReconstructor()

ConfigurableVertexReconstructor::~ConfigurableVertexReconstructor ( )
override

Definition at line 31 of file ConfigurableVertexReconstructor.cc.

References theRector.

31 { delete theRector; }

Member Function Documentation

◆ clone()

ConfigurableVertexReconstructor * ConfigurableVertexReconstructor::clone ( void  ) const
overridevirtual

Implements VertexReconstructor.

Definition at line 36 of file ConfigurableVertexReconstructor.cc.

References ConfigurableVertexReconstructor().

36  {
37  return new ConfigurableVertexReconstructor(*this);
38 }
ConfigurableVertexReconstructor(const edm::ParameterSet &)

◆ vertices() [1/3]

vector< TransientVertex > ConfigurableVertexReconstructor::vertices ( const std::vector< reco::TransientTrack > &  ) const
overridevirtual

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 51 of file ConfigurableVertexReconstructor.cc.

References submitPVValidationJobs::t, theRector, and VertexReconstructor::vertices().

51  {
52  return theRector->vertices(t);
53 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0

◆ vertices() [2/3]

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

References alignCSCRings::s, submitPVValidationJobs::t, theRector, and VertexReconstructor::vertices().

47  {
48  return theRector->vertices(t, s);
49 }
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0

◆ vertices() [3/3]

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

References alignCSCRings::s, theRector, and VertexReconstructor::vertices().

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

Member Data Documentation

◆ theRector

AbstractConfReconstructor* ConfigurableVertexReconstructor::theRector
private