23 genf::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 genf::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;
53 throw GFException(
"genf::GFAbsTrackRep: " + method +
"() not implemented", __LINE__, __FILE__).
setFatal();
59 Abort(
"extrapolateToPoca()");
67 Abort(
"extrapolateToLine()");
76 Abort(
"getPosMomCov()");
81 std::cout<<
"GFAbsTrackRep::reset"<<std::endl;
82 TVector3 nullVec(0.,0.,0.);
94 out <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
95 out <<
"GFAbsTrackRep::Parameters at reference plane ";
97 out <<
"GFAbsTrackRep::State"<<std::endl;
99 out <<
"GFAbsTrackRep::Covariances"<<std::endl;
101 out <<
"GFAbsTrackRep::chi^2"<<std::endl;
103 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