Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Node Class Reference

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/packages/reco/kfitter/KalmanUtil.h>

Public Member Functions

 Node ()
 default constructor, only initialize the matrix dimension More...
 
 Node (const Hit &_hit)
 constructor from a Hit to a Node More...
 
 Node (const SignedHit &_hit_signed)
 Constructor from a signed hit to a Node. More...
 
void print (bool verbose=true)
 print for debugging purposes More...
 
TrkPargetPredicted ()
 Gets. More...
 
TrkPargetFiltered ()
 
TrkPargetSmoothed ()
 
TMatrixD & getMeasurement ()
 
TMatrixD & getMeasurementCov ()
 
TMatrixD getPredictedResidual ()
 Matrix calculations, should be called as less as possible. More...
 
TMatrixD getPredictedResidualCov ()
 
TMatrixD getFilteredResidual ()
 
TMatrixD getFilteredResidualCov ()
 
TMatrixD getSmoothedResidual ()
 
TMatrixD getSmoothedResidualCov ()
 
TMatrixD & getPropagator ()
 
TMatrixD & getProjector ()
 
TMatrixD getKalmanGain ()
 
double getZ ()
 
double getChisq ()
 
HitgetHit ()
 
bool isPredictionDone ()
 
bool isFilterDone ()
 
bool isSmoothDone ()
 
void setMeasurement (TMatrixD &m, TMatrixD &cov)
 Sets. More...
 
void setZ (double z)
 
void setProjector (TMatrixD &p)
 
void setPropagator (TMatrixD &p)
 
void setPredictionDone (bool flag=true)
 
void setFilterDone (bool flag=true)
 
void setSmoothDone (bool flag=true)
 
void setChisq (double chisq)
 
void addChisq (double chisq)
 
void resetFlags ()
 
bool operator< (const Node &elem) const
 Overriden operators. More...
 

Detailed Description

Definition at line 90 of file KalmanUtil.h.

Constructor & Destructor Documentation

◆ Node() [1/3]

Node::Node ( )

default constructor, only initialize the matrix dimension

Definition at line 234 of file KalmanUtil.cxx.

◆ Node() [2/3]

Node::Node ( const Hit _hit)

constructor from a Hit to a Node

Definition at line 249 of file KalmanUtil.cxx.

References TrkPar::_z, Hit::detectorID, Hit::driftDistance, GeomSvc::getCostheta(), GeomSvc::getPlanePosition(), GeomSvc::getPlaneResolution(), GeomSvc::getSintheta(), GeomSvc::instance(), and Hit::pos.

+ Here is the call graph for this function:

◆ Node() [3/3]

Node::Node ( const SignedHit _hit_signed)

Constructor from a signed hit to a Node.

Definition at line 281 of file KalmanUtil.cxx.

References TrkPar::_z, Hit::detectorID, Hit::driftDistance, GeomSvc::getCostheta(), GeomSvc::getPlanePosition(), GeomSvc::getPlaneResolution(), GeomSvc::getSintheta(), SignedHit::hit, Hit::index, GeomSvc::instance(), Hit::pos, and SignedHit::sign.

+ Here is the call graph for this function:

Member Function Documentation

◆ addChisq()

void Node::addChisq ( double  chisq)
inline

Definition at line 146 of file KalmanUtil.h.

◆ getChisq()

double Node::getChisq ( )
inline

Definition at line 127 of file KalmanUtil.h.

Referenced by VertexFit::findVertex(), KalmanTrack::getMomentumVertex(), and SRecTrack::setZVertex().

+ Here is the caller graph for this function:

◆ getFiltered()

TrkPar& Node::getFiltered ( )
inline

◆ getFilteredResidual()

TMatrixD Node::getFilteredResidual ( )

Definition at line 343 of file KalmanUtil.cxx.

References TrkPar::_state_kf.

◆ getFilteredResidualCov()

TMatrixD Node::getFilteredResidualCov ( )

Definition at line 351 of file KalmanUtil.cxx.

References TrkPar::_covar_kf, and SMatrix::getABCt().

+ Here is the call graph for this function:

◆ getHit()

Hit& Node::getHit ( )
inline

Definition at line 129 of file KalmanUtil.h.

Referenced by KalmanTrack::getCurrentDetectorID(), KalmanTrack::getExpPosError(), KalmanTrack::getNodeDownstream(), and KalmanTrack::getNodeUpstream().

+ Here is the caller graph for this function:

◆ getKalmanGain()

TMatrixD Node::getKalmanGain ( )

Definition at line 375 of file KalmanUtil.cxx.

References TrkPar::_covar_kf, SMatrix::getABCt(), SMatrix::getABtC(), and SMatrix::invertMatrix().

+ Here is the call graph for this function:

◆ getMeasurement()

TMatrixD& Node::getMeasurement ( )
inline

Definition at line 110 of file KalmanUtil.h.

Referenced by KalmanFilter::filter(), KalmanTrack::getMomentumVertex(), SRecTrack::setZVertex(), and VertexFit::VertexFit().

+ Here is the caller graph for this function:

◆ getMeasurementCov()

TMatrixD& Node::getMeasurementCov ( )
inline

Definition at line 111 of file KalmanUtil.h.

Referenced by KalmanFilter::filter(), KalmanTrack::getMomentumVertex(), SRecTrack::setZVertex(), and VertexFit::VertexFit().

+ Here is the caller graph for this function:

◆ getPredicted()

◆ getPredictedResidual()

TMatrixD Node::getPredictedResidual ( )

Matrix calculations, should be called as less as possible.

Definition at line 327 of file KalmanUtil.cxx.

References TrkPar::_state_kf.

◆ getPredictedResidualCov()

