FairRoot/PandaRoot
PndSciTPoint.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // ----- PndSciTpoint header file -----
3 // ----- created by A. Sanchez -----
4 // ----- modified by D. Steinschaden -----
5 // ----- last update 04.2015 -----
6 // --------------------------------------------------------------------------
7 
8 #ifndef PNDSCITPOINT_H
9 #define PNDSCITPOINT_H
10 
11 #include "TObject.h"
12 #include "TVector3.h"
13 #include "TLorentzVector.h"
14 #include "FairMCPoint.h"
15 #include "TString.h"
16 
17 class PndSciTPoint : public FairMCPoint
18 {
19 
20  public:
21 
22  //** Default constructor **/
23  PndSciTPoint();
24 
25 
26  PndSciTPoint( Int_t eventID, Int_t trackID,
27  Int_t detectorID,TString detName,
28  TVector3 posin,
29  TVector3 momin,
30  TVector3 posout,
31  TVector3 momout,
32  Double_t tof,
33  Double_t length,
34  Double_t eLoss
35 );
36 
37  //** Copy constructor **/
38  PndSciTPoint(const PndSciTPoint& point) : FairMCPoint(point),
39  fDetName(point.fDetName),
40  fXout(point.fXout),
41  fYout(point.fYout),
42  fZout(point.fZout),
43  fPxout(point.fPxout),
44  fPyout(point.fPyout),
45  fPzout(point.fPzout)
46  { *this = point; };
47 
48  //** Destructor **/
49  virtual ~PndSciTPoint();
50 
51  //** Accessors **/
52 
53  TString GetDetName() const { return fDetName;};
54 
55  Double_t GetXout() const { return fXout; };
56  Double_t GetYout() const { return fYout; };
57  Double_t GetZout() const { return fZout; };
58  Double_t GetPxout() const { return fPxout; };
59  Double_t GetPyout() const { return fPyout; };
60  Double_t GetPzout() const { return fPzout; };
61 
62  void PositionOut(TVector3& pos) { pos.SetXYZ(fXout, fYout, fZout); };
63  void MomentumOut(TVector3& mom) { mom.SetXYZ(fPxout, fPyout, fPzout); };
64 
67  void SetPositionOut(const TVector3& pos);
68  void SetMomentumOut(const TVector3& mom);
69 
71  virtual void Print(const Option_t* opt) const;
72 
73 
74  protected:
75 
77 
80 
81 
82  ClassDef(PndSciTPoint,4)
83 
84 };
85 
86 
87 inline void PndSciTPoint::SetPositionOut(const TVector3& pos) {
88  fXout = pos.X();
89  fYout = pos.Y();
90  fZout = pos.Z();
91 }
92 
93 inline void PndSciTPoint::SetMomentumOut(const TVector3& mom) {
94  fPxout = mom.Px();
95  fPyout = mom.Py();
96  fPzout = mom.Pz();
97 }
98 
99 
100 
101 #endif
TVector3 pos
Double_t fPxout
Definition: PndSciTPoint.h:79
Double_t GetYout() const
Definition: PndSciTPoint.h:56
Double_t fXout
Definition: PndSciTPoint.h:78
void MomentumOut(TVector3 &mom)
Definition: PndSciTPoint.h:63
TString fDetName
Definition: PndSciTPoint.h:76
Double_t fPzout
Definition: PndSciTPoint.h:79
virtual void Print(const Option_t *opt) const
Double_t mom
Definition: plot_dirc.C:14
Double_t GetPyout() const
Definition: PndSciTPoint.h:59
void SetPositionOut(const TVector3 &pos)
Definition: PndSciTPoint.h:87
Double_t
Double_t GetPxout() const
Definition: PndSciTPoint.h:58
TClonesArray * point
Definition: anaLmdDigi.C:29
Double_t fPyout
Definition: PndSciTPoint.h:79
Double_t fZout
Definition: PndSciTPoint.h:78
void SetMomentumOut(const TVector3 &mom)
Definition: PndSciTPoint.h:93
void PositionOut(TVector3 &pos)
Definition: PndSciTPoint.h:62
Double_t GetXout() const
Definition: PndSciTPoint.h:55
virtual ~PndSciTPoint()
Double_t GetZout() const
Definition: PndSciTPoint.h:57
TString GetDetName() const
Definition: PndSciTPoint.h:53
Double_t fYout
Definition: PndSciTPoint.h:78
Double_t GetPzout() const
Definition: PndSciTPoint.h:60
PndSciTPoint(const PndSciTPoint &point)
Definition: PndSciTPoint.h:38