EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairRadMapPoint.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairRadMapPoint.h
1 // -------------------------------------------------------------------------
2 // ----- FairRadMapPoint header file -----
3 // -------------------------------------------------------------------------
4 
5 
11 #ifndef FAIRRADMAPPOINT_H
12 #define FAIRRADMAPPOINT_H
13 
14 #include "TObject.h"
15 #include "TVector3.h"
16 #include "FairMCPoint.h"
17 
19 {
20 
21  public:
22 
25 
26  FairRadMapPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
27  Double_t tof, Double_t length, Double_t eLoss,
28  TVector3 posOut, TVector3 momOut,
29  Float_t fA, Float_t fZ, Float_t fDensity, Double_t fVolMass,
30  Double_t fStep, Double_t fDose, Double_t fDoseSL, Int_t fPdg );
31 
32 
34  virtual ~FairRadMapPoint();
35 
36 
38  Float_t GetA() { return fA; }
39  Float_t GetZm() { return fZmat; }
40  Float_t GetMass() { return fVolMass;}
41  Float_t GetDensity() { return fDensity ; }
42 
44  void SetA(Double_t A) { fA = A; }
45  void SetZm(Double_t Z) { fZmat = Z; }
46  void SetMass(Double_t vmass) { fVolMass = vmass;}
47  void SetDensity (Double_t Density) { fDensity = Density; }
48 
50  virtual void Print(const Option_t* opt) const;
51 
52  Int_t GetPdg() const { return fPdg;};
53 
54  Double_t GetXOut() const { return fXOut;};
55  Double_t GetYOut() const { return fYOut;};
56  Double_t GetZOut() const { return fZOut;};
57 
58  Double_t GetPxOut() const { return fPxOut; }
59  Double_t GetPyOut() const { return fPyOut; }
60  Double_t GetPzOut() const { return fPzOut; }
61 
62  Double_t GetDose() const { return fDose;}
63  Double_t GetDoseSL() const { return fDoseSL;}
64 
65  TVector3 GetPosition() const { return TVector3(fX, fY, fZ);}
66  TVector3 GetPositionOut() const { return TVector3(fXOut, fYOut, fZOut);}
67 
68  void PositionOut(TVector3& pos) const { pos.SetXYZ(fXOut, fYOut, fZOut);};
69  void MomentumOut(TVector3& mom) const { mom.SetXYZ(fPxOut,fPyOut,fPzOut); }
70 
71 
72 
73  protected:
74 
75  // Int_t detID; // detector ID or volume ID
76  Int_t fPdg; // track PID
77  Float_t fA; // A of material
78  Float_t fZmat; // Z of material
79  Float_t fDensity; // density of material
80  Double_t fVolMass; // radiation length
81 
82  Double_t fStep, fDose, fDoseSL;
83  Double_t fXOut, fYOut, fZOut;
84  Double_t fPxOut, fPyOut, fPzOut;
85 
86 
88 
89 };
90 
91 
92 #endif