EIC 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 115 of file KalmanVertexUpdater.ipp.

View newest version in sPHENIX GitHub at line 115 of file KalmanVertexUpdater.ipp

References Acts::LinearizedTrack::constantTerm, Acts::LinearizedTrack::momentumJacobian, Acts::KalmanVertexUpdater::MatrixCache::momWeightInv, Acts::KalmanVertexUpdater::MatrixCache::newVertexPos, Acts::LinearizedTrack::parametersAtPCA, Acts::LinearizedTrack::positionJacobian, and Acts::LinearizedTrack::weightAtPCA.

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, Acts::KalmanVertexUpdater::updatePosition(), and vtx().

+ 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 106 of file KalmanVertexUpdater.ipp.

View newest version in sPHENIX GitHub at line 106 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: