CbmRoot
Loading...
Searching...
No Matches
CbmTofPoint.h
Go to the documentation of this file.
1/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Denis Bertini [committer] */
4
13#ifndef CBMTOFPOINT_H
14#define CBMTOFPOINT_H 1
15
16#include <FairMCPoint.h> // for FairMCPoint
17
18#include <Rtypes.h> // for ClassDef
19
20#include <cstdint>
21#include <string> // for string
22
23class TVector3;
24
25
44class CbmTofPoint : public FairMCPoint {
45
46public:
49
50
60 CbmTofPoint(int32_t trackID, int32_t detID, TVector3 pos, TVector3 mom, double tof, double length, double eLoss);
61
62
64 virtual ~CbmTofPoint();
65
66
70 int32_t GetNCells() const { return fNofCells; }
71
72
76 int32_t GetNGaps() const;
77
78
82 int32_t GetFirstGap() const;
83
84
88 int32_t GetLastGap() const;
89
90
94 void SetPx(double pX) { fPx = pX; }
95
96
100 void SetPy(double pY) { fPy = pY; }
101
102
106 void SetPz(double pZ) { fPz = pZ; }
107
108
112 void SetNCells(int32_t nCells) { fNofCells = nCells; }
113
114
118 void SetGap(int32_t iGap);
119
120
124 virtual std::string ToString() const;
125
126
127private:
128 int32_t fNofCells;
129 uint16_t fGapMask;
130
131
132 ClassDef(CbmTofPoint, 4)
133};
134
135
136#endif
Geometric intersection of a MC track with a TOFb detector.
Definition CbmTofPoint.h:44
int32_t GetFirstGap() const
Index of first traversed gap @value First gap index.
int32_t GetNCells() const
Number of traversed cells @value Number of traversed cells.
Definition CbmTofPoint.h:70
int32_t GetNGaps() const
Number of traversed gaps @value Number of traversed gaps.
uint16_t fGapMask
Number of cells traversed.
void SetNCells(int32_t nCells)
Set the number of traversed cells.
void SetPz(double pZ)
Set z component of momentum.
int32_t fNofCells
CbmTofPoint()
Default constructor.
virtual ~CbmTofPoint()
Destructor.
virtual std::string ToString() const
String representation of the object. @value String representation of the object.
int32_t GetLastGap() const
Index of last traversed gap @value Last gap index.
void SetGap(int32_t iGap)
Set a gap in the gap mask.
void SetPx(double pX)
Set x component of momentum.
Definition CbmTofPoint.h:94
void SetPy(double pY)
Set y component of momentum.