24 #ifndef GFABSTRACKREP_H 25 #define GFABSTRACKREP_H 166 const TVector3& point2,
169 TVector3& poca_onwire);
184 TMatrixT<Double_t>& statePred,
185 TMatrixT<Double_t>& covPred)=0;
196 virtual void Print(std::ostream& out = std::cout)
const;
258 virtual void setData(
const TMatrixT<Double_t>& st,
const GFDetPlane& pl,
const TMatrixT<Double_t>* cov=NULL){
261 if(cov!=NULL) fCov=*cov;
263 inline void setCov(
const TMatrixT<Double_t>& aCov) {
267 fFirstState = aState;
273 fFirstPlane = aPlane;;
282 fLastPlane = aPlane;;
312 virtual void reset();
315 void Abort(std::string method);
318 {
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