FairRoot/PandaRoot
PndHypPoint.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // ----- CbmHyppoint header file -----
3 // ----- Created by A.Sanchez -----
4 // ------------------------------------------------------------------------
5 
6 #ifndef PNDHYPPOINT_H
7 #define PNDHYPPOINT_H
8 
9 #include "TObject.h"
10 #include "TVector3.h"
11 #include "TLorentzVector.h"
12 #include "FairMCPoint.h"
13 #include "TString.h"
14 
15 
16 
17 
18 using namespace std;
19 
20 class PndHypPoint : public FairMCPoint
21 {
22 
23  public:
24 
26  PndHypPoint();
27 
28 
43  PndHypPoint(Int_t trackID, Int_t evtID,
44  Int_t detID,TString detName,
45  TVector3 posin,
46  TVector3 momin,
47  TVector3 posout,
48  TVector3 momout,
49  Double_t tof,
50  Double_t length,
51  Double_t eLoss,
52  Double_t charge,
53  Double_t mass,
54  Int_t pdgCode,
55  Double_t distance,
56  Double_t PLin, Double_t PLout);
57 
59  PndHypPoint(const PndHypPoint& point) : FairMCPoint(point),
60  fEventID(point.fEventID),
61  fPLin(point.fPLin),
62  fPLout(point.fPLout),
63  fmass(point.fmass),
64  fcharge(point.fcharge),
65  fXin(point.fXin),
66  fYin(point.fYin),
67  fZin(point.fZin),
68  fPxin(point.fPxin),
69  fPyin(point.fPyin),
70  fPzin(point.fPzin),
71  fXout(point.fXout),
72  fYout(point.fYout),
73  fZout(point.fZout),
74  fPxout(point.fPxout),
75  fPyout(point.fPyout),
76  fPzout(point.fPzout),
77  fdist(point.fdist),
78  fDetName(point.fDetName),
79  fVolumeID(point.fVolumeID),
80  fpdgCode(point.fpdgCode)
81  { *this = point; };
82 
83 
85  virtual ~PndHypPoint();
86 
87 
89  // Int_t GetTrackID() const { return fTrackID; };
90  Int_t GetEventID() const { return fEventID; };
91  Int_t GetVolumeID() const { return fVolumeID; };
92  Double_t GetXin() const { return fXin; };
93  Double_t GetYin() const { return fYin; };
94  Double_t GetZin() const { return fZin; };
95  Double_t GetPxin() const { return fPxin; };
96  Double_t GetPyin() const { return fPyin; };
97  Double_t GetPzin() const { return fPzin; };
98 
99  /* Double_t GetXOutLocal() const { return fXout_local; }; */
100 /* Double_t GetYOutLocal() const { return fYout_local; }; */
101 /* Double_t GetZOutLocal() const { return fZout_local; }; */
102 
103 /* Double_t GetXInLocal() const { return fXin_local; }; */
104 /* Double_t GetYInLocal() const { return fYin_local; }; */
105 /* Double_t GetZInLocal() const { return fZin_local; }; */
106 
107  Double_t GetPLin() const { return fPLin; };
108  Double_t GetPLout() const { return fPLout; };
109 
110  Double_t GetXout() const { return fXout; };
111  Double_t GetYout() const { return fYout; };
112  Double_t GetZout() const { return fZout; };
113  Double_t GetPxout() const { return fPxout; };
114  Double_t GetPyout() const { return fPyout; };
115  Double_t GetPzout() const { return fPzout; };
116  Double_t Getdist() const { return fdist; };
117  //Double_t Gettheta() const { return ftheta; };
118 
119  TString GetDetName() const { return fDetName;};
120  Double_t GetMass() const { return fmass; };
121  //Double_t GetTime() const { return fTime; };
122  // Double_t GetLength() const { return fLength; };
123  //Double_t GetEnergyLoss() const { return fELoss; };
124 
125  void PositionIn(TVector3& pos) { pos.SetXYZ(fXin, fYin, fZin); };
126  void MomentumIn(TVector3& mom) { mom.SetXYZ(fPxin, fPyin, fPzin); };
127 
128  void PositionOut(TVector3& pos) { pos.SetXYZ(fXout, fYout, fZout); };
129  void MomentumOut(TVector3& mom) { mom.SetXYZ(fPxout, fPyout, fPzout); };
130 
131 /* void PositionOutLocal(TVector3& pos) { pos.SetXYZ(fXout_local, */
132 /* fYout_local, */
133 /* fZout_local); }; */
134 /* void PositionInLocal(TVector3& pos) { pos.SetXYZ(fXin_local, */
135 /* fYin_local, */
136 /* fZin_local); }; */
137 
138 
140  //void SetTrackID(Int_t id) { fTrackID = id; } ;
141  void SetEventID(Int_t ev) { fEventID = ev; };
142  //void SetTime(Double_t tof) { fTime = tof; };
143  //void SetLength(Double_t length) { fLength = length; };
144  //void SetEnergyLoss(Double_t eLoss) { fELoss = eLoss; };
145 
146  void SetPositionIn(const TVector3& pos);
147  void SetMomentumIn(const TVector3& mom);
148  void SetPositionOut(const TVector3& pos);
149  void SetMomentumOut(const TVector3& mom);
150 
151  /* void SetPositionOutLocal(const TVector3& pos); */
152 /* void SetPositionInLocal(const TVector3& pos); */
153 
154 
155 
157  virtual void Print(const Option_t* opt) const;
158 
159 
160  protected:
161  Int_t fEventID; // Event ID
162 
163  Double_t fPLin, fPLout; // momentum
164  //Int_t fTrackID ;
165  Double_t fmass,fcharge;
166 
167  Double_t fXin, fYin, fZin;
168  Double_t fPxin,fPyin,fPzin;
169  Double_t fXout, fYout, fZout;
170  Double_t fPxout,fPyout,fPzout, fdist;
171  /* Double_t fXout_local, fYout_local, fZout_local; */
172 /* Double_t fXin_local, fYin_local, fZin_local; */
174 
175  Int_t fVolumeID,fpdgCode;
176 
177  ClassDef(PndHypPoint,7)
178 
179 };
180 
181 inline void PndHypPoint::SetPositionIn(const TVector3& pos) {
182  fXin = pos.X();
183  fYin = pos.Y();
184  fZin = pos.Z();
185 }
186 
187 inline void PndHypPoint::SetMomentumIn(const TVector3& mom) {
188  fPxin = mom.X();
189  fPyin = mom.Py();
190  fPzin = mom.Pz();
191 }
192 
193 inline void PndHypPoint::SetPositionOut(const TVector3& pos) {
194  fXout = pos.X();
195  fYout = pos.Y();
196  fZout = pos.Z();
197 }
198 
199 inline void PndHypPoint::SetMomentumOut(const TVector3& mom) {
200  fPxout = mom.Px();
201  fPyout = mom.Py();
202  fPzout = mom.Pz();
203 }
204 
205 /* inline void PndHypPoint::SetPositionOutLocal(const TVector3& pos) { */
206 /* fXout_local = pos.X(); */
207 /* fYout_local = pos.Y(); */
208 /* fZout_local = pos.Z(); */
209 /* } */
210 
211 
212 /* inline void PndHypPoint::SetPositionInLocal(const TVector3& pos) { */
213 /* fXin_local = pos.X(); */
214 /* fYin_local = pos.Y(); */
215 /* fZin_local = pos.Z(); */
216 /* } */
217 
218 #endif
MechFsc Print()
TVector3 pos
Double_t GetPxin() const
Definition: PndHypPoint.h:95
Double_t GetMass() const
Definition: PndHypPoint.h:120
void SetPositionIn(const TVector3 &pos)
Definition: PndHypPoint.h:181
void MomentumIn(TVector3 &mom)
Definition: PndHypPoint.h:126
Double_t GetZin() const
Definition: PndHypPoint.h:94
Double_t GetPyin() const
Definition: PndHypPoint.h:96
Double_t GetXin() const
Definition: PndHypPoint.h:92
Double_t GetYout() const
Definition: PndHypPoint.h:111
TString fDetName
Definition: PndHypPoint.h:173
void SetPositionOut(const TVector3 &pos)
Definition: PndHypPoint.h:193
Double_t fZin
Definition: PndHypPoint.h:167
Double_t GetPzin() const
Definition: PndHypPoint.h:97
int ev
Double_t GetZout() const
Definition: PndHypPoint.h:112
Double_t fPLout
Definition: PndHypPoint.h:163
Double_t fZout
Definition: PndHypPoint.h:169
Double_t GetPLin() const
Definition: PndHypPoint.h:107
Double_t GetPxout() const
Definition: PndHypPoint.h:113
Int_t GetVolumeID() const
Definition: PndHypPoint.h:91
Double_t mom
Definition: plot_dirc.C:14
void MomentumOut(TVector3 &mom)
Definition: PndHypPoint.h:129
Double_t GetPyout() const
Definition: PndHypPoint.h:114
void PositionIn(TVector3 &pos)
Definition: PndHypPoint.h:125
Double_t Getdist() const
Definition: PndHypPoint.h:116
Double_t
void SetMomentumOut(const TVector3 &mom)
Definition: PndHypPoint.h:199
TClonesArray * point
Definition: anaLmdDigi.C:29
Double_t fPzin
Definition: PndHypPoint.h:168
Double_t GetPzout() const
Definition: PndHypPoint.h:115
Double_t GetXout() const
Definition: PndHypPoint.h:110
void PositionOut(TVector3 &pos)
Definition: PndHypPoint.h:128
Double_t GetYin() const
Definition: PndHypPoint.h:93
Double_t fPzout
Definition: PndHypPoint.h:170
Int_t GetEventID() const
Definition: PndHypPoint.h:90
void SetEventID(Int_t ev)
Definition: PndHypPoint.h:141
PndHypPoint(const PndHypPoint &point)
Definition: PndHypPoint.h:59
TString GetDetName() const
Definition: PndHypPoint.h:119
Double_t fmass
Definition: PndHypPoint.h:165
void SetMomentumIn(const TVector3 &mom)
Definition: PndHypPoint.h:187
Double_t GetPLout() const
Definition: PndHypPoint.h:108
Int_t fVolumeID
Definition: PndHypPoint.h:175
Int_t fEventID
Definition: PndHypPoint.h:161