FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRadMapPoint.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 // ----- FairRadMapPoint header file -----
10 // -------------------------------------------------------------------------
11 
17 #ifndef FAIRRADMAPPOINT_H
18 #define FAIRRADMAPPOINT_H
19 
20 #include "FairMCPoint.h" // for FairMCPoint
21 
22 #include <Rtypes.h> // for Double_t, Float_t, Int_t, etc
23 #include <TVector3.h> // for TVector3
24 
26 {
27  public:
30 
31  FairRadMapPoint(Int_t trackID,
32  Int_t detID,
33  TVector3 pos,
34  TVector3 mom,
35  Double_t tof,
36  Double_t length,
37  Double_t eLoss,
38  TVector3 posOut,
39  TVector3 momOut,
40  Float_t fA,
41  Float_t fZ,
42  Float_t fDensity,
43  Double_t fVolMass,
44  Double_t fStep,
45  Double_t fDose,
46  Double_t fDoseSL,
47  Int_t fPdg);
48 
50  virtual ~FairRadMapPoint();
51 
53  Float_t GetA() { return fA; }
54  Float_t GetZm() { return fZmat; }
55  Float_t GetMass() { return fVolMass; }
56  Float_t GetDensity() { return fDensity; }
57 
59  void SetA(Double_t A) { fA = A; }
60  void SetZm(Double_t Z) { fZmat = Z; }
61  void SetMass(Double_t vmass) { fVolMass = vmass; }
62  void SetDensity(Double_t Density) { fDensity = Density; }
63 
65  virtual void Print(const Option_t* opt) const;
66 
67  Int_t GetPdg() const { return fPdg; };
68 
69  Double_t GetXOut() const { return fXOut; }
70  Double_t GetYOut() const { return fYOut; }
71  Double_t GetZOut() const { return fZOut; }
72 
73  Double_t GetPxOut() const { return fPxOut; }
74  Double_t GetPyOut() const { return fPyOut; }
75  Double_t GetPzOut() const { return fPzOut; }
76 
77  Double_t GetDose() const { return fDose; }
78  Double_t GetDoseSL() const { return fDoseSL; }
79 
80  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
81  TVector3 GetPositionOut() const { return TVector3(fXOut, fYOut, fZOut); }
82 
83  void PositionOut(TVector3& pos) const { pos.SetXYZ(fXOut, fYOut, fZOut); };
84  void MomentumOut(TVector3& mom) const { mom.SetXYZ(fPxOut, fPyOut, fPzOut); }
85 
86  protected:
87  // Int_t detID; // detector ID or volume ID
88  Int_t fPdg; // track PID
89  Float_t fA; // A of material
90  Float_t fZmat; // Z of material
91  Float_t fDensity; // density of material
92  Double_t fVolMass; // radiation length
93 
94  Double_t fStep, fDose, fDoseSL;
95  Double_t fXOut, fYOut, fZOut;
96  Double_t fPxOut, fPyOut, fPzOut;
97 
99 };
100 
101 #endif
Double_t GetPyOut() const
Double32_t fZ
Position of hit [cm].
Definition: FairMCPoint.h:117
TVector3 GetPosition() const
void SetZm(Double_t Z)
Double_t GetDoseSL() const
virtual void Print(const Option_t *opt) const
Double_t GetYOut() const
Double_t GetXOut() const
Double32_t fX
Definition: FairMCPoint.h:117
Float_t GetDensity()
void SetMass(Double_t vmass)
TVector3 GetPositionOut() const
Double_t GetDose() const
Int_t GetPdg() const
void PositionOut(TVector3 &pos) const
void SetDensity(Double_t Density)
void SetA(Double_t A)
Double_t GetPzOut() const
Double_t GetZOut() const
virtual ~FairRadMapPoint()
void MomentumOut(TVector3 &mom) const
Double_t GetPxOut() const
ClassDef(FairRadMapPoint, 3)
Double32_t fY
Definition: FairMCPoint.h:117