24 #ifndef GFABSTRACKREP_H
25 #define GFABSTRACKREP_H
161 const TVector3& point2,
164 TVector3& poca_onwire);
181 TMatrixT<double>& statePred,
182 TMatrixT<double>& covPred)=0;
193 virtual void Print()
const;
267 virtual void setData(
const TMatrixT<double>& st,
const GFDetPlane& pl,
const TMatrixT<double>* cov=NULL,
const TMatrixT<double>* aux=NULL){
270 if(cov!=NULL) fCov=*cov;
273 inline void setCov(
const TMatrixT<double>& aCov) {
277 fFirstState = aState;
283 fFirstPlane = aPlane;;
292 fLastPlane = aPlane;;
322 virtual void reset();
347 void Abort(std::string method);
Base Class for genfit track representations. Defines interface for track parameterizations.
const GFDetPlane & getReferencePlane() const
double getRedChiSqu() const
returns chi2/ndf
void addNDF(unsigned int n)
void Abort(std::string method)
void setFirstState(const TMatrixT< double > &aState)
GFDetPlane getFirstPlane() const
TMatrixT< double > getState() const
Detector plane genfit geometry class.
virtual void getPosMom(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom)=0
TMatrixT< double > fLastState
void setFirstPlane(const GFDetPlane &aPlane)
bool setInverted(bool f=true)
Deprecated. Should be removed soon.
double getCovElem(int i, int j) const
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 GFAbsTrackRep * prototype() const =0
TMatrixT< double > getFirstCov() const
double getStateElem(int i) const
unsigned int getDim() const
returns dimension of state vector
void setCov(const TMatrixT< double > &aCov)
virtual const TMatrixT< double > * getAuxInfo(const GFDetPlane &)
Get auxillary information from the track representation.
void setLastPlane(const GFDetPlane &aPlane)
virtual bool hasAuxInfo()
See if the track representation has auxillary information stored.
void setLastCov(const TMatrixT< double > &aCov)
TMatrixT< double > getLastState() const
TMatrixT< double > getLastCov() const
bool fInverted
specifies the direction of flight of the particle
void addChiSqu(double aChiSqu)
TMatrixT< double > getFirstState() const
virtual double extrapolate(const GFDetPlane &plane, TMatrixT< double > &statePred)
returns the tracklength spanned in this extrapolation
Base Class for representing a Hit in GENFIT.
unsigned int getNDF() const
void setNDF(unsigned int n)
GFDetPlane getLastPlane() const
void setChiSqu(double aChiSqu)
virtual void Print() const
int fStatusFlag
status of track representation: 0 means everything's OK
void setFirstCov(const TMatrixT< double > &aCov)
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...
void setLastState(const TMatrixT< double > &aState)
void setStatusFlag(int _val)
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
virtual void switchDirection()=0
TMatrixT< double > fLastCov
virtual GFAbsTrackRep * clone() const =0
void getPosMomCov(TVector3 &pos, TVector3 &mom, TMatrixT< double > &c)
virtual double getCharge() const =0
TMatrixT< double > getCov() const
TMatrixT< double > fCov
The covariance matrix.