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 ConfigurableVertexReconstructor &o)
 
 ConfigurableVertexReconstructor (const edm::ParameterSet &)
 
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.

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 }

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

Referenced by clone().

◆ 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.

31 { delete theRector; }

References theRector.

Member Function Documentation

◆ clone()

ConfigurableVertexReconstructor * ConfigurableVertexReconstructor::clone ( void  ) const
overridevirtual

Implements VertexReconstructor.

Definition at line 36 of file ConfigurableVertexReconstructor.cc.

36  {
37  return new ConfigurableVertexReconstructor(*this);
38 }

References ConfigurableVertexReconstructor().

◆ 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.

51  {
52  return theRector->vertices(t);
53 }

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

◆ 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.

47  {
48  return theRector->vertices(t, s);
49 }

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

◆ 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. \paramname primaries Tracks that cannot come from a secondary vertex (but can, in principle, be non-primaries, also). \paramname tracks These are the tracks that are of unknown origin. These tracks are subjected to pattern recognition. \paramname spot A beamspot constraint is mandatory in this method.

Reimplemented from VertexReconstructor.

Definition at line 40 of file ConfigurableVertexReconstructor.cc.

42  {
43  return theRector->vertices(prims, secs, s);
44 }

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

Member Data Documentation

◆ theRector

AbstractConfReconstructor* ConfigurableVertexReconstructor::theRector
private
HLT_FULL_cff.finder
finder
Definition: HLT_FULL_cff.py:51935
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
VertexRecoManager::get
std::unique_ptr< AbstractConfReconstructor > get(const std::string &) const
Definition: VertexRecoManager.cc:46
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
alignCSCRings.s
s
Definition: alignCSCRings.py:92
VertexRecoManager::Instance
static VertexRecoManager & Instance()
Definition: VertexRecoManager.cc:39
VertexReconstructor::vertices
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
AbstractConfReconstructor::configure
virtual void configure(const edm::ParameterSet &)=0
ConfigurableVertexReconstructor::theRector
AbstractConfReconstructor * theRector
Definition: ConfigurableVertexReconstructor.h:29
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
ConfigurableVertexReconstructor::ConfigurableVertexReconstructor
ConfigurableVertexReconstructor(const edm::ParameterSet &)
Definition: ConfigurableVertexReconstructor.cc:20