#include <ConfigurableTrimmedVertexFinder.h>
Public Member Functions | |
ConfigurableTrimmedVertexFinder * | clone () const override |
ConfigurableTrimmedVertexFinder (const VertexFitter< 5 > *vf, const VertexUpdator< 5 > *vu, const VertexTrackCompatibilityEstimator< 5 > *ve) | |
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 |
const TrimmedTrackFilter & | trackFilter () const |
float | vertexFitProbabilityCut () const |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &tracks) const override |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &spot) const override |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &tracks, std::vector< reco::TransientTrack > &unused, const reco::BeamSpot &spot, bool use_spot) const |
~ConfigurableTrimmedVertexFinder () override | |
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 () |
Protected Member Functions | |
virtual void | analyseClusterFinder (const std::vector< TransientVertex > &vts, const std::vector< reco::TransientTrack > &remain) const |
virtual void | analyseFoundVertices (const std::vector< TransientVertex > &vts) const |
virtual void | analyseInputTracks (const std::vector< reco::TransientTrack > &tracks) const |
virtual void | analyseVertexCandidates (const std::vector< TransientVertex > &vts) const |
virtual void | resetEvent (const std::vector< reco::TransientTrack > &tracks) const |
Private Member Functions | |
std::vector< TransientVertex > | clean (const std::vector< TransientVertex > &candidates) const |
std::vector< TransientVertex > | vertexCandidates (const std::vector< reco::TransientTrack > &tracks, std::vector< reco::TransientTrack > &unused, const reco::BeamSpot &spot, bool use_spot) const |
virtual std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &t, const reco::BeamSpot &) const |
virtual std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &) const=0 |
virtual std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &primaries, const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &spot) const |
Private Attributes | |
TrimmedVertexFinder | theClusterFinder |
TrimmedTrackFilter | theFilter |
int | theMaxNbOfVertices |
float | theTrackCompatibilityToPV |
float | theTrackCompatibilityToSV |
float | theVtxFitProbCut |
Algorithm to find a series of distinct vertices among the given set of tracks. The technique is:
1) use TrimmedTrackFilter
to select tracks above a certain pT;
2) use TrimmedVertexFinder
to split the set of tracks into a cluster of compatible tracks and a set of remaining tracks;
3) repeat 2) with the remaining set, and repeat as long as (a) a cluster of compatible tracks can be found or (b) the maximum number of clusters asked for is reached;
4) reject vertices with a low fit probability.
This algorithm has 5 parameters that can be set at runtime via the corresponding set() methods, or a ParameterSet:
Definition at line 44 of file ConfigurableTrimmedVertexFinder.h.
ConfigurableTrimmedVertexFinder::ConfigurableTrimmedVertexFinder | ( | const VertexFitter< 5 > * | vf, |
const VertexUpdator< 5 > * | vu, | ||
const VertexTrackCompatibilityEstimator< 5 > * | ve | ||
) |
Definition at line 6 of file ConfigurableTrimmedVertexFinder.cc.
References TrimmedTrackFilter::setPtCut(), and theFilter.
Referenced by clone().
|
inlineoverride |
Definition at line 50 of file ConfigurableTrimmedVertexFinder.h.
|
inlineprotectedvirtual |
Definition at line 90 of file ConfigurableTrimmedVertexFinder.h.
Referenced by vertexCandidates().
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
private |
Definition at line 119 of file ConfigurableTrimmedVertexFinder.cc.
References HLT_2023v12_cff::candidates, ChiSquaredProbability(), mps_fire::i, EgammaValidation_Wenu_cff::sel, and theVtxFitProbCut.
Referenced by vertices().
|
inlineoverridevirtual |
Clone method
Implements VertexReconstructor.
Definition at line 83 of file ConfigurableTrimmedVertexFinder.h.
References ConfigurableTrimmedVertexFinder().
|
inline |
Definition at line 69 of file ConfigurableTrimmedVertexFinder.h.
References theMaxNbOfVertices.
Referenced by KalmanTrimmedVertexFinder::maxNbOfVertices().
|
inline |
Access to parameters
Definition at line 64 of file ConfigurableTrimmedVertexFinder.h.
References TrimmedTrackFilter::ptCut(), and theFilter.
Referenced by KalmanTrimmedVertexFinder::ptCut().
|
inlineprotectedvirtual |
|
inline |
Definition at line 79 of file ConfigurableTrimmedVertexFinder.h.
References SiStripPI::max, and theMaxNbOfVertices.
Referenced by KalmanTrimmedVertexFinder::setMaxNbOfVertices().
void ConfigurableTrimmedVertexFinder::setParameters | ( | const edm::ParameterSet & | s | ) |
Set parameters
Definition at line 18 of file ConfigurableTrimmedVertexFinder.cc.
References alignCSCRings::s, TrimmedTrackFilter::setPtCut(), theFilter, theMaxNbOfVertices, theTrackCompatibilityToPV, theTrackCompatibilityToSV, and theVtxFitProbCut.
|
inline |
Definition at line 75 of file ConfigurableTrimmedVertexFinder.h.
References DMR_cfg::cut, TrimmedTrackFilter::setPtCut(), and theFilter.
Referenced by KalmanTrimmedVertexFinder::setPtCut().
|
inline |
Definition at line 76 of file ConfigurableTrimmedVertexFinder.h.
References DMR_cfg::cut, and theTrackCompatibilityToPV.
Referenced by KalmanTrimmedVertexFinder::setTrackCompatibilityCut().
|
inline |
Definition at line 77 of file ConfigurableTrimmedVertexFinder.h.
References DMR_cfg::cut, and theTrackCompatibilityToSV.
Referenced by KalmanTrimmedVertexFinder::setTrackCompatibilityToSV().
|
inline |
Definition at line 78 of file ConfigurableTrimmedVertexFinder.h.
References DMR_cfg::cut, and theVtxFitProbCut.
Referenced by KalmanTrimmedVertexFinder::setVertexFitProbabilityCut().
|
inline |
Definition at line 66 of file ConfigurableTrimmedVertexFinder.h.
References theTrackCompatibilityToPV.
Referenced by KalmanTrimmedVertexFinder::trackCompatibilityCut().
|
inline |
Definition at line 67 of file ConfigurableTrimmedVertexFinder.h.
References theTrackCompatibilityToSV.
Referenced by KalmanTrimmedVertexFinder::trackCompatibilityToSV().
|
inline |
Definition at line 65 of file ConfigurableTrimmedVertexFinder.h.
References theFilter.
|
private |
Definition at line 65 of file ConfigurableTrimmedVertexFinder.cc.
References analyseClusterFinder(), createfilelist::int, gpuVertexFinder::iv, TrimmedVertexFinder::setTrackCompatibilityCut(), theClusterFinder, theMaxNbOfVertices, theTrackCompatibilityToPV, theTrackCompatibilityToSV, pwdgSkimBPark_cfi::tracks, and TrimmedVertexFinder::vertices().
Referenced by vertices().
|
inline |
Definition at line 68 of file ConfigurableTrimmedVertexFinder.h.
References theVtxFitProbCut.
Referenced by KalmanTrimmedVertexFinder::vertexFitProbabilityCut().
|
overridevirtual |
Reconstruct vertices
Implements VertexReconstructor.
Definition at line 26 of file ConfigurableTrimmedVertexFinder.cc.
References pwdgSkimBPark_cfi::tracks.
Referenced by KalmanTrimmedVertexFinder::vertices(), and vertices().
|
overridevirtual |
Reconstruct vertices, exploiting the beamspot constraint for the primary vertex
Reimplemented from VertexReconstructor.
Definition at line 32 of file ConfigurableTrimmedVertexFinder.cc.
References pwdgSkimBPark_cfi::tracks, and vertices().
std::vector< TransientVertex > ConfigurableTrimmedVertexFinder::vertices | ( | const std::vector< reco::TransientTrack > & | tracks, |
std::vector< reco::TransientTrack > & | unused, | ||
const reco::BeamSpot & | spot, | ||
bool | use_spot | ||
) | const |
Definition at line 38 of file ConfigurableTrimmedVertexFinder.cc.
References python.cmstools::all(), analyseFoundVertices(), analyseInputTracks(), analyseVertexCandidates(), clean(), filtered(), resetEvent(), EgammaValidation_Wenu_cff::sel, theFilter, pwdgSkimBPark_cfi::tracks, and vertexCandidates().
|
inlineprivate |
Reconstruct vertices, but exploit the fact that you know that some tracks cannot come from a secondary vertex. primaries Tracks that cannot come from a secondary vertex (but can, in principle, be non-primaries, also). tracks These are the tracks that are of unknown origin. These tracks are subjected to pattern recognition. spot A beamspot constraint is mandatory in this method.
Definition at line 39 of file VertexReconstructor.h.
|
private |
Reconstruct vertices
|
inlineprivate |
Reconstruct vertices, exploiting the beamspot constraint for the primary vertex
Definition at line 25 of file VertexReconstructor.h.
|
mutableprivate |
Definition at line 114 of file ConfigurableTrimmedVertexFinder.h.
Referenced by vertexCandidates().
|
private |
Definition at line 119 of file ConfigurableTrimmedVertexFinder.h.
Referenced by ConfigurableTrimmedVertexFinder(), ptCut(), setParameters(), setPtCut(), trackFilter(), and vertices().
|
private |
Definition at line 118 of file ConfigurableTrimmedVertexFinder.h.
Referenced by maxNbOfVertices(), setMaxNbOfVertices(), setParameters(), and vertexCandidates().
|
private |
Definition at line 116 of file ConfigurableTrimmedVertexFinder.h.
Referenced by setParameters(), setTrackCompatibilityCut(), trackCompatibilityCut(), and vertexCandidates().
|
private |
Definition at line 117 of file ConfigurableTrimmedVertexFinder.h.
Referenced by setParameters(), setTrackCompatibilityToSV(), trackCompatibilityToSV(), and vertexCandidates().
|
private |
Definition at line 115 of file ConfigurableTrimmedVertexFinder.h.
Referenced by clean(), setParameters(), setVertexFitProbabilityCut(), and vertexFitProbabilityCut().