EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GFTools.h File Reference
#include <cmath>
#include <GFAbsTrackRep.h>
#include <GFDetPlane.h>
#include <GFException.h>
#include <GFTrack.h>
#include <TMath.h>
#include <TMatrixT.h>
#include <TDecompSVD.h>
+ Include dependency graph for GFTools.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  GFTools
 Namespace for various tools, mainly smoothing.
 

Functions

TMatrixT< double > GFTools::getSmoothedPos (const GFTrack *trk, unsigned int irep, unsigned int ihit)
 Get smoothed track position in plane coordinates.
 
TVector3 GFTools::getSmoothedPosXYZ (const GFTrack *trk, unsigned int irep, unsigned int ihit, bool *ret=0)
 Get smoothed track position in global coordinates.
 
TVector3 GFTools::getBiasedSmoothedPosXYZ (const GFTrack *trk, unsigned int irep, unsigned int ihit, bool *ret=0)
 
TVector3 GFTools::getBiasedSmoothedMomXYZ (const GFTrack *trk, unsigned int irep, unsigned int ihit, bool *ret=0)
 Get smoothed momentum in global coordinates.
 
TMatrixT< double > GFTools::getSmoothedCov (const GFTrack *trk, unsigned int irep, unsigned int ihit)
 Get smoothed track covariance in plane coordinates.
 
bool GFTools::getSmoothedData (const GFTrack *trk, unsigned int irep, unsigned int ihit, TMatrixT< double > &smoothed_state, TMatrixT< double > &smoothed_cov)
 Get smoothed state vector and state covariance.
 
bool GFTools::getSmoothedData (const GFTrack *trk, unsigned int irep, unsigned int ihit, TMatrixT< double > &smoothed_state, TMatrixT< double > &smoothed_cov, GFDetPlane &smoothing_plane)
 Get smoothed state vector, state covariance and smoothing plane.
 
bool GFTools::getSmoothedData (const GFTrack *trk, unsigned int irep, unsigned int ihit, TMatrixT< double > &smoothed_state, TMatrixT< double > &smoothed_cov, GFDetPlane &smoothing_plane, TMatrixT< double > &auxInfo)
 Get smoothed state vector, state covariance and smoothing plane.
 
GFDetPlane GFTools::getSmoothingPlane (const GFTrack *trk, unsigned int irep, unsigned int ihit)
 Get smoothing plane.
 
bool GFTools::getBiasedSmoothedData (const GFTrack *trk, unsigned int irep, unsigned int ihit, TMatrixT< double > &smoothed_state, TMatrixT< double > &smoothed_cov)
 Get biased smoothed state vector and state covariance.
 
bool GFTools::getBiasedSmoothedData (const GFTrack *trk, unsigned int irep, unsigned int ihit, TMatrixT< double > &smoothed_state, TMatrixT< double > &smoothed_cov, GFDetPlane &smoothing_plane, bool extrapolation_allowed=true)
 Get biased smoothed state vector, state covariance and smoothing plane.
 
bool GFTools::getBiasedSmoothedData (const GFTrack *trk, unsigned int irep, unsigned int ihit, TMatrixT< double > &smoothed_state, TMatrixT< double > &smoothed_cov, GFDetPlane &smoothing_plane, TMatrixT< double > &auxInfo, bool extrapolation_allowed=true)
 Get biased smoothed state vector, state covariance and smoothing plane.
 
TMatrixT< double > GFTools::getBiasedSmoothedPos (const GFTrack *trk, unsigned int irep, unsigned int ihit)
 Get biased smoothed track position in plane coordinates.
 
TMatrixT< double > GFTools::getBiasedSmoothedCov (const GFTrack *trk, unsigned int irep, unsigned int ihit)
 Get biased smoothed track covariance in plane coordinates.
 
double GFTools::getTrackLength (const GFTrack *trk, unsigned int irep, unsigned int startHit=0, unsigned int endHit=0)
 
void GFTools::invertMatrix (const TMatrixT< double > &mat, TMatrixT< double > &inv)
 Invert a matrix, throwing GFException when inversion fails.
 
double GFTools::getSmoothedChiSqu (const GFTrack *trk, unsigned int irep, unsigned int ihit)
 Get smoothed chi2 for a specific hit (ihit).
 
void GFTools::updateRepSmoothed (GFTrack *trk, unsigned int irep, unsigned int ihit)
 Set smoothed data at hit nr. ihit to trackrep nr. irep.
 
unsigned int GFTools::getClosestHit (const GFTrack *trk, unsigned int irep, const TVector3 &pos, double &distance, bool checkEveryHit=false)