#include <CachingVertex.h>
Public Types | |
typedef ROOT::Math::SMatrix< double, N-2, N-2, ROOT::Math::MatRepStd< double, N-2, N-2 > > | AlgebraicMatrixMM |
typedef ROOT::Math::SMatrix< double, N, N, ROOT::Math::MatRepSym< double, N > > | AlgebraicSymMatrixNN |
typedef ReferenceCountingPointer< VertexTrack< N > > | RefCountedVertexTrack |
typedef std::map< RefCountedVertexTrack, AlgebraicMatrixMM > | TrackMap |
typedef std::map< RefCountedVertexTrack, TrackMap > | TrackToTrackMap |
Public Member Functions | |
CachingVertex (const GlobalPoint &pos, const GlobalError &posErr, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &pos, const GlobalWeight &posWeight, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const AlgebraicVector3 &weightTimesPosition, const GlobalWeight &posWeight, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const AlgebraicVector3 &weightTimesPosition, const GlobalWeight &posWeight, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &pos, const double time, const GlobalError &posTimeErr, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &pos, const double time, const GlobalWeight &posTimeWeight, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const AlgebraicVector4 &weightTimesPosition, const GlobalWeight &posTimeWeight, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const AlgebraicVector4 &weightTimesPosition, const GlobalWeight &posWeight, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const GlobalPoint &pos, const GlobalError &posErr, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &priorPos, const double priorTime, const GlobalError &priorErr, const GlobalPoint &pos, const double time, const GlobalError &posErr, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const GlobalPoint &pos, const GlobalWeight &posWeight, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const GlobalPoint &priorPos, const double priorTime, const GlobalError &priorErr, const GlobalPoint &pos, const double time, const GlobalWeight &posWeight, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const VertexState &aVertexState, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const VertexState &priorVertexState, const VertexState &aVertexState, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq) | |
CachingVertex (const VertexState &aVertexState, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq, const TrackToTrackMap &covMap) | |
CachingVertex (const VertexState &priorVertexState, const VertexState &aVertexState, const std::vector< RefCountedVertexTrack > &tks, float totalChiSq, const TrackToTrackMap &covMap) | |
CachingVertex () | |
float | degreesOfFreedom () const |
GlobalError | error () const |
GlobalError | error4D () const |
bool | hasPrior () const |
bool | is4D () const |
bool | isValid () const |
operator TransientVertex () const | |
GlobalPoint | position () const |
GlobalError | priorError () const |
GlobalError | priorError4D () const |
GlobalPoint | priorPosition () const |
double | priorTime () const |
VertexState const & | priorVertexState () const |
double | time () const |
AlgebraicMatrixMM | tkToTkCovariance (const RefCountedVertexTrack t1, const RefCountedVertexTrack t2) const |
bool | tkToTkCovarianceIsAvailable () const |
float | totalChiSquared () const |
std::vector< RefCountedVertexTrack > | tracks () const |
const std::vector< RefCountedVertexTrack > & | tracksRef () const |
VertexState const & | vertexState () const |
GlobalWeight | weight () const |
GlobalWeight | weight4D () const |
AlgebraicVector3 | weightTimesPosition () const |
AlgebraicVector4 | weightTimesPosition4D () const |
Private Member Functions | |
void | computeNDF () const |
Private Attributes | |
float | theChiSquared |
TrackToTrackMap | theCovMap |
bool | theCovMapAvailable |
float | theNDF |
bool | theNDFAvailable |
VertexState | thePriorVertexState |
std::vector< RefCountedVertexTrack > | theTracks |
bool | theValid |
VertexState | theVertexState |
bool | vertexIs4D |
bool | withPrior |
Class for vertices fitted with Kalman and linear fit algorithms. Provides access to temporary data to speed up the vertex update.
Definition at line 25 of file CachingVertex.h.
typedef ROOT::Math::SMatrix<double,N-2,N-2,ROOT::Math::MatRepStd<double,N-2,N-2> > CachingVertex< N >::AlgebraicMatrixMM |
Definition at line 31 of file CachingVertex.h.
typedef ROOT::Math::SMatrix<double,N,N,ROOT::Math::MatRepSym<double,N> > CachingVertex< N >::AlgebraicSymMatrixNN |
Definition at line 30 of file CachingVertex.h.
typedef ReferenceCountingPointer<VertexTrack<N> > CachingVertex< N >::RefCountedVertexTrack |
Definition at line 29 of file CachingVertex.h.
typedef std::map<RefCountedVertexTrack, AlgebraicMatrixMM > CachingVertex< N >::TrackMap |
Definition at line 32 of file CachingVertex.h.
typedef std::map<RefCountedVertexTrack, TrackMap > CachingVertex< N >::TrackToTrackMap |
Definition at line 33 of file CachingVertex.h.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | pos, |
const GlobalError & | posErr, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Constructors
Definition at line 10 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | pos, |
const GlobalWeight & | posWeight, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 38 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const AlgebraicVector3 & | weightTimesPosition, |
const GlobalWeight & | posWeight, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 64 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | priorPos, |
const GlobalError & | priorErr, | ||
const AlgebraicVector3 & | weightTimesPosition, | ||
const GlobalWeight & | posWeight, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 190 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | pos, |
const double | time, | ||
const GlobalError & | posTimeErr, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 23 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | pos, |
const double | time, | ||
const GlobalWeight & | posTimeWeight, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 50 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const AlgebraicVector4 & | weightTimesPosition, |
const GlobalWeight & | posTimeWeight, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 76 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | priorPos, |
const GlobalError & | priorErr, | ||
const AlgebraicVector4 & | weightTimesPosition, | ||
const GlobalWeight & | posWeight, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 204 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | priorPos, |
const GlobalError & | priorErr, | ||
const GlobalPoint & | pos, | ||
const GlobalError & | posErr, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 126 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | priorPos, |
const double | priorTime, | ||
const GlobalError & | priorErr, | ||
const GlobalPoint & | pos, | ||
const double | time, | ||
const GlobalError & | posErr, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 140 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | priorPos, |
const GlobalError & | priorErr, | ||
const GlobalPoint & | pos, | ||
const GlobalWeight & | posWeight, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 158 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const GlobalPoint & | priorPos, |
const double | priorTime, | ||
const GlobalError & | priorErr, | ||
const GlobalPoint & | pos, | ||
const double | time, | ||
const GlobalWeight & | posWeight, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 172 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const VertexState & | aVertexState, |
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 87 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const VertexState & | priorVertexState, |
const VertexState & | aVertexState, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq | ||
) |
Definition at line 113 of file CachingVertex.cc.
CachingVertex< N >::CachingVertex | ( | const VertexState & | aVertexState, |
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq, | ||
const TrackToTrackMap & | covMap | ||
) |
Definition at line 99 of file CachingVertex.cc.
References CachingVertex< N >::theCovMap, and CachingVertex< N >::theCovMapAvailable.
CachingVertex< N >::CachingVertex | ( | const VertexState & | priorVertexState, |
const VertexState & | aVertexState, | ||
const std::vector< RefCountedVertexTrack > & | tks, | ||
float | totalChiSq, | ||
const TrackToTrackMap & | covMap | ||
) |
Definition at line 218 of file CachingVertex.cc.
References CachingVertex< N >::theCovMap, and CachingVertex< N >::theCovMapAvailable.
CachingVertex< N >::CachingVertex | ( | ) |
Constructor for invalid CachingVertex
Definition at line 233 of file CachingVertex.cc.
|
private |
Definition at line 298 of file CachingVertex.cc.
References CachingVertex< N >::theNDF, CachingVertex< N >::theNDFAvailable, CachingVertex< N >::theTracks, CachingVertex< N >::vertexIs4D, and CachingVertex< N >::withPrior.
Referenced by CachingVertex< N >::degreesOfFreedom(), and CachingVertex< 5 >::tkToTkCovarianceIsAvailable().
float CachingVertex< N >::degreesOfFreedom | ( | ) | const |
Definition at line 290 of file CachingVertex.cc.
References CachingVertex< N >::computeNDF(), CachingVertex< N >::theNDF, and CachingVertex< N >::theNDFAvailable.
Referenced by FinalTreeBuilder::buildTree(), fitChi2(), KinematicVertex::KinematicVertex(), CachingVertex< N >::operator TransientVertex(), and CachingVertex< 5 >::totalChiSquared().
GlobalError CachingVertex< N >::error | ( | ) | const |
Definition at line 252 of file CachingVertex.cc.
References VertexState::error(), and CachingVertex< N >::theVertexState.
Referenced by Page1Parser.Page1Parser::check_for_whole_start_tag(), KinematicVertex::KinematicVertex(), CachingVertex< 5 >::priorVertexState(), trackVertexCompat(), and reco::GhostTrackVertexFinder::vertexCompat().
GlobalError CachingVertex< N >::error4D | ( | ) | const |
Definition at line 258 of file CachingVertex.cc.
References VertexState::error4D(), and CachingVertex< N >::theVertexState.
Referenced by CachingVertex< 5 >::priorVertexState().
|
inline |
Definition at line 130 of file CachingVertex.h.
Referenced by GsfVertexUpdator::add(), KalmanSmoothedVertexChi2Estimator< N >::estimate(), GsfVertexMerger::merge(), GsfVertexSmoother::smooth(), SequentialVertexSmoother< N >::smooth(), and KalmanVertexUpdator< N >::update().
|
inline |
Definition at line 132 of file CachingVertex.h.
|
inline |
Definition at line 131 of file CachingVertex.h.
Referenced by ntupleDataFormat._Object::_checkIsValid(), SingleTrackVertexConstraint::constrain(), GsfVertexTrackCompatibilityEstimator::estimateNFittedTrack(), KalmanVertexTrackCompatibilityEstimator< N >::estimateNFittedTrack(), KinematicParticleVertexFitter::fit(), AdaptiveVertexFitter::fit(), SequentialVertexFitter< N >::fit(), reco::GhostTrackVertexFinder::initialVertices(), reco::GhostTrackVertexFinder::mergeVertices(), CachingVertex< N >::operator TransientVertex(), core.AutoHandle.AutoHandle::ReallyLoad(), reco::GhostTrackVertexFinder::reassignTracks(), reco::GhostTrackVertexFinder::recursiveMerge(), reco::GhostTrackVertexFinder::refitGhostTrack(), TrimmedVertexFinder::theWorst(), ReconstructorFromFitter::vertices(), TrimmedVertexFinder::vertices(), and reco::GhostTrackVertexFinder::vertices().
CachingVertex< N >::operator TransientVertex | ( | ) | const |
Definition at line 352 of file CachingVertex.cc.
References CachingVertex< N >::degreesOfFreedom(), mps_fire::i, CachingVertex< N >::isValid(), CachingVertex< N >::priorVertexState(), TransientVertex::refittedTracks(), reco::t2, CachingVertex< N >::theCovMapAvailable, CachingVertex< N >::theTracks, CachingVertex< N >::tkToTkCovariance(), TransientVertex::tkToTkCovariance(), CachingVertex< N >::totalChiSquared(), CachingVertex< N >::vertexState(), TransientVertex::weightMap(), and CachingVertex< N >::withPrior.
GlobalPoint CachingVertex< N >::position | ( | ) | const |
Definition at line 240 of file CachingVertex.cc.
References VertexState::position(), and CachingVertex< N >::theVertexState.
Referenced by FinalTreeBuilder::buildTree(), SingleTrackVertexConstraint::constrain(), AdaptiveVertexFitter::fit(), SequentialVertexFitter< N >::fit(), KinematicVertex::KinematicVertex(), FinalTreeBuilder::momentumPart(), CachingVertex< 5 >::priorVertexState(), AdaptiveVertexFitter::reWeightTracks(), GsfVertexSmoother::smooth(), SequentialVertexSmoother< N >::smooth(), trackVertexCompat(), InvariantMassFromVertex::uncertainty(), MultiVertexFitter::updateSeeds(), MultiVertexFitter::updateWeights(), and reco::GhostTrackVertexFinder::vertexCompat().
|
inline |
Definition at line 128 of file CachingVertex.h.
Referenced by GsfVertexUpdator::add(), GsfVertexMerger::merge(), and SequentialVertexSmoother< N >::smooth().
|
inline |
Definition at line 129 of file CachingVertex.h.
|
inline |
Definition at line 126 of file CachingVertex.h.
Referenced by GsfVertexUpdator::add(), GsfVertexMerger::merge(), and SequentialVertexSmoother< N >::smooth().
|
inline |
Definition at line 127 of file CachingVertex.h.
|
inline |
Definition at line 115 of file CachingVertex.h.
Referenced by KalmanSmoothedVertexChi2Estimator< N >::estimate(), CachingVertex< N >::operator TransientVertex(), CachingVertex< 5 >::priorError(), CachingVertex< 5 >::priorError4D(), CachingVertex< 5 >::priorPosition(), CachingVertex< 5 >::priorTime(), GsfVertexSmoother::smooth(), SequentialVertexSmoother< N >::smooth(), and KalmanVertexUpdator< N >::update().
double CachingVertex< N >::time | ( | ) | const |
Definition at line 246 of file CachingVertex.cc.
References CachingVertex< N >::theVertexState, and VertexState::time().
Referenced by CachingVertex< 5 >::priorVertexState().
CachingVertex< N >::AlgebraicMatrixMM CachingVertex< N >::tkToTkCovariance | ( | const RefCountedVertexTrack | t1, |
const RefCountedVertexTrack | t2 | ||
) | const |
Track to track covariance
Definition at line 314 of file CachingVertex.cc.
References reco::t2, CachingVertex< N >::theCovMap, and CachingVertex< N >::tkToTkCovarianceIsAvailable().
Referenced by FinalTreeBuilder::momentumPart(), CachingVertex< N >::operator TransientVertex(), CachingVertex< 5 >::totalChiSquared(), and InvariantMassFromVertex::uncertainty().
|
inline |
Definition at line 143 of file CachingVertex.h.
Referenced by InvariantMassFromVertex::invariantMass(), InvariantMassFromVertex::momentum(), InvariantMassFromVertex::p4(), and CachingVertex< N >::tkToTkCovariance().
|
inline |
Chi2, degrees of freedom. The latter may not be integer.
Definition at line 136 of file CachingVertex.h.
Referenced by GsfVertexUpdator::add(), FinalTreeBuilder::buildTree(), GsfVertexTrackCompatibilityEstimator::estimateNFittedTrack(), KalmanVertexTrackCompatibilityEstimator< N >::estimateNFittedTrack(), fitChi2(), KinematicVertex::KinematicVertex(), GsfVertexMerger::merge(), CachingVertex< N >::operator TransientVertex(), SequentialVertexSmoother< N >::smooth(), and KalmanVertexUpdator< N >::update().
|
inline |
Definition at line 124 of file CachingVertex.h.
Referenced by GsfVertexUpdator::add(), FinalTreeBuilder::buildTree(), KalmanSmoothedVertexChi2Estimator< N >::estimate(), GsfVertexTrackCompatibilityEstimator::estimate(), InvariantMassFromVertex::invariantMass(), GsfVertexMerger::merge(), reco::GhostTrackVertexFinder::mergeVertices(), InvariantMassFromVertex::momentum(), FinalTreeBuilder::momentumPart(), InvariantMassFromVertex::p4(), GsfVertexSmoother::smooth(), SequentialVertexSmoother< N >::smooth(), TrimmedVertexFinder::theWorst(), InvariantMassFromVertex::uncertainty(), KalmanVertexUpdator< N >::update(), and TrimmedVertexFinder::vertices().
|
inline |
Definition at line 125 of file CachingVertex.h.
Referenced by KalmanVertexTrackCompatibilityEstimator< N >::estimate().
|
inline |
Access methods
Definition at line 114 of file CachingVertex.h.
Referenced by GsfVertexUpdator::add(), KalmanSmoothedVertexChi2Estimator< N >::estimate(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), SequentialVertexFitter< N >::fit(), GsfVertexMerger::merge(), reco::GhostTrackVertexFinder::mergeVertices(), CachingVertex< N >::operator TransientVertex(), AdaptiveVertexFitter::reLinearizeTracks(), AdaptiveVertexFitter::reWeightTracks(), GsfVertexSmoother::smooth(), SequentialVertexSmoother< N >::smooth(), KalmanVertexTrackUpdator< N >::update(), KalmanVertexUpdator< N >::update(), and KVFHelper< N >::vertexChi2().
GlobalWeight CachingVertex< N >::weight | ( | void | ) | const |
Definition at line 265 of file CachingVertex.cc.
References CachingVertex< N >::theVertexState, and VertexState::weight().
Referenced by CachingVertex< 5 >::priorVertexState(), and SequentialVertexSmoother< N >::smooth().
GlobalWeight CachingVertex< N >::weight4D | ( | ) | const |
Definition at line 271 of file CachingVertex.cc.
References CachingVertex< N >::theVertexState, and VertexState::weight4D().
Referenced by CachingVertex< 5 >::priorVertexState().
AlgebraicVector3 CachingVertex< N >::weightTimesPosition | ( | ) | const |
Definition at line 278 of file CachingVertex.cc.
References CachingVertex< N >::theVertexState, and VertexState::weightTimesPosition().
Referenced by CachingVertex< 5 >::priorVertexState().
AlgebraicVector4 CachingVertex< N >::weightTimesPosition4D | ( | ) | const |
Definition at line 284 of file CachingVertex.cc.
References CachingVertex< N >::theVertexState, and VertexState::weightTimesPosition4D().
Referenced by CachingVertex< 5 >::priorVertexState().
|
private |
Definition at line 152 of file CachingVertex.h.
Referenced by CachingVertex< 5 >::totalChiSquared().
|
private |
Definition at line 156 of file CachingVertex.h.
Referenced by CachingVertex< N >::CachingVertex(), and CachingVertex< N >::tkToTkCovariance().
|
private |
Definition at line 157 of file CachingVertex.h.
Referenced by CachingVertex< N >::CachingVertex(), CachingVertex< N >::operator TransientVertex(), and CachingVertex< 5 >::tkToTkCovarianceIsAvailable().
|
mutableprivate |
Definition at line 153 of file CachingVertex.h.
Referenced by CachingVertex< N >::computeNDF(), and CachingVertex< N >::degreesOfFreedom().
|
mutableprivate |
Definition at line 154 of file CachingVertex.h.
Referenced by CachingVertex< N >::computeNDF(), and CachingVertex< N >::degreesOfFreedom().
|
mutableprivate |
Definition at line 158 of file CachingVertex.h.
Referenced by CachingVertex< 5 >::priorVertexState().
|
private |
Definition at line 155 of file CachingVertex.h.
Referenced by CachingVertex< N >::computeNDF(), CachingVertex< N >::operator TransientVertex(), CachingVertex< 5 >::tracks(), and CachingVertex< 5 >::tracksRef().
|
private |
Definition at line 161 of file CachingVertex.h.
Referenced by CachingVertex< 5 >::isValid().
|
mutableprivate |
Definition at line 151 of file CachingVertex.h.
Referenced by CachingVertex< N >::error(), CachingVertex< N >::error4D(), CachingVertex< N >::position(), CachingVertex< N >::time(), CachingVertex< 5 >::vertexState(), CachingVertex< N >::weight(), CachingVertex< N >::weight4D(), CachingVertex< N >::weightTimesPosition(), and CachingVertex< N >::weightTimesPosition4D().
|
private |
Definition at line 162 of file CachingVertex.h.
Referenced by CachingVertex< N >::computeNDF(), and CachingVertex< 5 >::is4D().
|
private |
Definition at line 159 of file CachingVertex.h.
Referenced by CachingVertex< N >::computeNDF(), CachingVertex< 5 >::hasPrior(), and CachingVertex< N >::operator TransientVertex().