57 double retVal =
extrapolate(plane, statePred, covPred);
58 setData(statePred, plane, &covPred);
71 std::cerr << method <<
" as implemented in " << __FILE__
72 <<
" was called. This means that this feature was used " 73 <<
"in a track rep which didnt overwrite this method. " << std::endl
74 <<
"C++ throw;" << std::endl;
76 throw GFException(
"genf::GFAbsTrackRep: " + method +
"() not implemented", __LINE__, __FILE__)
84 Abort(
"extrapolateToPoca()");
93 Abort(
"extrapolateToLine()");
104 TMatrixT<Double_t>& )
106 Abort(
"getPosMomCov()");
111 std::cout <<
"GFAbsTrackRep::reset" << std::endl;
112 TVector3 nullVec(0., 0., 0.);
124 out <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
125 out <<
"GFAbsTrackRep::Parameters at reference plane ";
127 out <<
"GFAbsTrackRep::State" << std::endl;
129 out <<
"GFAbsTrackRep::Covariances" << std::endl;
131 out <<
"GFAbsTrackRep::chi^2" << std::endl;
133 out <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
void set(const TVector3 &o, const TVector3 &u, const TVector3 &v)
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.
bool fInverted
specifies the direction of flight of the particle
virtual void stepalong(double h)
make step of h cm along the track
double fChiSqu
chiSqu of the track fit
void PrintROOTmatrix(std::ostream &out, const TMatrixT< T > &m)
Small utility functions which print some ROOT objects into an output stream.
unsigned int fDimension
Dimensionality of track representation.
void Print(std::ostream &out=std::cout) const
virtual void getPosMomCov(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< Double_t > &cov)
method which gets position, momentum and 6x6 covariance matrix
TMatrixT< Double_t > fCov
The covariance matrix.
virtual void setData(const TMatrixT< Double_t > &st, const GFDetPlane &pl, const TMatrixT< Double_t > *cov=NULL)
TMatrixT< Double_t > fFirstCov
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 extrapolate(const GFDetPlane &plane, TMatrixT< Double_t > &statePred)
returns the tracklength spanned in this extrapolation
void Abort(std::string method)
TMatrixT< Double_t > fLastState
TMatrixT< Double_t > fLastCov
TMatrixT< Double_t > fFirstState
state, cov and plane for first and last point in fit
int fStatusFlag
status of track representation: 0 means everything's OK
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
TMatrixT< Double_t > fState
The vector of track parameters.
virtual void Print(std::ostream &out=std::cout) const