12#ifndef CBMLITTRACKPARAM_H_
13#define CBMLITTRACKPARAM_H_
25using std::stringstream;
83 TVector3 unit = TVector3(px, py, pz).Unit();
95 vector<litfloat> state(6, 0.);
126 ss <<
"TrackParam: pos=(" <<
fX <<
"," <<
fY <<
"," <<
fZ <<
") tx=" <<
fTx <<
" ty=" <<
fTy <<
" qp=" <<
fQp
127 <<
", fTime=" <<
fTime;
Define floating point number type litfloat.
Data class for track parameters.
void GetDirCos(litfloat &nx, litfloat &ny, litfloat &nz) const
Return direction cosines.
string ToString() const
Return string representation of class.
virtual ~CbmLitTrackParam()
Destructor.
void SetStateVector(const vector< litfloat > &x)
Set parameters from vector.
static litfloat fSpeedOfLight
void SetCovariance(int index, litfloat cov)
vector< litfloat > GetStateVector() const
Return state vector as vector.
CbmLitTrackParam()
Constructor.
const vector< litfloat > & GetCovMatrix() const
void SetCovMatrix(const vector< litfloat > &C)
vector< litfloat > fCovMatrix
litfloat GetCovariance(int index) const