FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTrackParam.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairTrackParam header file -----
10 // ----- Created 27/01/05 by V. Friese -----
11 // -------------------------------------------------------------------------
12 
25 #ifndef FAIRSTSTRACKPARAM
26 #define FAIRSTSTRACKPARAM 1
27 
28 #include <Rtypes.h> // for Double_t, Double32_t, Int_t, etc
29 #include <TMatrixFSymfwd.h> // for TMatrixFSym
30 #include <TObject.h> // for TObject
31 #include <TVector3.h> // for TVector3
32 
33 class FairTrackParam : public TObject
34 {
35  public:
38 
40  FairTrackParam(Double_t x,
41  Double_t y,
42  Double_t z,
43  Double_t tx,
44  Double_t ty,
45  Double_t qp,
46  const TMatrixFSym& covMat);
47 
49  FairTrackParam(const FairTrackParam& param);
50 
52  virtual ~FairTrackParam();
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 
71  void SetX(Double_t x) { fX = x; };
72  void SetY(Double_t y) { fY = y; };
73  void SetZ(Double_t z) { fZ = z; };
74  void SetTx(Double_t tx) { fTx = tx; };
75  void SetTy(Double_t ty) { fTy = ty; };
76  void SetQp(Double_t qp) { fQp = qp; };
77  void SetPosition(const TVector3& pos);
78  void SetCovMatrix(Double_t cov[]);
79  void SetCovMatrix(const TMatrixFSym& covMat);
80  void SetCovariance(Int_t i, Int_t j, Double_t val);
81 
84 
85  private:
87  Double32_t fX, fY, fZ;
88 
90  Double32_t fTx, fTy;
91 
93  Double32_t fQp;
94 
101  Double32_t fCovMatrix[15];
102 
103  ClassDef(FairTrackParam, 1);
104 };
105 
106 #endif
Double_t GetQp() const
void Momentum(TVector3 &mom) const
void SetCovMatrix(Double_t cov[])
void Position(TVector3 &pos) const
void SetPosition(const TVector3 &pos)
virtual ~FairTrackParam()
Double_t GetX() const
void SetX(Double_t x)
void Print(Option_t *option="") const
void SetZ(Double_t z)
void SetCovariance(Int_t i, Int_t j, Double_t val)
void CovMatrix(Double_t cov[]) const
FairTrackParam & operator=(const FairTrackParam &par)
Double_t GetY() const
FairMQExParamsParOne * par
Double_t GetZ() const
void SetTx(Double_t tx)
void SetQp(Double_t qp)
Double_t GetTy() const
void SetTy(Double_t ty)
Double_t GetCovariance(Int_t i, Int_t j) const
Double_t GetTx() const
void SetY(Double_t y)