Analysis Software
Documentation for sPHENIX simulation software
|
Functions | |
template<typename input_track_t > | |
double | vertexPositionChi2 (const Vertex< input_track_t > &oldVtx, const MatrixCache &matrixCache) |
Takes old and new vtx and calculates position chi2. | |
template<typename input_track_t > | |
double | trackParametersChi2 (const LinearizedTrack &linTrack, const MatrixCache &matrixCache) |
Calculates chi2 of refitted track parameters w.r.t. updated vertex. | |
template<typename input_track_t > | |
void | update (Vertex< input_track_t > &vtx, TrackAtVertex< input_track_t > &trk, int sign) |
Adds or removes (depending on sign ) tracks from vertex and updates the vertex. | |
double Acts::KalmanVertexUpdater::detail::trackParametersChi2 | ( | const LinearizedTrack & | linTrack, |
const MatrixCache & | matrixCache | ||
) |
Calculates chi2 of refitted track parameters w.r.t. updated vertex.
linTrack | Linearized version of track |
matrixCache | A cache to store matrix information |
Definition at line 116 of file KalmanVertexUpdater.ipp.
View newest version in sPHENIX GitHub at line 116 of file KalmanVertexUpdater.ipp
References Acts::LinearizedTrack::constantTerm, Acts::LinearizedTrack::covarianceAtPCA, Acts::LinearizedTrack::momentumJacobian, Acts::KalmanVertexUpdater::MatrixCache::momWeightInv, Acts::KalmanVertexUpdater::MatrixCache::newVertexPos, Acts::LinearizedTrack::parametersAtPCA, and Acts::LinearizedTrack::positionJacobian.
void Acts::KalmanVertexUpdater::detail::update | ( | Vertex< input_track_t > & | vtx, |
TrackAtVertex< input_track_t > & | trk, | ||
int | sign | ||
) |
Adds or removes (depending on sign
) tracks from vertex and updates the vertex.
vtx | Vertex to be updated |
trk | Track to be added to/removed from vtx |
sign | +1 (add track) or -1 (remove track) |
Definition at line 20 of file KalmanVertexUpdater.ipp.
View newest version in sPHENIX GitHub at line 20 of file KalmanVertexUpdater.ipp
References Acts::TrackAtVertex< input_track_t >::chi2Track, Acts::Vertex< input_track_t >::fitQuality(), Acts::TrackAtVertex< input_track_t >::linearizedState, Acts::TrackAtVertex< input_track_t >::ndf, Acts::KalmanVertexUpdater::MatrixCache::newVertexCov, Acts::KalmanVertexUpdater::MatrixCache::newVertexPos, Acts::TrackAtVertex< input_track_t >::trackWeight, and Acts::KalmanVertexUpdater::updatePosition().
double Acts::KalmanVertexUpdater::detail::vertexPositionChi2 | ( | const Vertex< input_track_t > & | oldVtx, |
const MatrixCache & | matrixCache | ||
) |
Takes old and new vtx and calculates position chi2.
oldVtx | Old vertex |
matrixCache | A cache to store matrix information |
Definition at line 107 of file KalmanVertexUpdater.ipp.
View newest version in sPHENIX GitHub at line 107 of file KalmanVertexUpdater.ipp
References Acts::KalmanVertexUpdater::MatrixCache::newVertexPos, Acts::KalmanVertexUpdater::MatrixCache::oldVertexWeight, and Acts::Vertex< input_track_t >::position().