TMatrixD Node::getPredictedResidualCov ( )

Definition at line 335 of file KalmanUtil.cxx.

References TrkPar::_covar_kf, and SMatrix::getABCt().

+ Here is the call graph for this function:

◆ getProjector()

TMatrixD& Node::getProjector ( )
inline

Definition at line 122 of file KalmanUtil.h.

Referenced by KalmanFilter::filter(), KalmanTrack::getExpLcSlopErr(), KalmanTrack::getExpLocalSlop(), KalmanTrack::getExpPosError(), KalmanTrack::getExpPosition(), KalmanTrack::getMomentumVertex(), SRecTrack::setZVertex(), and VertexFit::VertexFit().

+ Here is the caller graph for this function:

◆ getPropagator()

TMatrixD& Node::getPropagator ( )
inline

Definition at line 121 of file KalmanUtil.h.

Referenced by KalmanFilter::predict(), and KalmanFilter::smooth().

+ Here is the caller graph for this function:

◆ getSmoothed()

TrkPar& Node::getSmoothed ( )
inline

Definition at line 108 of file KalmanUtil.h.

Referenced by VertexFit::findSingleMuonVertex(), KalmanTrack::getExpPosErrorFast(), KalmanTrack::getExpPositionFast(), KalmanFitter::initSmoother(), KalmanTrack::KalmanTrack(), KalmanFitter::setStartingParameter(), and KalmanFilter::smooth().

+ Here is the caller graph for this function:

◆ getSmoothedResidual()

TMatrixD Node::getSmoothedResidual ( )

Definition at line 359 of file KalmanUtil.cxx.

References TrkPar::_state_kf.

◆ getSmoothedResidualCov()

TMatrixD Node::getSmoothedResidualCov ( )

Definition at line 367 of file KalmanUtil.cxx.

References TrkPar::_covar_kf, and SMatrix::getABCt().

+ Here is the call graph for this function:

◆ getZ()

double Node::getZ ( )
inline

Definition at line 126 of file KalmanUtil.h.

Referenced by VertexFit::findVertex(), and KalmanFilter::predict().

+ Here is the caller graph for this function:

◆ isFilterDone()

bool Node::isFilterDone ( )
inline

Definition at line 132 of file KalmanUtil.h.

Referenced by KalmanFilter::filter(), VertexFit::findSingleMuonVertex(), KalmanTrack::getExpPosErrorFast(), KalmanTrack::getExpPositionFast(), KalmanFitter::initSmoother(), and KalmanFilter::smooth().

+ Here is the caller graph for this function:

◆ isPredictionDone()

bool Node::isPredictionDone ( )
inline

Definition at line 131 of file KalmanUtil.h.

Referenced by KalmanFilter::filter(), and KalmanFilter::predict().

+ Here is the caller graph for this function:

◆ isSmoothDone()

bool Node::isSmoothDone ( )
inline

Definition at line 133 of file KalmanUtil.h.

Referenced by VertexFit::findSingleMuonVertex(), KalmanTrack::getExpPosErrorFast(), KalmanTrack::getExpPositionFast(), KalmanFitter::initSmoother(), and KalmanFilter::smooth().

+ Here is the caller graph for this function:

◆ operator<()

bool Node::operator< ( const Node elem) const
inline

Overriden operators.

Definition at line 151 of file KalmanUtil.h.

◆ print()

void Node::print ( bool  verbose = true)

print for debugging purposes

Definition at line 197 of file KalmanUtil.cxx.

References TrkPar::_state_kf, TrkPar::print(), and SMatrix::printMatrix().

+ Here is the call graph for this function:

◆ resetFlags()

void Node::resetFlags ( )

Definition at line 381 of file KalmanUtil.cxx.

Referenced by VertexFit::findVertex().

+ Here is the caller graph for this function:

◆ setChisq()

void Node::setChisq ( double  chisq)
inline

Definition at line 145 of file KalmanUtil.h.

Referenced by KalmanFilter::filter(), and KalmanTrack::KalmanTrack().

+ Here is the caller graph for this function:

◆ setFilterDone()

void Node::setFilterDone ( bool  flag = true)
inline

Definition at line 142 of file KalmanUtil.h.

Referenced by KalmanFilter::filter(), and KalmanTrack::KalmanTrack().

+ Here is the caller graph for this function:

◆ setMeasurement()

void Node::setMeasurement ( TMatrixD &  m,
TMatrixD &  cov 
)

Sets.

Definition at line 321 of file KalmanUtil.cxx.

◆ setPredictionDone()

void Node::setPredictionDone ( bool  flag = true)
inline

Definition at line 141 of file KalmanUtil.h.

Referenced by KalmanTrack::addHit(), KalmanTrack::KalmanTrack(), and KalmanFilter::predict().

+ Here is the caller graph for this function:

◆ setProjector()

void Node::setProjector ( TMatrixD &  p)
inline

Definition at line 138 of file KalmanUtil.h.

◆ setPropagator()

void Node::setPropagator ( TMatrixD &  p)
inline

Definition at line 139 of file KalmanUtil.h.

◆ setSmoothDone()

void Node::setSmoothDone ( bool  flag = true)
inline

Definition at line 143 of file KalmanUtil.h.

Referenced by KalmanFitter::initSmoother(), KalmanTrack::KalmanTrack(), and KalmanFilter::smooth().

+ Here is the caller graph for this function:

◆ setZ()

void Node::setZ ( double  z)
inline

Definition at line 137 of file KalmanUtil.h.

Referenced by VertexFit::findVertex(), KalmanTrack::getMomentumVertex(), KalmanTrack::KalmanTrack(), and SRecTrack::setZVertex().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: