|
CbmRoot
|
#include <CbmTofInteraction.h>
Public Member Functions | |
| CbmTofInteraction () | |
| Default constructor. | |
| template<typename... Args> | |
| CbmTofInteraction (Args... args) | |
| ~CbmTofInteraction ()=default | |
| Destructor. | |
| void | AddPoint (const CbmTofPoint *pPoint) |
| Adds a point to the interaction New point updates the following properties of the interaction: position, entrance momentum. | |
| void | Clear (Option_t *) |
| Clears the instance. | |
| void | SetFromPoint (const CbmTofPoint *pPoint) |
| Sets parameters from a particular TOF MC-point. | |
| int | GetNofPoints () const |
| Gets number of stored points. | |
| std::string | ToString () const |
| Saves content of the class to string. | |
| const std::vector< const CbmTofPoint * > & | GetPoints () const |
| Gets pointers to points (TMP!!!!) | |
| int32_t | GetNCells () const |
| Number of traversed cells @value Number of traversed cells. | |
| int32_t | GetNGaps () const |
| Number of traversed gaps @value Number of traversed gaps. | |
| int32_t | GetFirstGap () const |
| Index of first traversed gap @value First gap index. | |
| int32_t | GetLastGap () const |
| Index of last traversed gap @value Last gap index. | |
| void | SetPx (double pX) |
| Set x component of momentum. | |
| void | SetPy (double pY) |
| Set y component of momentum. | |
| void | SetPz (double pZ) |
| Set z component of momentum. | |
| void | SetNCells (int32_t nCells) |
| Set the number of traversed cells. | |
| void | SetGap (int32_t iGap) |
| Set a gap in the gap mask. | |
Private Member Functions | |
| template<typename T> | |
| void | UpdateAverage (const T &update, T &property) |
| Updates average of the property from original TOF MC-point. | |
Private Attributes | |
| int | fNofPoints = 0 |
| Number of CbmTofPoint objects, from which the interaction is constructed. | |
| std::vector< const CbmTofPoint * > | fvpPoints |
| Vector of point pointer (TMP!!!!) | |
| int32_t | fNofCells |
| uint16_t | fGapMask |
| Number of cells traversed. | |
Class describes an interaction of a MC track with a TOF module as a solid structure
Definition at line 20 of file CbmTofInteraction.h.
| CbmTofInteraction::CbmTofInteraction | ( | ) |
Default constructor.
Definition at line 20 of file CbmTofInteraction.cxx.
References CbmTofPoint::CbmTofPoint(), and fNofPoints.
|
inline |
Constructor with signature from CbmTofPoint
| args | List of parameters for any CbmTofPoint constructor |
Definition at line 29 of file CbmTofInteraction.h.
References CbmTofPoint::CbmTofPoint(), and fNofPoints.
|
default |
Destructor.
References CbmTofPoint::CbmTofPoint().
| void CbmTofInteraction::AddPoint | ( | const CbmTofPoint * | pPoint | ) |
Adds a point to the interaction New point updates the following properties of the interaction: position, entrance momentum.
| pPoint | Pointer to TOF MC-point |
Definition at line 24 of file CbmTofInteraction.cxx.
References CbmTofPoint::CbmTofPoint(), fNofPoints, fvpPoints, and UpdateAverage().
| void CbmTofInteraction::Clear | ( | Option_t * | ) |
|
inherited |
Index of first traversed gap @value First gap index.
Definition at line 67 of file CbmTofPoint.cxx.
References fGapMask.
|
inherited |
Index of last traversed gap @value Last gap index.
Definition at line 81 of file CbmTofPoint.cxx.
References fGapMask.
|
inlineinherited |
Number of traversed cells @value Number of traversed cells.
Definition at line 70 of file CbmTofPoint.h.
References fNofCells.
Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().
|
inherited |
Number of traversed gaps @value Number of traversed gaps.
Definition at line 51 of file CbmTofPoint.cxx.
References fGapMask.
|
inline |
Gets number of stored points.
Definition at line 53 of file CbmTofInteraction.h.
References fNofPoints.
|
inline |
Gets pointers to points (TMP!!!!)
Definition at line 59 of file CbmTofInteraction.h.
References fvpPoints.
| void CbmTofInteraction::SetFromPoint | ( | const CbmTofPoint * | pPoint | ) |
Sets parameters from a particular TOF MC-point.
| pPoint | Pointer to TOF point The purpose of the |
Definition at line 73 of file CbmTofInteraction.cxx.
References CbmTofPoint::CbmTofPoint().
|
inherited |
Set a gap in the gap mask.
| iGap | Gap number |
Definition at line 97 of file CbmTofPoint.cxx.
References fGapMask.
Referenced by CbmTof::ProcessHits().
|
inlineinherited |
Set the number of traversed cells.
| nCells | Number of traversed cells |
Definition at line 112 of file CbmTofPoint.h.
References fNofCells.
Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().
|
inlineinherited |
Set x component of momentum.
| pX | x component of momentum [GeV] |
Definition at line 94 of file CbmTofPoint.h.
Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().
|
inlineinherited |
Set y component of momentum.
| pY | y component of momentum [GeV] |
Definition at line 100 of file CbmTofPoint.h.
Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().
|
inlineinherited |
Set z component of momentum.
| pZ | z component of momentum [GeV] |
Definition at line 106 of file CbmTofPoint.h.
Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().
|
virtual |
Saves content of the class to string.
Reimplemented from CbmTofPoint.
Definition at line 93 of file CbmTofInteraction.cxx.
References fNofPoints, and CbmTofPoint::ToString().
|
inlineprivate |
Updates average of the property from original TOF MC-point.
| update | Property of the added MC point |
| property | Updated property of this interaction |
Definition at line 67 of file CbmTofInteraction.h.
References fNofPoints.
Referenced by AddPoint().
|
privateinherited |
Number of cells traversed.
Definition at line 129 of file CbmTofPoint.h.
Referenced by CbmTofPoint(), CbmTofPoint(), GetFirstGap(), GetLastGap(), GetNGaps(), SetGap(), and ToString().
|
privateinherited |
Definition at line 128 of file CbmTofPoint.h.
Referenced by CbmTofPoint(), CbmTofPoint(), GetNCells(), SetNCells(), and ToString().
|
private |
Number of CbmTofPoint objects, from which the interaction is constructed.
Definition at line 73 of file CbmTofInteraction.h.
Referenced by AddPoint(), CbmTofInteraction(), CbmTofInteraction(), Clear(), GetNofPoints(), ToString(), and UpdateAverage().
|
private |
Vector of point pointer (TMP!!!!)
Definition at line 74 of file CbmTofInteraction.h.
Referenced by AddPoint(), and GetPoints().