CbmRoot
CbmTofPoint Class Reference

Geometric intersection of a MC track with a TOFb detector. More...

#include <CbmTofPoint.h>

Inheritance diagram for CbmTofPoint:
[legend]
Collaboration diagram for CbmTofPoint:
[legend]

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...
 

Detailed Description

Geometric intersection of a MC track with a TOFb detector.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Christian Simon c.sim.nosp@m.on@p.nosp@m.hysi..nosp@m.uni-.nosp@m.heide.nosp@m.lber.nosp@m.g.de
Since
16.06.2014
Date
11.04.2017
Version
3.0

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.

Constructor & Destructor Documentation

◆ CbmTofPoint() [1/2]

CbmTofPoint::CbmTofPoint ( )

Default constructor.

Definition at line 26 of file CbmTofPoint.cxx.

◆ CbmTofPoint() [2/2]

CbmTofPoint::CbmTofPoint ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss 
)

Constructor with arguments.

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posCoordinates at entrance to active volume [cm]
momMomentum of track at entrance [GeV]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]

Definition at line 31 of file CbmTofPoint.cxx.

◆ ~CbmTofPoint()

CbmTofPoint::~CbmTofPoint ( )
virtual

Destructor.

Definition at line 45 of file CbmTofPoint.cxx.

Member Function Documentation

◆ GetFirstGap()

Int_t CbmTofPoint::GetFirstGap ( ) const

Index of first traversed gap @value First gap index.

Definition at line 64 of file CbmTofPoint.cxx.

References fGapMask.

◆ GetLastGap()

Int_t CbmTofPoint::GetLastGap ( ) const

Index of last traversed gap @value Last gap index.

Definition at line 76 of file CbmTofPoint.cxx.

References fGapMask.

◆ GetNCells()

Int_t CbmTofPoint::GetNCells ( ) const
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().

◆ GetNGaps()

Int_t CbmTofPoint::GetNGaps ( ) const

Number of traversed gaps @value Number of traversed gaps.

Definition at line 50 of file CbmTofPoint.cxx.

References fGapMask.

◆ SetGap()

void CbmTofPoint::SetGap ( Int_t  iGap)

Set a gap in the gap mask.

Parameters
iGapGap number

Definition at line 90 of file CbmTofPoint.cxx.

References fGapMask.

Referenced by CbmTof::ProcessHits().

◆ SetNCells()

void CbmTofPoint::SetNCells ( Int_t  nCells)
inline

Set the number of traversed cells.

Parameters
nCellsNumber of traversed cells

Definition at line 114 of file CbmTofPoint.h.

References fNofCells.

Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().

◆ SetPx()

void CbmTofPoint::SetPx ( Double_t  pX)
inline

Set x component of momentum.

Parameters
pXx component of momentum [GeV]

Definition at line 96 of file CbmTofPoint.h.

Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().

◆ SetPy()

void CbmTofPoint::SetPy ( Double_t  pY)
inline

Set y component of momentum.

Parameters
pYy component of momentum [GeV]

Definition at line 102 of file CbmTofPoint.h.

Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().

◆ SetPz()

void CbmTofPoint::SetPz ( Double_t  pZ)
inline

Set z component of momentum.

Parameters
pZz component of momentum [GeV]

Definition at line 108 of file CbmTofPoint.h.

Referenced by CbmTof::FinishEvent(), and CbmTof::ProcessHits().

◆ ToString()

string CbmTofPoint::ToString ( ) const
virtual

String representation of the object. @value String representation of the object.

Definition at line 98 of file CbmTofPoint.cxx.

References fGapMask, and fNofCells.

Member Data Documentation

◆ fGapMask

UShort_t CbmTofPoint::fGapMask
private

Number of cells traversed.

Definition at line 131 of file CbmTofPoint.h.

Referenced by GetFirstGap(), GetLastGap(), GetNGaps(), SetGap(), and ToString().

◆ fNofCells

Int_t CbmTofPoint::fNofCells
private

Definition at line 130 of file CbmTofPoint.h.

Referenced by GetNCells(), SetNCells(), and ToString().


The documentation for this class was generated from the following files: