FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRadLenPoint.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 // ----- FairRadLenPoint header file -----
10 // ----- Created 14/01/08 by M. Al-Turany -----
11 // -------------------------------------------------------------------------
12 
18 #ifndef FAIRRADLENPOINT_H
19 #define FAIRRADLENPOINT_H
20 
21 #include "FairMCPoint.h" // for FairMCPoint
22 
23 #include <Rtypes.h> // for Double_t, Float_t, etc
24 #include <TVector3.h> // for TVector3
25 
27 {
28  public:
31 
32  FairRadLenPoint(Int_t trackID,
33  Int_t detID,
34  TVector3 pos,
35  TVector3 mom,
36  Double_t tof,
37  Double_t length,
38  Double_t eLoss,
39  TVector3 posOut,
40  TVector3 momOut,
41  Float_t fA,
42  Float_t fZ,
43  Float_t fDensity,
44  Float_t fRadLen);
45 
47  virtual ~FairRadLenPoint();
48 
50  Float_t GetA() { return fA; }
51  Float_t GetZm() { return fZmat; }
52  Float_t GetRadLength() { return fRadLen; }
53  Float_t GetDensity() { return fDensity; }
54 
56  void SetA(Double_t A) { fA = A; }
57  void SetZm(Double_t Z) { fZmat = Z; }
58  void SetRadLength(Double_t length) { fRadLen = length; }
59  void SetDensity(Double_t Density) { fDensity = Density; }
60 
62  virtual void Print(const Option_t* opt) const;
63 
64  Double_t GetXOut() const { return fXOut; };
65  Double_t GetYOut() const { return fYOut; };
66  Double_t GetZOut() const { return fZOut; };
67 
68  Double_t GetPxOut() const { return fPxOut; }
69  Double_t GetPyOut() const { return fPyOut; }
70  Double_t GetPzOut() const { return fPzOut; }
71 
72  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
73  TVector3 GetPositionOut() const { return TVector3(fXOut, fYOut, fZOut); }
74 
75  void PositionOut(TVector3& pos) const { pos.SetXYZ(fXOut, fYOut, fZOut); };
76  void MomentumOut(TVector3& mom) const { mom.SetXYZ(fPxOut, fPyOut, fPzOut); }
77 
78  protected:
79  Float_t fA; // A of material
80  Float_t fZmat; // Z of material
81  Float_t fDensity; // density of material
82  Float_t fRadLen; // radiation length
83 
84  Double_t fXOut, fYOut, fZOut;
85  Double_t fPxOut, fPyOut, fPzOut;
86 
88 };
89 
90 #endif
Double32_t fZ
Position of hit [cm].
Definition: FairMCPoint.h:117
Double_t GetYOut() const
Double_t GetPyOut() const
TVector3 GetPositionOut() const
void SetDensity(Double_t Density)
Float_t GetRadLength()
Double_t GetXOut() const
Double32_t fX
Definition: FairMCPoint.h:117
virtual ~FairRadLenPoint()
Double_t GetZOut() const
void MomentumOut(TVector3 &mom) const
Double_t GetPzOut() const
void PositionOut(TVector3 &pos) const
Double_t GetPxOut() const
void SetZm(Double_t Z)
ClassDef(FairRadLenPoint, 1)
virtual void Print(const Option_t *opt) const
void SetRadLength(Double_t length)
void SetA(Double_t A)
Float_t GetDensity()
TVector3 GetPosition() const
Double32_t fY
Definition: FairMCPoint.h:117