CbmRoot
CbmTrdPoint.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmTrdPoint header file -----
3 // ----- Created 27/07/04 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
13 #ifndef CBMTRDPOINT_H
14 #define CBMTRDPOINT_H 1
15 
16 
17 #include <Rtypes.h> // for ClassDef
18 #include <RtypesCore.h> // for Double_t, Double32_t, Int_t, Option_t
19 #include <TVector3.h> // for TVector3
20 
21 #include <FairMCPoint.h> // for FairMCPoint
22 
23 class CbmTrdPoint : public FairMCPoint {
24 
25 public:
27  CbmTrdPoint();
28 
29 
41  CbmTrdPoint(Int_t trackID,
42  Int_t detID,
43  const TVector3& posIn,
44  const TVector3& momIn,
45  const TVector3& posOut,
46  const TVector3& momOut,
47  Double_t tof,
48  Double_t length,
49  Double_t eLoss);
50 
51 
53  // CbmTrdPoint(const CbmTrdPoint& point) { *this = point; };
54 
55 
57  virtual ~CbmTrdPoint();
58 
60  virtual void Print(const Option_t* opt) const;
61 
63  Double_t GetXIn() const { return fX; }
64  Double_t GetYIn() const { return fY; }
65  Double_t GetZIn() const { return fZ; }
66  Double_t GetXOut() const { return fX_out; }
67  Double_t GetYOut() const { return fY_out; }
68  Double_t GetZOut() const { return fZ_out; }
69  Double_t GetPxOut() const { return fPx_out; }
70  Double_t GetPyOut() const { return fPy_out; }
71  Double_t GetPzOut() const { return fPz_out; }
72  Double_t GetPxIn() const { return fPx; }
73  Double_t GetPyIn() const { return fPy; }
74  Double_t GetPzIn() const { return fPz; }
75 
76  Int_t GetModuleAddress() const { return GetDetectorID(); }
77 
78  void PositionOut(TVector3& pos) const { pos.SetXYZ(fX_out, fY_out, fZ_out); }
79  void MomentumOut(TVector3& mom) const {
80  mom.SetXYZ(fPx_out, fPy_out, fPz_out);
81  }
82 
83 private:
84  Double32_t fX_out, fY_out, fZ_out;
85  Double32_t fPx_out, fPy_out, fPz_out;
86 
87 
88  ClassDef(CbmTrdPoint, 3)
89 };
90 
91 
92 #endif
CbmTrdPoint::GetPxIn
Double_t GetPxIn() const
Definition: CbmTrdPoint.h:72
CbmTrdPoint::GetYOut
Double_t GetYOut() const
Definition: CbmTrdPoint.h:67
CbmTrdPoint::GetZIn
Double_t GetZIn() const
Definition: CbmTrdPoint.h:65
CbmTrdPoint::PositionOut
void PositionOut(TVector3 &pos) const
Definition: CbmTrdPoint.h:78
CbmTrdPoint::fZ_out
Double32_t fZ_out
Definition: CbmTrdPoint.h:84
CbmTrdPoint::GetXOut
Double_t GetXOut() const
Definition: CbmTrdPoint.h:66
CbmTrdPoint::fY_out
Double32_t fY_out
Definition: CbmTrdPoint.h:84
CbmTrdPoint::~CbmTrdPoint
virtual ~CbmTrdPoint()
Definition: CbmTrdPoint.cxx:46
CbmTrdPoint::GetPyIn
Double_t GetPyIn() const
Definition: CbmTrdPoint.h:73
CbmTrdPoint::Print
virtual void Print(const Option_t *opt) const
Definition: CbmTrdPoint.cxx:51
CbmTrdPoint::MomentumOut
void MomentumOut(TVector3 &mom) const
Definition: CbmTrdPoint.h:79
CbmTrdPoint::GetPyOut
Double_t GetPyOut() const
Definition: CbmTrdPoint.h:70
CbmTrdPoint::GetZOut
Double_t GetZOut() const
Definition: CbmTrdPoint.h:68
CbmTrdPoint::GetPxOut
Double_t GetPxOut() const
Definition: CbmTrdPoint.h:69
CbmTrdPoint
Definition: CbmTrdPoint.h:23
CbmTrdPoint::GetPzOut
Double_t GetPzOut() const
Definition: CbmTrdPoint.h:71
CbmTrdPoint::fPy_out
Double32_t fPy_out
Definition: CbmTrdPoint.h:85
CbmTrdPoint::GetXIn
Double_t GetXIn() const
Definition: CbmTrdPoint.h:63
CbmTrdPoint::GetModuleAddress
Int_t GetModuleAddress() const
Definition: CbmTrdPoint.h:76
CbmTrdPoint::CbmTrdPoint
CbmTrdPoint()
Definition: CbmTrdPoint.cxx:14
CbmTrdPoint::fPx_out
Double32_t fPx_out
Definition: CbmTrdPoint.h:85
pos
TVector3 pos
Definition: CbmMvdSensorDigiToHitTask.cxx:60
CbmTrdPoint::fPz_out
Double32_t fPz_out
Definition: CbmTrdPoint.h:85
CbmTrdPoint::fX_out
Double32_t fX_out
Definition: CbmTrdPoint.h:84
CbmTrdPoint::GetYIn
Double_t GetYIn() const
Definition: CbmTrdPoint.h:64
CbmTrdPoint::GetPzIn
Double_t GetPzIn() const
Definition: CbmTrdPoint.h:74