FairRoot/PandaRoot
PndFtofPoint.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // ----- PndFtofpoint header file -----
3 // ----- Created by A.Sanchez -----
4 // ------------------------------------------------------------------------
5 
6 #ifndef PNDFTOFPOINT_H
7 #define PNDFTOFPOINT_H
8 
9 #include "TObject.h"
10 #include "TVector3.h"
11 #include "TLorentzVector.h"
12 #include "FairMCPoint.h"
13 #include "TString.h"
14 
15 class PndFtofPoint : public FairMCPoint
16 {
17 
18  public:
19 
21  PndFtofPoint();
22 
23 
38  PndFtofPoint(Int_t trackID, Int_t evtID,
39  Int_t detID,TString detName,
40  TVector3 posin,
41  TVector3 momin,
42  TVector3 posout,
43  TVector3 momout,
44  Double_t tof,
45  Double_t length,
46  Double_t eLoss,
47  Double_t charge,
48  Double_t mass,
49  Int_t pdgCode,
50  Double_t distance,
51  Double_t PLin, Double_t PLout);
52 
54  PndFtofPoint(const PndFtofPoint& point) : FairMCPoint(point) { *this = point; };
55 
56 
58  virtual ~PndFtofPoint();
59 
60 
62  Int_t GetVolumeID() const { return fVolumeID; };
63  Double_t GetXin() const { return fXin; };
64  Double_t GetYin() const { return fYin; };
65  Double_t GetZin() const { return fZin; };
66  Double_t GetPxin() const { return fPxin; };
67  Double_t GetPyin() const { return fPyin; };
68  Double_t GetPzin() const { return fPzin; };
69 
70 
71 
72  Double_t GetPLin() const { return fPLin; };
73  Double_t GetPLout() const { return fPLout; };
74 
75  Double_t GetXout() const { return fXout; };
76  Double_t GetYout() const { return fYout; };
77  Double_t GetZout() const { return fZout; };
78  Double_t GetPxout() const { return fPxout; };
79  Double_t GetPyout() const { return fPyout; };
80  Double_t GetPzout() const { return fPzout; };
81  Double_t Getdist() const { return fdist; };
82  //Double_t Gettheta() const { return ftheta; };
83 
84  TString GetDetName() const { return fDetName;};
85  Double_t GetMass() const { return fmass; };
86 
87  void PositionIn(TVector3& pos) { pos.SetXYZ(fXin, fYin, fZin); };
88  void MomentumIn(TVector3& mom) { mom.SetXYZ(fPxin, fPyin, fPzin); };
89 
90  void PositionOut(TVector3& pos) { pos.SetXYZ(fXout, fYout, fZout); };
91  void MomentumOut(TVector3& mom) { mom.SetXYZ(fPxout, fPyout, fPzout); };
92 
93 
94 
95 
98  void SetPositionIn(const TVector3& pos);
99  void SetMomentumIn(const TVector3& mom);
100  void SetPositionOut(const TVector3& pos);
101  void SetMomentumOut(const TVector3& mom);
102 
103 
105  virtual void Print(const Option_t* opt) const;
106 
107 
108  protected:
109 
110  Double32_t fPLin, fPLout; // momentum
111  Double32_t fmass, fcharge;
112  Double32_t fXin, fYin, fZin;
113  Double32_t fPxin,fPyin,fPzin;
114  Double32_t fXout, fYout, fZout;
115  Double32_t fPxout,fPyout,fPzout, fdist;
116 
118 
120 
121  ClassDef(PndFtofPoint,1)
122 
123 };
124 
125 inline void PndFtofPoint::SetPositionIn(const TVector3& pos) {
126  fXin = pos.X();
127  fYin = pos.Y();
128  fZin = pos.Z();
129 }
130 
131 inline void PndFtofPoint::SetMomentumIn(const TVector3& mom) {
132  fPxin = mom.X();
133  fPyin = mom.Py();
134  fPzin = mom.Pz();
135 }
136 
137 inline void PndFtofPoint::SetPositionOut(const TVector3& pos) {
138  fXout = pos.X();
139  fYout = pos.Y();
140  fZout = pos.Z();
141 }
142 
143 inline void PndFtofPoint::SetMomentumOut(const TVector3& mom) {
144  fPxout = mom.Px();
145  fPyout = mom.Py();
146  fPzout = mom.Pz();
147 }
148 
149 
150 
151 #endif
Double32_t fXout
Definition: PndFtofPoint.h:114
Double32_t fPyout
Definition: PndFtofPoint.h:115
TVector3 pos
Double_t GetZout() const
Definition: PndFtofPoint.h:77
Double_t GetPxin() const
Definition: PndFtofPoint.h:66
Double_t GetPzout() const
Definition: PndFtofPoint.h:80
Double32_t fPzin
Definition: PndFtofPoint.h:113
Int_t GetVolumeID() const
Definition: PndFtofPoint.h:62
Double32_t fdist
Definition: PndFtofPoint.h:115
void SetMomentumIn(const TVector3 &mom)
Definition: PndFtofPoint.h:131
Double32_t fZout
Definition: PndFtofPoint.h:114
Double32_t fPLout
Definition: PndFtofPoint.h:110
Double32_t fPzout
Definition: PndFtofPoint.h:115
Double_t GetPxout() const
Definition: PndFtofPoint.h:78
void SetPositionOut(const TVector3 &pos)
Definition: PndFtofPoint.h:137
TString fDetName
Definition: PndFtofPoint.h:117
Double_t mom
Definition: plot_dirc.C:14
void PositionIn(TVector3 &pos)
Definition: PndFtofPoint.h:87
Double32_t fYout
Definition: PndFtofPoint.h:114
Double_t GetYout() const
Definition: PndFtofPoint.h:76
Double32_t fPxout
Definition: PndFtofPoint.h:115
Double_t GetYin() const
Definition: PndFtofPoint.h:64
Double_t GetPLout() const
Definition: PndFtofPoint.h:73
Double_t
Double32_t fPxin
Definition: PndFtofPoint.h:113
Double_t GetZin() const
Definition: PndFtofPoint.h:65
virtual ~PndFtofPoint()
void MomentumIn(TVector3 &mom)
Definition: PndFtofPoint.h:88
void MomentumOut(TVector3 &mom)
Definition: PndFtofPoint.h:91
TClonesArray * point
Definition: anaLmdDigi.C:29
Double_t GetXin() const
Definition: PndFtofPoint.h:63
Double_t GetMass() const
Definition: PndFtofPoint.h:85
void SetMomentumOut(const TVector3 &mom)
Definition: PndFtofPoint.h:143
Double32_t fPyin
Definition: PndFtofPoint.h:113
TString GetDetName() const
Definition: PndFtofPoint.h:84
Double32_t fPLin
Definition: PndFtofPoint.h:110
Double_t GetXout() const
Definition: PndFtofPoint.h:75
Double_t GetPyout() const
Definition: PndFtofPoint.h:79
Double32_t fYin
Definition: PndFtofPoint.h:112
Double32_t fmass
Definition: PndFtofPoint.h:111
PndFtofPoint(const PndFtofPoint &point)
Definition: PndFtofPoint.h:54
Double_t GetPzin() const
Definition: PndFtofPoint.h:68
Double32_t fcharge
Definition: PndFtofPoint.h:111
Double32_t fXin
Definition: PndFtofPoint.h:112
virtual void Print(const Option_t *opt) const
Double_t Getdist() const
Definition: PndFtofPoint.h:81
void SetPositionIn(const TVector3 &pos)
Definition: PndFtofPoint.h:125
Double_t GetPyin() const
Definition: PndFtofPoint.h:67
Double32_t fZin
Definition: PndFtofPoint.h:112
void PositionOut(TVector3 &pos)
Definition: PndFtofPoint.h:90
Double_t GetPLin() const
Definition: PndFtofPoint.h:72