FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTestDetectorPoint.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 #ifndef FAIRTESTDETECTORPOINT_H_
9 #define FAIRTESTDETECTORPOINT_H_
10 
11 #include "FairMCPoint.h" // for FairMCPoint
12 
13 #include <Rtypes.h> // for Double_t, Double32_t, etc
14 #include <TVector3.h> // for TVector3
15 
17 {
18  public:
21 
31  FairTestDetectorPoint(Int_t trackID,
32  Int_t detID,
33  TVector3 pos,
34  TVector3 mom,
35  TVector3 posOut,
36  TVector3 momOut,
37  Double_t tof,
38  Double_t length,
39  Double_t eLoss);
40 
42  virtual ~FairTestDetectorPoint();
43 
45  virtual void Print(const Option_t* opt) const;
46 
48  Double_t GetXIn() const { return fX; }
49  Double_t GetYIn() const { return fY; }
50  Double_t GetZIn() const { return fZ; }
51  Double_t GetXOut() const { return fX_out; }
52  Double_t GetYOut() const { return fY_out; }
53  Double_t GetZOut() const { return fZ_out; }
54  Double_t GetPxOut() const { return fPx_out; }
55  Double_t GetPyOut() const { return fPy_out; }
56  Double_t GetPzOut() const { return fPz_out; }
57  Double_t GetPxIn() const { return fPx; }
58  Double_t GetPyIn() const { return fPy; }
59  Double_t GetPzIn() const { return fPz; }
60 
61  void PositionOut(TVector3& pos) const { pos.SetXYZ(fX_out, fY_out, fZ_out); }
62  void MomentumOut(TVector3& mom) const { mom.SetXYZ(fPx_out, fPy_out, fPz_out); }
63 
64  private:
65  Double32_t fX_out;
66  Double32_t fY_out;
67  Double32_t fZ_out;
68  Double32_t fPx_out;
69  Double32_t fPy_out;
70  Double32_t fPz_out;
71 
75 
76  ClassDef(FairTestDetectorPoint, 2);
77 };
78 
79 #endif /* FAIRTESTDETECTORPOINT_H_ */
Double32_t fPy
Definition: FairMCPoint.h:112
Double32_t fZ
Position of hit [cm].
Definition: FairMCPoint.h:117
Double32_t fX
Definition: FairMCPoint.h:117
Double32_t fPx
Definition: FairMCPoint.h:112
void PositionOut(TVector3 &pos) const
Double_t GetPzOut() const
Double_t GetPxOut() const
Double32_t fPz
Momentum components [GeV].
Definition: FairMCPoint.h:112
Double_t GetPyOut() const
virtual void Print(const Option_t *opt) const
void MomentumOut(TVector3 &mom) const
Double32_t fY
Definition: FairMCPoint.h:117