#include <KalmanTrimmedVertexFinder.h>
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.
KalmanTrimmedVertexFinder::KalmanTrimmedVertexFinder | ( | ) |
Definition at line 7 of file KalmanTrimmedVertexFinder.cc.
References theFinder.
Referenced by clone().
{ KalmanVertexFitter vf(false); KalmanVertexUpdator<5> vu; KalmanVertexTrackCompatibilityEstimator<5> ve; theFinder = new ConfigurableTrimmedVertexFinder (&vf, &vu, &ve); }
KalmanTrimmedVertexFinder::KalmanTrimmedVertexFinder | ( | const KalmanTrimmedVertexFinder & | other | ) |
Definition at line 32 of file KalmanTrimmedVertexFinder.cc.
References ConfigurableTrimmedVertexFinder::clone(), and theFinder.
KalmanTrimmedVertexFinder::~KalmanTrimmedVertexFinder | ( | ) | [virtual] |
Definition at line 26 of file KalmanTrimmedVertexFinder.cc.
References theFinder.
{ delete theFinder; }
virtual KalmanTrimmedVertexFinder* KalmanTrimmedVertexFinder::clone | ( | void | ) | const [inline, virtual] |
Clone method
Implements VertexReconstructor.
Definition at line 25 of file KalmanTrimmedVertexFinder.h.
References KalmanTrimmedVertexFinder().
{ return new KalmanTrimmedVertexFinder(*this); }
int KalmanTrimmedVertexFinder::maxNbOfVertices | ( | ) | const [inline] |
Definition at line 65 of file KalmanTrimmedVertexFinder.h.
References ConfigurableTrimmedVertexFinder::maxNbOfVertices(), and theFinder.
{ return theFinder->maxNbOfVertices(); }
float KalmanTrimmedVertexFinder::ptCut | ( | ) | const [inline] |
Access to parameters
Definition at line 55 of file KalmanTrimmedVertexFinder.h.
References ConfigurableTrimmedVertexFinder::ptCut(), and theFinder.
void KalmanTrimmedVertexFinder::setMaxNbOfVertices | ( | int | max | ) | [inline] |
Definition at line 82 of file KalmanTrimmedVertexFinder.h.
References ConfigurableTrimmedVertexFinder::setMaxNbOfVertices(), and theFinder.
Referenced by setParameters(), and TrimmedVertexFitter::TrimmedVertexFitter().
{ theFinder->setMaxNbOfVertices(max); }
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().
{ setPtCut(s.getParameter<double>("ptCut")); setTrackCompatibilityCut(s.getParameter<double>("trackCompatibilityToPVcut")); setTrackCompatibilityToSV(s.getParameter<double>("trackCompatibilityToSVcut")); setVertexFitProbabilityCut(s.getParameter<double>("vtxFitProbCut")); setMaxNbOfVertices(s.getParameter<int>("maxNbOfVertices")); }
void KalmanTrimmedVertexFinder::setPtCut | ( | float | cut | ) | [inline] |
Definition at line 72 of file KalmanTrimmedVertexFinder.h.
References ConfigurableTrimmedVertexFinder::setPtCut(), and theFinder.
Referenced by ConfigurableTrimmedKalmanFinder::configure(), setParameters(), and TrimmedVertexFitter::setPtCut().
void KalmanTrimmedVertexFinder::setTrackCompatibilityCut | ( | float | cut | ) | [inline] |
Definition at line 73 of file KalmanTrimmedVertexFinder.h.
References ConfigurableTrimmedVertexFinder::setTrackCompatibilityCut(), and theFinder.
Referenced by ConfigurableTrimmedKalmanFinder::configure(), setParameters(), and TrimmedVertexFitter::setTrackCompatibilityCut().
{ theFinder->setTrackCompatibilityCut(cut); }
void KalmanTrimmedVertexFinder::setTrackCompatibilityToSV | ( | float | cut | ) | [inline] |
Definition at line 76 of file KalmanTrimmedVertexFinder.h.
References ConfigurableTrimmedVertexFinder::setTrackCompatibilityToSV(), and theFinder.
Referenced by ConfigurableTrimmedKalmanFinder::configure(), and setParameters().
void KalmanTrimmedVertexFinder::setVertexFitProbabilityCut | ( | float | cut | ) | [inline] |
Definition at line 79 of file KalmanTrimmedVertexFinder.h.
References ConfigurableTrimmedVertexFinder::setVertexFitProbabilityCut(), and theFinder.
Referenced by ConfigurableTrimmedKalmanFinder::configure(), setParameters(), and TrimmedVertexFitter::setVertexFitProbabilityCut().
float KalmanTrimmedVertexFinder::trackCompatibilityCut | ( | ) | const [inline] |
Definition at line 56 of file KalmanTrimmedVertexFinder.h.
References theFinder, and ConfigurableTrimmedVertexFinder::trackCompatibilityCut().
{ return theFinder->trackCompatibilityCut(); }
float KalmanTrimmedVertexFinder::trackCompatibilityToSV | ( | ) | const [inline] |
Definition at line 59 of file KalmanTrimmedVertexFinder.h.
References theFinder, and ConfigurableTrimmedVertexFinder::trackCompatibilityToSV().
{ return theFinder->trackCompatibilityToSV(); }
float KalmanTrimmedVertexFinder::vertexFitProbabilityCut | ( | ) | const [inline] |
Definition at line 62 of file KalmanTrimmedVertexFinder.h.
References theFinder, and ConfigurableTrimmedVertexFinder::vertexFitProbabilityCut().
{ return theFinder->vertexFitProbabilityCut(); }
virtual std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices | ( | const std::vector< reco::TransientTrack > & | ) | const [inline, virtual] |
Reconstruct vertices
Implements VertexReconstructor.
Definition at line 30 of file KalmanTrimmedVertexFinder.h.
References theFinder, and ConfigurableTrimmedVertexFinder::vertices().
Referenced by TrimmedVertexFitter::vertex().
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().
{ return theFinder->vertices(tracks, unused, reco::BeamSpot(), false ); }
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().
virtual std::vector<TransientVertex> KalmanTrimmedVertexFinder::vertices | ( | const std::vector< reco::TransientTrack > & | t, |
const reco::BeamSpot & | |||
) | const [inline, virtual] |
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().
Definition at line 88 of file KalmanTrimmedVertexFinder.h.
Referenced by KalmanTrimmedVertexFinder(), maxNbOfVertices(), ptCut(), setMaxNbOfVertices(), setPtCut(), setTrackCompatibilityCut(), setTrackCompatibilityToSV(), setVertexFitProbabilityCut(), trackCompatibilityCut(), trackCompatibilityToSV(), vertexFitProbabilityCut(), vertices(), and ~KalmanTrimmedVertexFinder().