EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairTrackParam.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairTrackParam.h
1 // -------------------------------------------------------------------------
2 // ----- FairTrackParam header file -----
3 // ----- Created 27/01/05 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
6 
20 #ifndef FAIRSTSTRACKPARAM
21 #define FAIRSTSTRACKPARAM 1
22 
23 
24 # include "TObject.h"
25 
26 #include "TMatrixFSym.h"
27 #include "TVector3.h"
28 
29 
30 
31 class FairTrackParam : public TObject
32 {
33 
34  public:
35 
38 
39 
41  FairTrackParam(Double_t x, Double_t y, Double_t z,
42  Double_t tx, Double_t ty, Double_t qp,
43  const TMatrixFSym& covMat);
44 
45 
47  FairTrackParam(const FairTrackParam& param);
48 
49 
51  virtual ~FairTrackParam();
52 
53 
55  void Print(Option_t* option = "") const;
56 
58  Double_t GetX() const { return fX; };
59  Double_t GetY() const { return fY; };
60  Double_t GetZ() const { return fZ; };
61  Double_t GetTx() const { return fTx; };
62  Double_t GetTy() const { return fTy; };
63  Double_t GetQp() const { return fQp; };
64  void Position(TVector3& pos) const { pos.SetXYZ(fX, fY, fZ); };
65  void Momentum(TVector3& mom) const;
66  void CovMatrix(Double_t cov[]) const;
67  void CovMatrix(TMatrixFSym& covMat) const;
68  Double_t GetCovariance(Int_t i, Int_t j) const;
69 
70 
72  void SetX(Double_t x) { fX = x; };
73  void SetY(Double_t y) { fY = y; };
74  void SetZ(Double_t z) { fZ = z; };
75  void SetTx(Double_t tx) { fTx = tx; };
76  void SetTy(Double_t ty) { fTy = ty; };
77  void SetQp(Double_t qp) { fQp = qp; };
78  void SetPosition(const TVector3& pos);
79  void SetCovMatrix(Double_t cov[]);
80  void SetCovMatrix(const TMatrixFSym& covMat);
81  void SetCovariance(Int_t i, Int_t j, Double_t val);
82 
83 
86 
87 
88 
89  private:
90 
92  Double32_t fX, fY, fZ;
93 
95  Double32_t fTx, fTy;
96 
98  Double32_t fQp;
99 
106  Double32_t fCovMatrix[15];
107 
108 
110 
111 };
112 
113 
114 #endif