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