test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
KalmanTrimmedVertexFinder Class Reference

#include <KalmanTrimmedVertexFinder.h>

Inheritance diagram for KalmanTrimmedVertexFinder:
VertexReconstructor

Public Member Functions

virtual KalmanTrimmedVertexFinderclone () const
 
 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
 
virtual std::vector
< TransientVertex
vertices (const std::vector< reco::TransientTrack > &tracks) const
 
virtual std::vector
< TransientVertex
vertices (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &s) const
 
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
 
virtual ~KalmanTrimmedVertexFinder ()
 
- Public Member Functions inherited from VertexReconstructor
 VertexReconstructor ()
 
virtual std::vector
< TransientVertex
vertices (const std::vector< reco::TransientTrack > &primaries, const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &spot) const
 
virtual ~VertexReconstructor ()
 

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::KalmanTrimmedVertexFinder ( )
KalmanTrimmedVertexFinder::KalmanTrimmedVertexFinder ( const KalmanTrimmedVertexFinder other)

Definition at line 32 of file KalmanTrimmedVertexFinder.cc.

References ConfigurableTrimmedVertexFinder::clone(), and theFinder.

34 {
35  theFinder = other.theFinder->clone();
36 }
ConfigurableTrimmedVertexFinder * theFinder
virtual ConfigurableTrimmedVertexFinder * clone() const
KalmanTrimmedVertexFinder::~KalmanTrimmedVertexFinder ( )
virtual

Definition at line 26 of file KalmanTrimmedVertexFinder.cc.

References theFinder.

27 {
28  delete theFinder;
29 }
ConfigurableTrimmedVertexFinder * theFinder

Member Function Documentation

virtual KalmanTrimmedVertexFinder* KalmanTrimmedVertexFinder::clone ( void  ) const
inlinevirtual

Clone method

Implements VertexReconstructor.

Definition at line 25 of file KalmanTrimmedVertexFinder.h.

References KalmanTrimmedVertexFinder().

25  {
26  return new KalmanTrimmedVertexFinder(*this);
27  }
int KalmanTrimmedVertexFinder::maxNbOfVertices ( ) const
inline
float KalmanTrimmedVertexFinder::ptCut ( ) const
inline

Access to parameters

Definition at line 55 of file KalmanTrimmedVertexFinder.h.

References ConfigurableTrimmedVertexFinder::ptCut(), and theFinder.

55 { return theFinder->ptCut(); }
ConfigurableTrimmedVertexFinder * theFinder
void KalmanTrimmedVertexFinder::setMaxNbOfVertices ( int  max)
inline
void KalmanTrimmedVertexFinder::setParameters ( const edm::ParameterSet s)

Set parameters

Definition at line 16 of file KalmanTrimmedVertexFinder.cc.

References edm::ParameterSet::getParameter(), setMaxNbOfVertices(), setPtCut(), setTrackCompatibilityCut(), setTrackCompatibilityToSV(), and setVertexFitProbabilityCut().

17 {
18  setPtCut(s.getParameter<double>("ptCut"));
19  setTrackCompatibilityCut(s.getParameter<double>("trackCompatibilityToPVcut"));
20  setTrackCompatibilityToSV(s.getParameter<double>("trackCompatibilityToSVcut"));
21  setVertexFitProbabilityCut(s.getParameter<double>("vtxFitProbCut"));
22  setMaxNbOfVertices(s.getParameter<int>("maxNbOfVertices"));
23 }
T getParameter(std::string const &) const
void KalmanTrimmedVertexFinder::setPtCut ( float  cut)
inline
void KalmanTrimmedVertexFinder::setTrackCompatibilityCut ( float  cut)
inline
void KalmanTrimmedVertexFinder::setTrackCompatibilityToSV ( float  cut)
inline
void KalmanTrimmedVertexFinder::setVertexFitProbabilityCut ( float  cut)
inline
float KalmanTrimmedVertexFinder::trackCompatibilityCut ( ) const
inline

Definition at line 56 of file KalmanTrimmedVertexFinder.h.

References theFinder, and ConfigurableTrimmedVertexFinder::trackCompatibilityCut().

56  {
58  }
ConfigurableTrimmedVertexFinder * theFinder
float KalmanTrimmedVertexFinder::trackCompatibilityToSV ( ) const
inline
float KalmanTrimmedVertexFinder::vertexFitProbabilityCut ( ) const
inline
virtual std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices ( const std::vector< reco::TransientTrack > &  ) const
inlinevirtual

Reconstruct vertices

Implements VertexReconstructor.

Definition at line 30 of file KalmanTrimmedVertexFinder.h.

References theFinder, and ConfigurableTrimmedVertexFinder::vertices().

Referenced by TrimmedVertexFitter::vertex().

30  {
31  return theFinder->vertices(tracks);
32  }
ConfigurableTrimmedVertexFinder * theFinder
tuple tracks
Definition: testEve_cfg.py:39
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const
virtual std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices ( const std::vector< reco::TransientTrack > &  t,
const reco::BeamSpot  
) const
inlinevirtual

Reconstruct vertices, exploiting the beamspot constraint for the primary vertex

Reimplemented from VertexReconstructor.

Definition at line 35 of file KalmanTrimmedVertexFinder.h.

References theFinder, and ConfigurableTrimmedVertexFinder::vertices().

36  {
37  return theFinder->vertices(tracks,s);
38  }
ConfigurableTrimmedVertexFinder * theFinder
tuple tracks
Definition: testEve_cfg.py:39
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const
std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices ( const std::vector< reco::TransientTrack > &  tracks,
std::vector< reco::TransientTrack > &  unused 
) const
inline

Definition at line 41 of file KalmanTrimmedVertexFinder.h.

References theFinder, and ConfigurableTrimmedVertexFinder::vertices().

42  {
43  return theFinder->vertices(tracks, unused, reco::BeamSpot(), false );
44  }
ConfigurableTrimmedVertexFinder * theFinder
tuple tracks
Definition: testEve_cfg.py:39
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const
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 47 of file KalmanTrimmedVertexFinder.h.

References theFinder, and ConfigurableTrimmedVertexFinder::vertices().

49  {
50  return theFinder->vertices(tracks, unused, spot, usespot );
51  }
ConfigurableTrimmedVertexFinder * theFinder
tuple tracks
Definition: testEve_cfg.py:39
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const

Member Data Documentation

ConfigurableTrimmedVertexFinder* KalmanTrimmedVertexFinder::theFinder
private