24 #ifndef GFABSTRACKREP_H 25 #define GFABSTRACKREP_H 164 const TVector3& point2,
167 TVector3& poca_onwire);
182 TMatrixT<Double_t>& statePred,
183 TMatrixT<Double_t>& covPred)=0;
194 virtual void Print(std::ostream& out = std::cout)
const;
256 virtual void setData(
const TMatrixT<Double_t>& st,
const GFDetPlane& pl,
const TMatrixT<Double_t>* cov=NULL){
259 if(cov!=NULL) fCov=*cov;
261 inline void setCov(
const TMatrixT<Double_t>& aCov) {
265 fFirstState = aState;
271 fFirstPlane = aPlane;;
280 fLastPlane = aPlane;;
310 virtual void reset();
316 {
throw std::logic_error(
std::string(__func__) +
"::Print(Option_t*) not available"); }
unsigned int getNDF() const
void setNDF(unsigned int n)
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
const GFDetPlane & getReferencePlane() const
TMatrixT< Double_t > getLastCov() const
virtual GFAbsTrackRep * clone() const =0
GFDetPlane getLastPlane() const
TMatrixT< Double_t > getLastState() const
virtual void stepalong(double h)
make step of h cm along the track
TMatrixT< Double_t > getFirstCov() const
Generic Interface to magnetic fields in GENFIT.
void setLastCov(const TMatrixT< Double_t > &aCov)
double fChiSqu
chiSqu of the track fit
void setFirstPlane(const GFDetPlane &aPlane)
unsigned int fDimension
Dimensionality of track representation.
const TMatrixT< Double_t > & getState() const
virtual void getPosMomCov(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< Double_t > &cov)
method which gets position, momentum and 6x6 covariance matrix
GFDetPlane getFirstPlane() const
Base Class for genfit track representations. Defines interface for track parameterizations.
void setCov(const TMatrixT< Double_t > &aCov)
virtual void Print(Option_t *) const
void setChiSqu(double aChiSqu)
TMatrixT< Double_t > fCov
The covariance matrix.
void addNDF(unsigned int n)
double getCovElem(int i, int j) const
void getPosMomCov(TVector3 &pos, TVector3 &mom, TMatrixT< Double_t > &c)
virtual void setData(const TMatrixT< Double_t > &st, const GFDetPlane &pl, const TMatrixT< Double_t > *cov=NULL)
virtual GFAbsTrackRep * prototype() const =0
TMatrixT< Double_t > fFirstCov
void addChiSqu(double aChiSqu)
bool setInverted(bool f=true)
Deprecated. Should be removed soon.
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 > getFirstState() const
virtual double getCharge() const =0
TMatrixT< Double_t > fLastState
TMatrixT< Double_t > fLastCov
const TMatrixT< Double_t > & getCov() const
void setFirstCov(const TMatrixT< Double_t > &aCov)
void setLastPlane(const GFDetPlane &aPlane)
TMatrixT< Double_t > fFirstState
state, cov and plane for first and last point in fit
void setLastState(const TMatrixT< Double_t > &aState)
int fStatusFlag
status of track representation: 0 means everything's OK
double getStateElem(int i) const
void setStatusFlag(int _val)
TMatrixT< Double_t > fState
The vector of track parameters.
void setFirstState(const TMatrixT< Double_t > &aState)
unsigned int getDim() const
returns dimension of state vector
virtual void switchDirection()=0
double getRedChiSqu() const
returns chi2/ndf
virtual void getPosMom(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom)=0
virtual void Print(std::ostream &out=std::cout) const