12#ifndef CBMTOFTRACKLETPARAM_H_
13#define CBMTOFTRACKLETPARAM_H_
91 void GetDirCos(
double& nx,
double& ny,
double& nz)
const
93 double p = (std::abs(
fQp) != 0.) ? 1. / std::abs(
fQp) : 1.e20;
94 double pz = std::sqrt(p * p / (
fTx *
fTx +
fTy *
fTy + 1));
97 TVector3 unit = TVector3(px, py, pz).Unit();
109 std::vector<double> state(5, 0.);
137 std::stringstream ss;
138 ss <<
"TofTrackletParam: pos=(" <<
fX <<
"," <<
fY <<
"," <<
fZ <<
") tx=" <<
fTx <<
" ty=" <<
fTy
149 double GetZr(
double R)
const;
153 if (
fTy != 0.) {
return (Y -
fY) /
fTy +
fZ; }
void SetCovMatrix(const std::vector< double > &C)
std::vector< double > fCovMatrix
void GetDirCos(double &nx, double &ny, double &nz) const
Return direction cosines.
double GetZy(double Y) const
void SetStateVector(const std::vector< double > &x)
Set parameters from vector.
CbmTofTrackletParam()
Constructor.
const std::vector< double > & GetCovMatrix() const
double GetCovariance(int index) const
std::vector< double > GetStateVector() const
Return state vector as vector.
ClassDef(CbmTofTrackletParam, 1)
void SetCovariance(int index, double cov)
std::string ToString() const
Return string representation of class.
virtual ~CbmTofTrackletParam()
Destructor.
double GetZr(double R) const