CbmRoot
CbmTofPoint.h
Go to the documentation of this file.
1 
9 #ifndef CBMTOFPOINT_H
10 #define CBMTOFPOINT_H 1
11 
12 #include <Rtypes.h> // for ClassDef
13 #include <RtypesCore.h> // for Int_t, Double_t, UShort_t
14 
15 #include <string> // for string
16 
17 #include <FairMCPoint.h> // for FairMCPoint
18 
19 class TVector3;
20 
21 
40 class CbmTofPoint : public FairMCPoint {
41 
42 public:
44  CbmTofPoint();
45 
46 
56  CbmTofPoint(Int_t trackID,
57  Int_t detID,
58  TVector3 pos,
59  TVector3 mom,
60  Double_t tof,
61  Double_t length,
62  Double_t eLoss);
63 
64 
66  virtual ~CbmTofPoint();
67 
68 
72  Int_t GetNCells() const { return fNofCells; }
73 
74 
78  Int_t GetNGaps() const;
79 
80 
84  Int_t GetFirstGap() const;
85 
86 
90  Int_t GetLastGap() const;
91 
92 
96  void SetPx(Double_t pX) { fPx = pX; }
97 
98 
102  void SetPy(Double_t pY) { fPy = pY; }
103 
104 
108  void SetPz(Double_t pZ) { fPz = pZ; }
109 
110 
114  void SetNCells(Int_t nCells) { fNofCells = nCells; }
115 
116 
120  void SetGap(Int_t iGap);
121 
122 
126  virtual std::string ToString() const;
127 
128 
129 private:
130  Int_t fNofCells;
131  UShort_t fGapMask;
132 
133 
134  ClassDef(CbmTofPoint, 3)
135 };
136 
137 
138 #endif
CbmTofPoint::GetNCells
Int_t GetNCells() const
Number of traversed cells @value Number of traversed cells.
Definition: CbmTofPoint.h:72
CbmTofPoint::fNofCells
Int_t fNofCells
Definition: CbmTofPoint.h:130
CbmTofPoint::~CbmTofPoint
virtual ~CbmTofPoint()
Destructor.
Definition: CbmTofPoint.cxx:45
CbmTofPoint::ToString
virtual std::string ToString() const
String representation of the object. @value String representation of the object.
Definition: CbmTofPoint.cxx:98
CbmTofPoint::SetPz
void SetPz(Double_t pZ)
Set z component of momentum.
Definition: CbmTofPoint.h:108
CbmTofPoint::GetLastGap
Int_t GetLastGap() const
Index of last traversed gap @value Last gap index.
Definition: CbmTofPoint.cxx:76
CbmTofPoint::fGapMask
UShort_t fGapMask
Number of cells traversed.
Definition: CbmTofPoint.h:131
CbmTofPoint::SetPy
void SetPy(Double_t pY)
Set y component of momentum.
Definition: CbmTofPoint.h:102
CbmTofPoint::GetNGaps
Int_t GetNGaps() const
Number of traversed gaps @value Number of traversed gaps.
Definition: CbmTofPoint.cxx:50
CbmTofPoint::CbmTofPoint
CbmTofPoint()
Default constructor.
Definition: CbmTofPoint.cxx:26
CbmTofPoint::SetGap
void SetGap(Int_t iGap)
Set a gap in the gap mask.
Definition: CbmTofPoint.cxx:90
CbmTofPoint::GetFirstGap
Int_t GetFirstGap() const
Index of first traversed gap @value First gap index.
Definition: CbmTofPoint.cxx:64
CbmTofPoint::SetPx
void SetPx(Double_t pX)
Set x component of momentum.
Definition: CbmTofPoint.h:96
CbmTofPoint::SetNCells
void SetNCells(Int_t nCells)
Set the number of traversed cells.
Definition: CbmTofPoint.h:114
pos
TVector3 pos
Definition: CbmMvdSensorDigiToHitTask.cxx:60
CbmTofPoint
Geometric intersection of a MC track with a TOFb detector.
Definition: CbmTofPoint.h:40