CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
SequentialPrimaryVertexFitterAdapter Class Reference

#include <SequentialPrimaryVertexFitterAdapter.h>

Inheritance diagram for SequentialPrimaryVertexFitterAdapter:
PrimaryVertexFitterBase

Public Member Functions

std::vector< TransientVertexfit (const std::vector< reco::TransientTrack > &dummy, const std::vector< TransientVertex > &clusters, const reco::BeamSpot &beamspot, const bool useBeamConstraint) override
 
 SequentialPrimaryVertexFitterAdapter ()
 
 SequentialPrimaryVertexFitterAdapter (const VertexFitter< 5 > *vertex_fitter)
 
 ~SequentialPrimaryVertexFitterAdapter () override=default
 
- Public Member Functions inherited from PrimaryVertexFitterBase
 PrimaryVertexFitterBase (const edm::ParameterSet &conf)
 
 PrimaryVertexFitterBase ()
 
virtual ~PrimaryVertexFitterBase ()=default
 

Protected Attributes

const VertexFitter< 5 > * fitter
 

Detailed Description

Description: Adapter class for Kalman and Adaptive vertex fitters

Definition at line 15 of file SequentialPrimaryVertexFitterAdapter.h.

Constructor & Destructor Documentation

◆ SequentialPrimaryVertexFitterAdapter() [1/2]

SequentialPrimaryVertexFitterAdapter::SequentialPrimaryVertexFitterAdapter ( )
inline

Definition at line 17 of file SequentialPrimaryVertexFitterAdapter.h.

17 : fitter(nullptr){};

◆ SequentialPrimaryVertexFitterAdapter() [2/2]

SequentialPrimaryVertexFitterAdapter::SequentialPrimaryVertexFitterAdapter ( const VertexFitter< 5 > *  vertex_fitter)
inline

Definition at line 18 of file SequentialPrimaryVertexFitterAdapter.h.

18 : fitter(vertex_fitter){};

◆ ~SequentialPrimaryVertexFitterAdapter()

SequentialPrimaryVertexFitterAdapter::~SequentialPrimaryVertexFitterAdapter ( )
overridedefault

Member Function Documentation

◆ fit()

std::vector<TransientVertex> SequentialPrimaryVertexFitterAdapter::fit ( const std::vector< reco::TransientTrack > &  dummy,
const std::vector< TransientVertex > &  clusters,
const reco::BeamSpot beamspot,
const bool  useBeamConstraint 
)
inlineoverridevirtual

Implements PrimaryVertexFitterBase.

Definition at line 21 of file SequentialPrimaryVertexFitterAdapter.h.

References bsc_activity_cfg::clusters, fitter, FSQDQM_cfi::pvs, HLT_2023v12_cff::useBeamConstraint, findQualityFiles::v, and VertexFitter< N >::vertex().

Referenced by trackingPlots.Iteration::modules().

24  {
25  std::vector<TransientVertex> pvs;
26  for (auto& cluster : clusters) {
27  const std::vector<reco::TransientTrack>& tracklist = cluster.originalTracks();
29  if (useBeamConstraint && (tracklist.size() > 1)) {
30  v = fitter->vertex(tracklist, beamspot);
31  } else if (!(useBeamConstraint) && (tracklist.size() > 1)) {
32  v = fitter->vertex(tracklist);
33  } // else: no fit ==> v.isValid()=False
34 
35  if (v.isValid()) {
36  pvs.push_back(v);
37  }
38  }
39  return pvs;
40  };
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const =0

Member Data Documentation

◆ fitter

const VertexFitter<5>* SequentialPrimaryVertexFitterAdapter::fitter
protected

Definition at line 40 of file SequentialPrimaryVertexFitterAdapter.h.

Referenced by fit().