23 GFAbsTrackRep::GFAbsTrackRep() : fDimension(5),fState(5,1), fCov(5,5), fChiSqu(0), fNdf(0), fStatusFlag(0), fInverted(false), fFirstState(5,1), fFirstCov(5,5), fLastState(5,1), fLastCov(5,5)
27 GFAbsTrackRep::GFAbsTrackRep(
int dim) : fDimension(dim), fState(dim,1), fCov(dim,dim), fChiSqu(0), fNdf(0), fStatusFlag(0), fInverted(false), fFirstState(dim,1), fFirstCov(dim,dim), fLastState(dim,1), fLastCov(dim,dim)
36 double retVal =
extrapolate(plane,statePred,covPred);
37 setData(statePred,plane,&covPred);
48 std::cerr << method <<
" as implemented in " << __FILE__
49 <<
" was called. This means that this feature was used "
50 <<
"in a track rep which didnt overwrite this method. "
51 << std::endl <<
"C++ throw;" << std::endl;
59 Abort(
"extrapolateToPoca()");
67 Abort(
"extrapolateToLine()");
80 Abort(
"getPosMomCov()");
85 std::cout<<
"GFAbsTrackRep::reset"<<std::endl;
86 TVector3 nullVec(0.,0.,0.);
98 std::cout <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
99 std::cout<<
"GFAbsTrackRep::Parameters at reference plane ";
101 std::cout<<
"GFAbsTrackRep::State"<<std::endl;
103 std::cout<<
"GFAbsTrackRep::Covariances"<<std::endl;
105 std::cout<<
"GFAbsTrackRep::chi^2"<<std::endl;
107 std::cout <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
Base Class for genfit track representations. Defines interface for track parameterizations.
void Abort(std::string method)
void set(const TVector3 &o, const TVector3 &u, const TVector3 &v)
Detector plane genfit geometry class.
TMatrixT< double > fLastState
TMatrixT< double > fFirstCov
virtual void extrapolateToLine(const TVector3 &point1, const TVector3 &point2, TVector3 &poca, TVector3 &normVec, TVector3 &poca_onwire)
This method extrapolates to the point of closest approach to a line.
virtual void getPosMomCov(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< double > &cov)
method which gets position, momentum and 6x6 covariance matrix
unsigned int fDimension
Dimensionality of track representation.
TMatrixT< double > fFirstState
state, cov and plane for first and last point in fit
virtual double extrapolate(const GFDetPlane &plane, TMatrixT< double > &statePred)
returns the tracklength spanned in this extrapolation
virtual void Print() const
virtual void extrapolateToPoint(const TVector3 &point, TVector3 &poca, TVector3 &normVec)
This method is to extrapolate the track to point of closest approach to a point in space...
virtual double stepalong(double h, TVector3 &point, TVector3 &dir)
make step of h cm along the track
TMatrixT< double > fState
The vector of track parameters.
virtual void setData(const TMatrixT< double > &st, const GFDetPlane &pl, const TMatrixT< double > *cov=NULL, const TMatrixT< double > *aux=NULL)
Puts the track representation in a given state.
double fChiSqu
chiSqu of the track fit
TMatrixT< double > fLastCov
TMatrixT< double > fCov
The covariance matrix.