CbmRoot
Loading...
Searching...
No Matches
CbmTofInteraction Class Reference

#include <CbmTofInteraction.h>

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

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.
 

Detailed Description

Class describes an interaction of a MC track with a TOF module as a solid structure

Definition at line 20 of file CbmTofInteraction.h.

Constructor & Destructor Documentation

◆ CbmTofInteraction() [1/2]

CbmTofInteraction::CbmTofInteraction ( )

Default constructor.

Definition at line 20 of file CbmTofInteraction.cxx.

◆ CbmTofInteraction() [2/2]

template<typename... Args>
CbmTofInteraction::CbmTofInteraction ( Args... args)
inline

Constructor with signature from CbmTofPoint

Parameters
argsList of parameters for any CbmTofPoint constructor

Definition at line 29 of file CbmTofInteraction.h.

◆ ~CbmTofInteraction()

CbmTofInteraction::~CbmTofInteraction ( )
default

Destructor.

Member Function Documentation

◆ AddPoint()

void CbmTofInteraction::AddPoint ( const CbmTofPoint * pPoint)

Adds a point to the interaction New point updates the following properties of the interaction: position, entrance momentum.

Parameters
pPointPointer to TOF MC-point

Definition at line 24 of file CbmTofInteraction.cxx.

References fNofPoints, fvpPoints, and UpdateAverage().

◆ Clear()

void CbmTofInteraction::Clear ( Option_t * )

Clears the instance.

Definition at line 54 of file CbmTofInteraction.cxx.

References fNofPoints.

◆ GetFirstGap()

int32_t CbmTofPoint::GetFirstGap ( ) const
inherited

Index of first traversed gap @value First gap index.

Definition at line 65 of file CbmTofPoint.cxx.

References CbmTofPoint::fGapMask.

◆ GetLastGap()

int32_t CbmTofPoint::GetLastGap ( ) const
inherited

Index of last traversed gap @value Last gap index.

Definition at line 77 of file CbmTofPoint.cxx.

References CbmTofPoint::fGapMask.

◆ GetNCells()

int32_t CbmTofPoint::GetNCells ( ) const
inlineinherited

Number of traversed cells @value Number of traversed cells.

Definition at line 70 of file CbmTofPoint.h.

References CbmTofPoint::fNofCells.

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

◆ GetNGaps()

int32_t CbmTofPoint::GetNGaps ( ) const
inherited

Number of traversed gaps @value Number of traversed gaps.

Definition at line 51 of file CbmTofPoint.cxx.

References CbmTofPoint::fGapMask.

◆ GetNofPoints()

int CbmTofInteraction::GetNofPoints ( ) const
inline

Gets number of stored points.

Definition at line 53 of file CbmTofInteraction.h.

References fNofPoints.

◆ GetPoints()

const std::vector< const CbmTofPoint * > & CbmTofInteraction::GetPoints ( ) const
inline

Gets pointers to points (TMP!!!!)

Definition at line 59 of file CbmTofInteraction.h.

References fvpPoints.

◆ SetFromPoint()

void CbmTofInteraction::SetFromPoint ( const CbmTofPoint * pPoint)

Sets parameters from a particular TOF MC-point.

Parameters
pPointPointer to TOF point The purpose of the

Definition at line 73 of file CbmTofInteraction.cxx.

◆ SetGap()

void CbmTofPoint::SetGap ( int32_t iGap)
inherited

Set a gap in the gap mask.

Parameters
iGapGap number

Definition at line 91 of file CbmTofPoint.cxx.

References CbmTofPoint::fGapMask.

Referenced by CbmTof::ProcessHits().

◆ SetNCells()

void CbmTofPoint::SetNCells ( int32_t nCells)
inlineinherited

Set the number of traversed cells.

Parameters
nCellsNumber of traversed cells

Definition at line 112 of file CbmTofPoint.h.

References CbmTofPoint::fNofCells.

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

◆ SetPx()

void CbmTofPoint::SetPx ( double pX)
inlineinherited

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)
inlineinherited

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)
inlineinherited

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()

std::string CbmTofInteraction::ToString ( ) const
virtual

Saves content of the class to string.

Reimplemented from CbmTofPoint.

Definition at line 93 of file CbmTofInteraction.cxx.

References fNofPoints, and CbmTofPoint::ToString().

◆ UpdateAverage()

template<typename T >
void CbmTofInteraction::UpdateAverage ( const T & update,
T & property )
inlineprivate

Updates average of the property from original TOF MC-point.

Parameters
updateProperty of the added MC point
propertyUpdated property of this interaction

Definition at line 67 of file CbmTofInteraction.h.

References fNofPoints.

Referenced by AddPoint().

Member Data Documentation

◆ fGapMask

uint16_t CbmTofPoint::fGapMask
privateinherited

◆ fNofCells

int32_t CbmTofPoint::fNofCells
privateinherited

◆ fNofPoints

int CbmTofInteraction::fNofPoints = 0
private

Number of CbmTofPoint objects, from which the interaction is constructed.

Definition at line 73 of file CbmTofInteraction.h.

Referenced by AddPoint(), Clear(), GetNofPoints(), ToString(), and UpdateAverage().

◆ fvpPoints

std::vector<const CbmTofPoint*> CbmTofInteraction::fvpPoints
private

Vector of point pointer (TMP!!!!)

Definition at line 74 of file CbmTofInteraction.h.

Referenced by AddPoint(), and GetPoints().


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