CbmRoot
|
Geometric intersection of a MC track with a TOFb detector. More...
#include <CbmTofPoint.h>
Public Member Functions | |
CbmTofPoint () | |
Default constructor. | |
CbmTofPoint (int32_t trackID, int32_t detID, TVector3 pos, TVector3 mom, double tof, double length, double eLoss) | |
Constructor with arguments. | |
virtual | ~CbmTofPoint () |
Destructor. | |
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. | |
virtual std::string | ToString () const |
String representation of the object. @value String representation of the object. | |
Private Attributes | |
int32_t | fNofCells |
uint16_t | fGapMask |
Number of cells traversed. | |
Geometric intersection of a MC track with a TOFb detector.
This data class holds the geometric properties of the intersection of a Monte-Carlo track with an active TOF detector element. The TOF detector class produces CbmTofPoints in two modes. In the first one, a TofPoint is created for each gap the track enters. In the second mode, only one TofPoint per track and module is created. The space and momentum coordinates then correspond to the respective averages over all traversed gaps. In this case, the variables fNofCells gives the number of transversal segments the track has touched, and fGapMask gives the pattern of traversed gaps.
Definition at line 44 of file CbmTofPoint.h.
CbmTofPoint::CbmTofPoint | ( | ) |
Default constructor.
Definition at line 30 of file CbmTofPoint.cxx.
CbmTofPoint::CbmTofPoint | ( | int32_t | trackID, |
int32_t | detID, | ||
TVector3 | pos, | ||
TVector3 | mom, | ||
double | tof, | ||
double | length, | ||
double | eLoss ) |
Constructor with arguments.
trackID | Index of MCTrack |
detID | Detector ID |
pos | Coordinates at entrance to active volume [cm] |
mom | Momentum of track at entrance [GeV] |
tof | Time since event start [ns] |
length | Track length since creation [cm] |
eLoss | Energy deposit [GeV] |
Definition at line 35 of file CbmTofPoint.cxx.
|
virtual |
Destructor.
Definition at line 46 of file CbmTofPoint.cxx.
int32_t CbmTofPoint::GetFirstGap | ( | ) | const |
Index of first traversed gap @value First gap index.
Definition at line 65 of file CbmTofPoint.cxx.
References fGapMask.
int32_t CbmTofPoint::GetLastGap | ( | ) | const |
Index of last traversed gap @value Last gap index.
Definition at line 77 of file CbmTofPoint.cxx.
References fGapMask.
|
inline |
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().
int32_t CbmTofPoint::GetNGaps | ( | ) | const |
Number of traversed gaps @value Number of traversed gaps.
Definition at line 51 of file CbmTofPoint.cxx.
References fGapMask.
void CbmTofPoint::SetGap | ( | int32_t | iGap | ) |
Set a gap in the gap mask.
iGap | Gap number |
Definition at line 91 of file CbmTofPoint.cxx.
References fGapMask.
Referenced by CbmTof::ProcessHits().
|
inline |
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().
|
inline |
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().
|
inline |
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().
|
inline |
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 |
String representation of the object. @value String representation of the object.
Reimplemented in CbmTofInteraction.
Definition at line 100 of file CbmTofPoint.cxx.
References fGapMask, and fNofCells.
Referenced by CbmTofInteraction::ToString().
|
private |
Number of cells traversed.
Definition at line 129 of file CbmTofPoint.h.
Referenced by GetFirstGap(), GetLastGap(), GetNGaps(), SetGap(), and ToString().
|
private |
Definition at line 128 of file CbmTofPoint.h.
Referenced by GetNCells(), SetNCells(), and ToString().