#include <TrimmedVertexFinder.h>
Public Types | |
typedef ReferenceCountingPointer< LinearizedTrackState< 5 > > | RefCountedLinearizedTrackState |
typedef ReferenceCountingPointer< VertexTrack< 5 > > | RefCountedVertexTrack |
Public Member Functions | |
TrimmedVertexFinder * | clone () const |
void | setTrackCompatibilityCut (float cut) |
float | trackCompatibilityCut () const |
TrimmedVertexFinder (const VertexFitter< 5 > *vf, const VertexUpdator< 5 > *vu, const VertexTrackCompatibilityEstimator< 5 > *ve) | |
TrimmedVertexFinder (const TrimmedVertexFinder &other) | |
std::vector< TransientVertex > | vertices (std::vector< reco::TransientTrack > &remain) const |
std::vector< TransientVertex > | vertices (std::vector< reco::TransientTrack > &remain, const reco::BeamSpot &s, bool use_beamspot=true) const |
~TrimmedVertexFinder () | |
Private Member Functions | |
std::vector< RefCountedVertexTrack >::iterator | theWorst (const CachingVertex< 5 > &vtx, std::vector< RefCountedVertexTrack > &vtxTracks, float cut) const |
Private Attributes | |
VertexTrackCompatibilityEstimator< 5 > * | theEstimator |
VertexFitter< 5 > * | theFitter |
float | theMinProb |
VertexUpdator< 5 > * | theUpdator |
Algorithm to find 0 or 1 cluster of tracks that are compatible with a single vertex, among remain
, the initial set of tracks. A track is declared incompatible with the vertex if the chi-squared probability between the track and the vertex is smaller than min
. The algorithm applied is:
1) fit a single vertex with all tracks;
2) remove incompatible tracks 1 by 1 starting from the least compatible one.
On output, remain
contains the incompatible tracks. This algorithm has 1 parameter that can be set at runtime via the corresponding set() method:
Definition at line 28 of file TrimmedVertexFinder.h.
typedef ReferenceCountingPointer<LinearizedTrackState<5> > TrimmedVertexFinder::RefCountedLinearizedTrackState |
Definition at line 31 of file TrimmedVertexFinder.h.
Definition at line 30 of file TrimmedVertexFinder.h.
TrimmedVertexFinder::TrimmedVertexFinder | ( | const VertexFitter< 5 > * | vf, |
const VertexUpdator< 5 > * | vu, | ||
const VertexTrackCompatibilityEstimator< 5 > * | ve | ||
) |
Definition at line 9 of file TrimmedVertexFinder.cc.
Referenced by clone().
TrimmedVertexFinder::TrimmedVertexFinder | ( | const TrimmedVertexFinder & | other | ) |
Copy constructor, needed to handle copy of pointer data members correctly
Definition at line 14 of file TrimmedVertexFinder.cc.
TrimmedVertexFinder::~TrimmedVertexFinder | ( | ) |
Definition at line 20 of file TrimmedVertexFinder.cc.
References theEstimator, theFitter, and theUpdator.
|
inline |
clone method
Definition at line 65 of file TrimmedVertexFinder.h.
References TrimmedVertexFinder().
|
inline |
Set parameter
Definition at line 61 of file TrimmedVertexFinder.h.
References PA_MinBiasSkim_cff::cut, and theMinProb.
Referenced by ConfigurableTrimmedVertexFinder::vertexCandidates().
|
private |
Definition at line 131 of file TrimmedVertexFinder.cc.
References hltPixelTracks_cff::chi2, ChiSquaredProbability(), VertexTrackCompatibilityEstimator< N >::estimate(), CachingVertex< N >::isValid(), TtFullHadEvtBuilder_cfi::prob, VertexUpdator< N >::remove(), mps_fire::result, theEstimator, theUpdator, and extraflags_cff::vtx.
Referenced by vertices().
|
inline |
std::vector< TransientVertex > TrimmedVertexFinder::vertices | ( | std::vector< reco::TransientTrack > & | remain | ) | const |
Make 0 or 1 vertex On output, remain
contains the incompatible tracks
Definition at line 26 of file TrimmedVertexFinder.cc.
Referenced by ConfigurableTrimmedVertexFinder::vertexCandidates().
std::vector< TransientVertex > TrimmedVertexFinder::vertices | ( | std::vector< reco::TransientTrack > & | remain, |
const reco::BeamSpot & | s, | ||
bool | use_beamspot = true |
||
) | const |
Same as above, only with the extra information of the beamspot constraint.
Definition at line 31 of file TrimmedVertexFinder.cc.
References python.cmstools::all(), Exception, newFWLiteAna::found, mps_fire::i, submitPVValidationJobs::t, theFitter, theMinProb, theWorst(), PerigeeLinearizedTrackState::track(), VertexFitter< N >::vertex(), and extraflags_cff::vtx.
|
private |
Definition at line 77 of file TrimmedVertexFinder.h.
Referenced by theWorst(), and ~TrimmedVertexFinder().
|
private |
Definition at line 75 of file TrimmedVertexFinder.h.
Referenced by vertices(), and ~TrimmedVertexFinder().
|
private |
Definition at line 78 of file TrimmedVertexFinder.h.
Referenced by setTrackCompatibilityCut(), trackCompatibilityCut(), and vertices().
|
private |
Definition at line 76 of file TrimmedVertexFinder.h.
Referenced by theWorst(), and ~TrimmedVertexFinder().