EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairRadLenPoint.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairRadLenPoint.h
1 // -------------------------------------------------------------------------
2 // ----- FairRadLenPoint header file -----
3 // ----- Created 14/01/08 by M. Al-Turany -----
4 // -------------------------------------------------------------------------
5 
6 
12 #ifndef FAIRRADLENPOINT_H
13 #define FAIRRADLENPOINT_H
14 
15 #include "TObject.h"
16 #include "TVector3.h"
17 #include "FairMCPoint.h"
18 
20 {
21 
22  public:
23 
26 
27  FairRadLenPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
28  Double_t tof, Double_t length, Double_t eLoss, TVector3 posOut, TVector3 momOut,
29  Float_t fA, Float_t fZ, Float_t fDensity, Float_t fRadLen);
30 
31 
33  virtual ~FairRadLenPoint();
34 
35 
37  Float_t GetA() { return fA; }
38  Float_t GetZm() { return fZmat; }
39  Float_t GetRadLength() { return fRadLen;}
40  Float_t GetDensity() { return fDensity ; }
41 
42 
44  void SetA(Double_t A) { fA = A; }
45  void SetZm(Double_t Z) { fZmat = Z; }
46  void SetRadLength(Double_t length) { fRadLen = length;}
47  void SetDensity (Double_t Density) { fDensity = Density; }
48 
50  virtual void Print(const Option_t* opt) const;
51 
52  Double_t GetXOut() const { return fXOut;};
53  Double_t GetYOut() const { return fYOut;};
54  Double_t GetZOut() const { return fZOut;};
55 
56  Double_t GetPxOut() const { return fPxOut; }
57  Double_t GetPyOut() const { return fPyOut; }
58  Double_t GetPzOut() const { return fPzOut; }
59 
60  TVector3 GetPosition() const { return TVector3(fX, fY, fZ);}
61  TVector3 GetPositionOut() const { return TVector3(fXOut, fYOut, fZOut);}
62 
63  void PositionOut(TVector3& pos) const { pos.SetXYZ(fXOut, fYOut, fZOut);};
64  void MomentumOut(TVector3& mom) const { mom.SetXYZ(fPxOut,fPyOut,fPzOut); }
65 
66 
67  protected:
68 
69  Float_t fA; // A of material
70  Float_t fZmat; // Z of material
71  Float_t fDensity; // density of material
72  Float_t fRadLen; // radiation length
73 
74  Double_t fXOut, fYOut, fZOut;
75  Double_t fPxOut, fPyOut, fPzOut;
76 
77 
79 
80 };
81 
82 
83 #endif