Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::KalmanVertexUpdater::detail Namespace Reference

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.
 

Function Documentation

template<typename input_track_t >
double Acts::KalmanVertexUpdater::detail::trackParametersChi2 ( const LinearizedTrack &  linTrack,
const MatrixCache matrixCache 
)

Calculates chi2 of refitted track parameters w.r.t. updated vertex.

Parameters
linTrackLinearized version of track
matrixCacheA cache to store matrix information
Returns
Chi2

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.

template<typename input_track_t >
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.

Parameters
vtxVertex to be updated
trkTrack 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().

+ Here is the call graph for this function:

template<typename input_track_t >
double Acts::KalmanVertexUpdater::detail::vertexPositionChi2 ( const Vertex< input_track_t > &  oldVtx,
const MatrixCache matrixCache 
)

Takes old and new vtx and calculates position chi2.

Parameters
oldVtxOld vertex
matrixCacheA cache to store matrix information
Returns
Chi2

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().

+ Here is the call graph for this function: