CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
KalmanTrimmedVertexFinder Class Reference

#include <KalmanTrimmedVertexFinder.h>

Inheritance diagram for KalmanTrimmedVertexFinder:
VertexReconstructor

Public Member Functions

KalmanTrimmedVertexFinderclone () const override
 
 KalmanTrimmedVertexFinder ()
 
 KalmanTrimmedVertexFinder (const KalmanTrimmedVertexFinder &other)
 
int maxNbOfVertices () const
 
float ptCut () const
 
void setMaxNbOfVertices (int max)
 
void setParameters (const edm::ParameterSet &)
 
void setPtCut (float cut)
 
void setTrackCompatibilityCut (float cut)
 
void setTrackCompatibilityToSV (float cut)
 
void setVertexFitProbabilityCut (float cut)
 
float trackCompatibilityCut () const
 
float trackCompatibilityToSV () const
 
float vertexFitProbabilityCut () const
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &tracks) const override
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &s) const override
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &tracks, std::vector< reco::TransientTrack > &unused) const
 
std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &tracks, std::vector< reco::TransientTrack > &unused, const reco::BeamSpot &spot, bool usespot=false) const
 
 ~KalmanTrimmedVertexFinder () override
 
- Public Member Functions inherited from VertexReconstructor
 VertexReconstructor ()
 
virtual std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &primaries, const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &spot) const
 
virtual ~VertexReconstructor ()
 

Private Member Functions

virtual std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &) const=0
 
virtual std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &primaries, const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &spot) const
 
virtual std::vector< TransientVertexvertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &) const
 

Private Attributes

ConfigurableTrimmedVertexFindertheFinder
 

Detailed Description

User-friendly wrapper around ConfigurableTrimmedVertexFinder.
Chooses the KalmanVertexFit classes as vertex fitting classes used by the TrimmedVertexFinder.
KalmanTrimmedVertexFinder is configurable using the same set() methods as ConfigurableTrimmedVertexFinder.

Definition at line 13 of file KalmanTrimmedVertexFinder.h.

Constructor & Destructor Documentation

◆ KalmanTrimmedVertexFinder() [1/2]

KalmanTrimmedVertexFinder::KalmanTrimmedVertexFinder ( )

Definition at line 6 of file KalmanTrimmedVertexFinder.cc.

References theFinder.

Referenced by clone().

◆ KalmanTrimmedVertexFinder() [2/2]

KalmanTrimmedVertexFinder::KalmanTrimmedVertexFinder ( const KalmanTrimmedVertexFinder other)

Definition at line 24 of file KalmanTrimmedVertexFinder.cc.

24  {
25  theFinder = other.theFinder->clone();
26 }

References trackingPlots::other, and theFinder.

◆ ~KalmanTrimmedVertexFinder()

KalmanTrimmedVertexFinder::~KalmanTrimmedVertexFinder ( )
override

Definition at line 22 of file KalmanTrimmedVertexFinder.cc.

22 { delete theFinder; }

References theFinder.

Member Function Documentation

◆ clone()

KalmanTrimmedVertexFinder* KalmanTrimmedVertexFinder::clone ( void  ) const
inlineoverridevirtual

Clone method

Implements VertexReconstructor.

Definition at line 21 of file KalmanTrimmedVertexFinder.h.

21 { return new KalmanTrimmedVertexFinder(*this); }

References KalmanTrimmedVertexFinder().

◆ maxNbOfVertices()

int KalmanTrimmedVertexFinder::maxNbOfVertices ( ) const
inline

◆ ptCut()

float KalmanTrimmedVertexFinder::ptCut ( ) const
inline

Access to parameters

Definition at line 46 of file KalmanTrimmedVertexFinder.h.

46 { return theFinder->ptCut(); }

References ConfigurableTrimmedVertexFinder::ptCut(), and theFinder.

◆ setMaxNbOfVertices()

void KalmanTrimmedVertexFinder::setMaxNbOfVertices ( int  max)
inline

◆ setParameters()

void KalmanTrimmedVertexFinder::setParameters ( const edm::ParameterSet s)

Set parameters

Definition at line 14 of file KalmanTrimmedVertexFinder.cc.

