CbmRoot
Loading...
Searching...
No Matches
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.
 
 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.
 

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 44 of file CbmTofPoint.h.

Constructor & Destructor Documentation

◆ CbmTofPoint() [1/2]

CbmTofPoint::CbmTofPoint ( )

Default constructor.

Definition at line 30 of file CbmTofPoint.cxx.

◆ CbmTofPoint() [2/2]

CbmTofPoint::CbmTofPoint ( int32_t trackID,
int32_t detID,
TVector3 pos,
TVector3 mom,
double tof,
double length,
double 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 35 of file CbmTofPoint.cxx.

◆ ~CbmTofPoint()

CbmTofPoint::~CbmTofPoint ( )
virtual

Destructor.

Definition at line 46 of file CbmTofPoint.cxx.

Member Function Documentation

◆ GetFirstGap()

int32_t CbmTofPoint::GetFirstGap ( ) const

Index of first traversed gap @value First gap index.

Definition at line 65 of file CbmTofPoint.cxx.

References fGapMask.

◆ GetLastGap()

int32_t CbmTofPoint::GetLastGap ( ) const

Index of last traversed gap @value Last gap index.

Definition at line 77 of file CbmTofPoint.cxx.

References fGapMask.

◆ GetNCells()

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

◆ GetNGaps()

int32_t CbmTofPoint::GetNGaps ( ) const

Number of traversed gaps @value Number of traversed gaps.

Definition at line 51 of file CbmTofPoint.cxx.

References fGapMask.

◆ SetGap()

void CbmTofPoint::SetGap ( int32_t iGap)

Set a gap in the gap mask.

Parameters
iGapGap number

Definition at line 91 of file CbmTofPoint.cxx.

References fGapMask.

Referenced by CbmTof::ProcessHits().

◆ SetNCells()

void CbmTofPoint::SetNCells ( int32_t nCells)
inline

Set the number of traversed cells.

Parameters
nCellsNumber of traversed cells

Definition at line 112 of file CbmTofPoint.h.

References fNofCells.

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

◆ SetPx()

void CbmTofPoint::SetPx ( double pX)
inline

Set x component of momentum.

Parameters
pXx component of momentum [GeV]

Definition at line 94 of file CbmTofPoint.h.

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

◆ SetPy()

void CbmTofPoint::SetPy ( double pY)
inline

Set y component of momentum.

Parameters
pYy component of momentum [GeV]

Definition at line 100 of file CbmTofPoint.h.

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

◆ SetPz()

void CbmTofPoint::SetPz ( double pZ)
inline

Set z component of momentum.

Parameters
pZz component of momentum [GeV]

Definition at line 106 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.

Reimplemented in CbmTofInteraction.

Definition at line 100 of file CbmTofPoint.cxx.

References fGapMask, and fNofCells.

Referenced by CbmTofInteraction::ToString().

Member Data Documentation

◆ fGapMask

uint16_t CbmTofPoint::fGapMask
private

Number of cells traversed.

Definition at line 129 of file CbmTofPoint.h.

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

◆ fNofCells

int32_t CbmTofPoint::fNofCells
private

Definition at line 128 of file CbmTofPoint.h.

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


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