BmnRoot
Loading...
Searching...
No Matches
CbmMvdPoint.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmMvdPoint header file -----
3// ----- Created 06/11/06 by V. Friese -----
4// -------------------------------------------------------------------------
5
6
18#ifndef CBMMVDPOINT_H
19#define CBMMVDPOINT_H 1
20
21#include "FairMCPoint.h"
22#include "CbmMvdDetectorId.h"
23
24#include "TObject.h"
25#include "TVector3.h"
26
27class CbmMvdPoint : public FairMCPoint, CbmMvdDetectorId
28{
29
30 public:
31
34
35
48 CbmMvdPoint(Int_t trackId, Int_t pdgCode, Int_t detId, TVector3 posIn,
49 TVector3 posOut, TVector3 momIn, TVector3 momOut,
50 Double_t tof, Double_t length, Double_t eLoss);
51
52
54 // CbmMvdPoint(const CbmMvdPoint& point) { *this = point; };
55
56
58 virtual ~CbmMvdPoint();
59
60
62 Double_t GetXOut() const { return fX_out; }
63 Double_t GetYOut() const { return fY_out; }
64 Double_t GetZOut() const { return fZ_out; }
65 Double_t GetPxOut() const { return fPx_out; }
66 Double_t GetPyOut() const { return fPy_out; }
67 Double_t GetPzOut() const { return fPz_out; }
68 Int_t GetPdgCode() const {return fPdgCode;}
69 Int_t GetSystemId() const { return SystemId(fDetectorID); }
70 Int_t GetStationNr() const { return StationNr(fDetectorID); }
71 Int_t GetPointId() const {return fPointId;} // Returns index of this object in its TClonesArray.
72 // By default not filled. Used internally in the MvdDigitizer.
73 void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out,fY_out,fZ_out); }
74 void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
75
76
78 void SetPositionOut(TVector3 pos);
79 void SetMomentumOut(TVector3 mom);
80 void SetPdgCode(Int_t pdg){fPdgCode=pdg;}
81 void SetPointId(Int_t myId) {fPointId=myId;}
82
83
84
86 virtual void Print(const Option_t* opt) const;
87
88
89
90 protected:
91
92 Double32_t fX_out, fY_out, fZ_out;
93 Double32_t fPx_out, fPy_out, fPz_out;
94 Int_t fPdgCode; // index of the object in its TClonesArray. By default not filled => -1.
95 Int_t fPointId; // index of the object in its TClonesArray. By default not filled => -1.
96
97
98
100
101};
102
103
104
105inline void CbmMvdPoint::SetPositionOut(TVector3 pos) {
106 fX_out = pos.X();
107 fY_out = pos.Y();
108 fZ_out = pos.Z();
109}
110
111
112inline void CbmMvdPoint::SetMomentumOut(TVector3 mom) {
113 fPx_out = mom.Px();
114 fPy_out = mom.Py();
115 fPz_out = mom.Pz();
116}
117
118
119
120#endif
Int_t StationNr(Int_t detectorId) const
Int_t SystemId(Int_t detectorId) const
ClassDef(CbmMvdDetectorId, 1)
Int_t GetStationNr() const
Definition CbmMvdPoint.h:70
Double32_t fY_out
Definition CbmMvdPoint.h:92
Int_t GetSystemId() const
Definition CbmMvdPoint.h:69
Int_t fPointId
Definition CbmMvdPoint.h:95
void SetPointId(Int_t myId)
Definition CbmMvdPoint.h:81
Double_t GetYOut() const
Definition CbmMvdPoint.h:63
Double_t GetPzOut() const
Definition CbmMvdPoint.h:67
void MomentumOut(TVector3 &mom)
Definition CbmMvdPoint.h:74
Double32_t fPy_out
Definition CbmMvdPoint.h:93
Int_t GetPdgCode() const
Definition CbmMvdPoint.h:68
void SetPositionOut(TVector3 pos)
virtual ~CbmMvdPoint()
Int_t fPdgCode
Definition CbmMvdPoint.h:94
virtual void Print(const Option_t *opt) const
void SetPdgCode(Int_t pdg)
Definition CbmMvdPoint.h:80
Double32_t fPx_out
Definition CbmMvdPoint.h:93
Double_t GetPyOut() const
Definition CbmMvdPoint.h:66
Double_t GetPxOut() const
Definition CbmMvdPoint.h:65
Double32_t fZ_out
Definition CbmMvdPoint.h:92
Int_t GetPointId() const
Definition CbmMvdPoint.h:71
Double32_t fPz_out
Definition CbmMvdPoint.h:93
void PositionOut(TVector3 &pos)
Definition CbmMvdPoint.h:73
Double32_t fX_out
Definition CbmMvdPoint.h:92
Double_t GetZOut() const
Definition CbmMvdPoint.h:64
Double_t GetXOut() const
Definition CbmMvdPoint.h:62
void SetMomentumOut(TVector3 mom)