14  {
15  setPtCut(s.getParameter<double>("ptCut"));
16  setTrackCompatibilityCut(s.getParameter<double>("trackCompatibilityToPVcut"));
17  setTrackCompatibilityToSV(s.getParameter<double>("trackCompatibilityToSVcut"));
18  setVertexFitProbabilityCut(s.getParameter<double>("vtxFitProbCut"));
19  setMaxNbOfVertices(s.getParameter<int>("maxNbOfVertices"));
20 }

References alignCSCRings::s, setMaxNbOfVertices(), setPtCut(), setTrackCompatibilityCut(), setTrackCompatibilityToSV(), and setVertexFitProbabilityCut().

◆ setPtCut()

void KalmanTrimmedVertexFinder::setPtCut ( float  cut)
inline

◆ setTrackCompatibilityCut()

void KalmanTrimmedVertexFinder::setTrackCompatibilityCut ( float  cut)
inline

◆ setTrackCompatibilityToSV()

void KalmanTrimmedVertexFinder::setTrackCompatibilityToSV ( float  cut)
inline

◆ setVertexFitProbabilityCut()

void KalmanTrimmedVertexFinder::setVertexFitProbabilityCut ( float  cut)
inline

◆ trackCompatibilityCut()

float KalmanTrimmedVertexFinder::trackCompatibilityCut ( ) const
inline

◆ trackCompatibilityToSV()

float KalmanTrimmedVertexFinder::trackCompatibilityToSV ( ) const
inline

◆ vertexFitProbabilityCut()

float KalmanTrimmedVertexFinder::vertexFitProbabilityCut ( ) const
inline

◆ vertices() [1/7]

virtual std::vector<TransientVertex> VertexReconstructor::vertices
private

Reconstruct vertices

◆ vertices() [2/7]

virtual std::vector<TransientVertex> VertexReconstructor::vertices
inlineprivate

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.

Definition at line 39 of file VertexReconstructor.h.

41  {
42  return vertices(tracks, spot);
43  }

◆ vertices() [3/7]

virtual std::vector<TransientVertex> VertexReconstructor::vertices
inlineprivate

Reconstruct vertices, exploiting the beamspot constraint for the primary vertex

Definition at line 25 of file VertexReconstructor.h.

26  {
27  return vertices(t);
28  }

◆ vertices() [4/7]

std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices ( const std::vector< reco::TransientTrack > &  ) const
inlineoverridevirtual

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 23 of file KalmanTrimmedVertexFinder.h.

23  {
24  return theFinder->vertices(tracks);
25  }

References theFinder, PDWG_EXOHSCP_cff::tracks, and ConfigurableTrimmedVertexFinder::vertices().

Referenced by TrimmedVertexFitter::vertex().

◆ vertices() [5/7]

std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices ( const std::vector< reco::TransientTrack > &  t,
const reco::BeamSpot  
) const
inlineoverridevirtual

Reconstruct vertices, exploiting the beamspot constraint for the primary vertex

Reimplemented from VertexReconstructor.

Definition at line 27 of file KalmanTrimmedVertexFinder.h.

28  {
29  return theFinder->vertices(tracks, s);
30  }

References alignCSCRings::s, theFinder, PDWG_EXOHSCP_cff::tracks, and ConfigurableTrimmedVertexFinder::vertices().

◆ vertices() [6/7]

std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices ( const std::vector< reco::TransientTrack > &  tracks,
std::vector< reco::TransientTrack > &  unused 
) const
inline

Definition at line 32 of file KalmanTrimmedVertexFinder.h.

33  {
34  return theFinder->vertices(tracks, unused, reco::BeamSpot(), false);
35  }

References theFinder, PDWG_EXOHSCP_cff::tracks, and ConfigurableTrimmedVertexFinder::vertices().

◆ vertices() [7/7]

std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices ( const std::vector< reco::TransientTrack > &  tracks,
std::vector< reco::TransientTrack > &  unused,
const reco::BeamSpot spot,
bool  usespot = false 
) const
inline

Definition at line 37 of file KalmanTrimmedVertexFinder.h.

40  {
41  return theFinder->vertices(tracks, unused, spot, usespot);
42  }

