Go to the documentation of this file.
8 #ifndef CBMTOFTRACKLETPARAM_H_
9 #define CBMTOFTRACKLETPARAM_H_
12 #include <RtypesCore.h>
77 void GetDirCos(Double_t& nx, Double_t& ny, Double_t& nz)
const {
78 Double_t p = (std::abs(
fQp) != 0.) ? 1. / std::abs(
fQp) : 1.e20;
80 Double_t px =
fTx * pz;
81 Double_t py =
fTy * pz;
82 TVector3 unit = TVector3(px, py, pz).Unit();
93 std::vector<Double_t> state(5, 0.);
119 std::stringstream ss;
120 ss <<
"TrackletParam: pos=(" <<
fX <<
"," <<
fY <<
"," <<
fZ
121 <<
") tx=" <<
fTx <<
" ty=" <<
fTy <<
" qp=" <<
fQp;
132 Double_t
GetZr(Double_t R)
const;
135 if (
fTy != 0.) {
return (Y -
fY) /
fTy +
fZ; }
std::vector< Double_t > GetStateVector() const
Return state vector as vector.
friend F32vec4 sqrt(const F32vec4 &a)
void SetCovMatrix(const std::vector< Double_t > &C)
std::vector< Double_t > fCovMatrix
void SetCovariance(int index, Double_t cov)
virtual ~CbmTofTrackletParam()
Destructor.
std::string ToString() const
Return string representation of class.
void GetDirCos(Double_t &nx, Double_t &ny, Double_t &nz) const
Return direction cosines.
Double_t GetZr(Double_t R) const
void SetStateVector(const std::vector< Double_t > &x)
Set parameters from vector.
Double_t GetCovariance(int index) const
const std::vector< Double_t > & GetCovMatrix() const
Double_t GetZy(Double_t Y) const
ClassDef(CbmTofTrackletParam, 1)
CbmTofTrackletParam()
Constructor.