PandaRoot
CbmPlanePoint.h
Go to the documentation of this file.
1 #ifndef CBMPlanePOINT_H
2 #define CBMPlanePOINT_H
3 
4 #include "TObject.h"
5 #include "TVector3.h"
6 #include "FairMCPoint.h"
7 
8 class CbmPlanePoint : public FairMCPoint {
9 
10  public:
12  CbmPlanePoint();
13 
25  // CbmPlanePoint(Int_t trackID, Int_t detID, TVector3 posIn,
26  // TVector3 posOut, TVector3 momIn, TVector3 momOut,
27  // Double_t tof, Double_t length, Double_t eLoss);
28 
29  CbmPlanePoint(Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Double_t charge,
30  Double_t mass, Bool_t preflag, Bool_t postflag, TString nam, Int_t eventID);
31 
33  CbmPlanePoint(const CbmPlanePoint &point) { *this = point; };
34 
36  virtual ~CbmPlanePoint();
37 
39  Double_t GetXOut() const { return fX_out; }
40  Double_t GetYOut() const { return fY_out; }
41  Double_t GetZOut() const { return fZ_out; }
42  Double_t GetPxOut() const { return fPx_out; }
43  Double_t GetPyOut() const { return fPy_out; }
44  Double_t GetPzOut() const { return fPz_out; }
45  Double_t GetXIn() const { return fX_in; }
46  Double_t GetYIn() const { return fY_in; }
47  Double_t GetZIn() const { return fZ_in; }
48  Double_t GetPxIn() const { return fPx_in; }
49  Double_t GetPyIn() const { return fPy_in; }
50  Double_t GetPzIn() const { return fPz_in; }
51  Double_t GetMass() const { return fmass; }
52 
53  Int_t GetTrackID() const { return ftrackID; }
54  Int_t GetEventID() const { return feventID; }
55  Int_t GetCopyNo() const { return fCopyNo; }
56  Bool_t GetPreFlag() const { return fpreflag; }
57  Bool_t GetPostFlag() const { return fpostflag; }
58 
59  void PositionOut(TVector3 &pos) { pos.SetXYZ(fX_out, fY_out, fZ_out); }
60  void MomentumOut(TVector3 &mom) { mom.SetXYZ(fPx_out, fPy_out, fPz_out); }
61  TString GetNam() const { return fPlanenam; }
62 
64  void SetPositionOut(TVector3 pos);
65  void SetMomentumOut(TVector3 mom);
66 
67  // aggiunte
68  void SetPositionIn(TVector3 posin);
69  void SetMomentumIn(TVector3 momin);
70 
72  virtual void Print(const Option_t *opt) const;
73 
74  protected:
75  Double32_t fX_in, fY_in, fZ_in;
76  Double32_t fPx_in, fPy_in, fPz_in;
77  Double32_t fX_out, fY_out, fZ_out;
78  Double32_t fPx_out, fPy_out, fPz_out;
79  Double_t fmass;
81  Double_t fcharge;
82  Int_t fCopyNo;
83  TString fPlanenam;
84  Int_t ftrackID;
85  Int_t feventID;
86  ClassDef(CbmPlanePoint, 1)
87 };
88 
89 inline void CbmPlanePoint::SetPositionOut(TVector3 pos)
90 {
91  fX_out = pos.X();
92  fY_out = pos.Y();
93  fZ_out = pos.Z();
94 }
95 
96 inline void CbmPlanePoint::SetMomentumOut(TVector3 mom)
97 {
98  fPx_out = mom.Px();
99  fPy_out = mom.Py();
100  fPz_out = mom.Pz();
101 }
102 
103 inline void CbmPlanePoint::SetPositionIn(TVector3 posin)
104 {
105  fX_in = posin.X();
106  fY_in = posin.Y();
107  fZ_in = posin.Z();
108 }
109 
110 inline void CbmPlanePoint::SetMomentumIn(TVector3 momin)
111 {
112  fPx_in = momin.Px();
113  fPy_in = momin.Py();
114  fPz_in = momin.Pz();
115 }
116 
117 #endif
Double_t GetYOut() const
Definition: CbmPlanePoint.h:40
Double_t GetPxOut() const
Definition: CbmPlanePoint.h:42
Double_t GetPyOut() const
Definition: CbmPlanePoint.h:43
Double_t fcharge
Definition: CbmPlanePoint.h:81
Double32_t fX_in
Definition: CbmPlanePoint.h:75
Bool_t fpostflag
Definition: CbmPlanePoint.h:80
void MomentumOut(TVector3 &mom)
Definition: CbmPlanePoint.h:60
Int_t GetTrackID() const
Definition: CbmPlanePoint.h:53
Double32_t fPz_out
Definition: CbmPlanePoint.h:78
Double_t GetZOut() const
Definition: CbmPlanePoint.h:41
Double32_t fY_out
Definition: CbmPlanePoint.h:77
Double_t GetYIn() const
Definition: CbmPlanePoint.h:46
Double_t GetPyIn() const
Definition: CbmPlanePoint.h:49
virtual void Print(const Option_t *opt) const
virtual ~CbmPlanePoint()
Bool_t GetPreFlag() const
Definition: CbmPlanePoint.h:56
Double32_t fPz_in
Definition: CbmPlanePoint.h:76
Double32_t fX_out
Definition: CbmPlanePoint.h:77
Double_t GetXIn() const
Definition: CbmPlanePoint.h:45
Double32_t fPy_out
Definition: CbmPlanePoint.h:78
TString GetNam() const
Definition: CbmPlanePoint.h:61
Double_t GetPxIn() const
Definition: CbmPlanePoint.h:48
Double32_t fZ_in
Definition: CbmPlanePoint.h:75
void SetPositionIn(TVector3 posin)
Double32_t fPy_in
Definition: CbmPlanePoint.h:76
Double32_t fY_in
Definition: CbmPlanePoint.h:75
Double32_t fPx_out
Definition: CbmPlanePoint.h:78
void SetMomentumIn(TVector3 momin)
void PositionOut(TVector3 &pos)
Definition: CbmPlanePoint.h:59
Double32_t fZ_out
Definition: CbmPlanePoint.h:77
void SetPositionOut(TVector3 pos)
Definition: CbmPlanePoint.h:89
Double_t GetXOut() const
Definition: CbmPlanePoint.h:39
Int_t GetCopyNo() const
Definition: CbmPlanePoint.h:55
CbmPlanePoint(const CbmPlanePoint &point)
Definition: CbmPlanePoint.h:33
Double_t GetPzOut() const
Definition: CbmPlanePoint.h:44
Double_t fmass
Definition: CbmPlanePoint.h:79
void SetMomentumOut(TVector3 mom)
Definition: CbmPlanePoint.h:96
Double_t GetMass() const
Definition: CbmPlanePoint.h:51
Int_t GetEventID() const
Definition: CbmPlanePoint.h:54
TString fPlanenam
Definition: CbmPlanePoint.h:83
Double32_t fPx_in
Definition: CbmPlanePoint.h:76
Bool_t GetPostFlag() const
Definition: CbmPlanePoint.h:57
Double_t GetPzIn() const
Definition: CbmPlanePoint.h:50
Double_t GetZIn() const
Definition: CbmPlanePoint.h:47