References theFinder, PDWG_EXOHSCP_cff::tracks, and ConfigurableTrimmedVertexFinder::vertices().

Member Data Documentation

◆ theFinder

ConfigurableTrimmedVertexFinder* KalmanTrimmedVertexFinder::theFinder
private
KalmanTrimmedVertexFinder::KalmanTrimmedVertexFinder
KalmanTrimmedVertexFinder()
Definition: KalmanTrimmedVertexFinder.cc:6
KalmanVertexUpdator< 5 >
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
ConfigurableTrimmedVertexFinder::trackCompatibilityCut
float trackCompatibilityCut() const
Definition: ConfigurableTrimmedVertexFinder.h:66
TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
KalmanTrimmedVertexFinder::setTrackCompatibilityCut
void setTrackCompatibilityCut(float cut)
Definition: KalmanTrimmedVertexFinder.h:58
ConfigurableTrimmedVertexFinder::maxNbOfVertices
int maxNbOfVertices() const
Definition: ConfigurableTrimmedVertexFinder.h:69
ConfigurableTrimmedVertexFinder::setPtCut
void setPtCut(float cut)
Definition: ConfigurableTrimmedVertexFinder.h:75
KalmanTrimmedVertexFinder::setTrackCompatibilityToSV
void setTrackCompatibilityToSV(float cut)
Definition: KalmanTrimmedVertexFinder.h:59
ConfigurableTrimmedVertexFinder::vertexFitProbabilityCut
float vertexFitProbabilityCut() const
Definition: ConfigurableTrimmedVertexFinder.h:68
KalmanTrimmedVertexFinder::theFinder
ConfigurableTrimmedVertexFinder * theFinder
Definition: KalmanTrimmedVertexFinder.h:64
KalmanTrimmedVertexFinder::vertices
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const override
Definition: KalmanTrimmedVertexFinder.h:23
alignCSCRings.s
s
Definition: alignCSCRings.py:92
KalmanVertexTrackCompatibilityEstimator
Definition: KalmanVertexTrackCompatibilityEstimator.h:24
reco::BeamSpot
Definition: BeamSpot.h:21
ConfigurableTrimmedVertexFinder::trackCompatibilityToSV
float trackCompatibilityToSV() const
Definition: ConfigurableTrimmedVertexFinder.h:67
trackingPlots.other
other
Definition: trackingPlots.py:1467
ConfigurableTrimmedVertexFinder::setTrackCompatibilityCut
void setTrackCompatibilityCut(float cut)
Definition: ConfigurableTrimmedVertexFinder.h:76
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
ConfigurableTrimmedVertexFinder
Definition: ConfigurableTrimmedVertexFinder.h:44
KalmanTrimmedVertexFinder::setVertexFitProbabilityCut
void setVertexFitProbabilityCut(float cut)
Definition: KalmanTrimmedVertexFinder.h:60
ConfigurableTrimmedVertexFinder::setTrackCompatibilityToSV
void setTrackCompatibilityToSV(float cut)
Definition: ConfigurableTrimmedVertexFinder.h:77
ConfigurableTrimmedVertexFinder::ptCut
float ptCut() const
Definition: ConfigurableTrimmedVertexFinder.h:64
KalmanTrimmedVertexFinder::setMaxNbOfVertices
void setMaxNbOfVertices(int max)
Definition: KalmanTrimmedVertexFinder.h:61
KalmanTrimmedVertexFinder::setPtCut
void setPtCut(float cut)
Definition: KalmanTrimmedVertexFinder.h:57
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
ConfigurableTrimmedVertexFinder::setVertexFitProbabilityCut
void setVertexFitProbabilityCut(float cut)
Definition: ConfigurableTrimmedVertexFinder.h:78
ConfigurableTrimmedVertexFinder::setMaxNbOfVertices
void setMaxNbOfVertices(int max)
Definition: ConfigurableTrimmedVertexFinder.h:79
KalmanVertexFitter
Definition: KalmanVertexFitter.h:22
ConfigurableTrimmedVertexFinder::vertices
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const override
Definition: ConfigurableTrimmedVertexFinder.cc:26