CbmRoot
|
Geometric intersection of a MC track with a TOFb detector. More...
#include <CbmTofPoint.h>
Public Member Functions | |
CbmTofPoint () | |
Default constructor. More... | |
CbmTofPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss) | |
Constructor with arguments. More... | |
virtual | ~CbmTofPoint () |
Destructor. More... | |
Int_t | GetNCells () const |
Number of traversed cells @value Number of traversed cells. More... | |
Int_t | GetNGaps () const |
Number of traversed gaps @value Number of traversed gaps. More... | |
Int_t | GetFirstGap () const |
Index of first traversed gap @value First gap index. More... | |
Int_t | GetLastGap () const |
Index of last traversed gap @value Last gap index. More... | |
void | SetPx (Double_t pX) |
Set x component of momentum. More... | |
void | SetPy (Double_t pY) |
Set y component of momentum. More... | |
void | SetPz (Double_t pZ) |
Set z component of momentum. More... | |
void | SetNCells (Int_t nCells) |
Set the number of traversed cells. More... | |
void | SetGap (Int_t iGap) |
Set a gap in the gap mask. More... | |
virtual std::string | ToString () const |
String representation of the object. @value String representation of the object. More... | |
Private Attributes | |
Int_t | fNofCells |
UShort_t | fGapMask |
Number of cells traversed. More... | |
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 40 of file CbmTofPoint.h.
CbmTofPoint::CbmTofPoint | ( | ) |
Default constructor.
Definition at line 26 of file CbmTofPoint.cxx.
CbmTofPoint::CbmTofPoint | ( | Int_t | trackID, |
Int_t | detID, | ||
TVector3 | pos, | ||
TVector3 | mom, | ||
Double_t | tof, | ||
Double_t | length, | ||
Double_t | 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 31 of file CbmTofPoint.cxx.
|
virtual |
Destructor.
Definition at line 45 of file CbmTofPoint.cxx.
Int_t CbmTofPoint::GetFirstGap | ( | ) | const |
Index of first traversed gap @value First gap index.
Definition at line 64 of file CbmTofPoint.cxx.
References fGapMask.
Int_t CbmTofPoint::GetLastGap | ( | ) | const |
Index of last traversed gap @value Last gap index.
Definition at line 76 of file CbmTofPoint.cxx.
References fGapMask.
|
inline |
Number of traversed cells @value Number of traversed cells.
Definition at line 72 of file CbmTofPoint.h.
References fNofCells.
Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().
Int_t CbmTofPoint::GetNGaps | ( | ) | const |
Number of traversed gaps @value Number of traversed gaps.
Definition at line 50 of file CbmTofPoint.cxx.
References fGapMask.
void CbmTofPoint::SetGap | ( | Int_t | iGap | ) |
Set a gap in the gap mask.
iGap | Gap number |
Definition at line 90 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 114 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 96 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 102 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 108 of file CbmTofPoint.h.
Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().
|
virtual |
String representation of the object. @value String representation of the object.
Definition at line 98 of file CbmTofPoint.cxx.
|
private |
Number of cells traversed.
Definition at line 131 of file CbmTofPoint.h.
Referenced by GetFirstGap(), GetLastGap(), GetNGaps(), SetGap(), and ToString().
|
private |
Definition at line 130 of file CbmTofPoint.h.
Referenced by GetNCells(), SetNCells(), and ToString().