CbmRoot
Loading...
Searching...
No Matches
cbm::algo::kf::ParticlePDG Class Reference

Properties of a tracked particle. More...

#include <KfParticlePDG.h>

Private Member Functions

constexpr ParticlePDG (int pid, double mass, bool bremsstr)
 Constructor from parameters.
 
 ParticlePDG ()=delete
 Default constructor.
 
constexpr double GetMass () const
 Gets particle mass [GeV/c2].
 
constexpr double GetMassSq () const
 Gets squared particle mass [(GeV/c2)2].
 
constexpr int GetPid () const
 Gets particle PID (NOTE: absolute value is used)
 
constexpr bool IfBremsstrahlung () const
 Gets bremsstrahlung flag.
 

Private Attributes

double fMass {}
 Particle mass [GeV/c2].
 
int fPid {}
 Particle encoding according to PDG.
 
bool fbBremsstrahlung {false}
 Is Bremsstrahlung should be taken into account in E-loss estimation.
 

Detailed Description

Properties of a tracked particle.

Definition at line 18 of file KfParticlePDG.h.

Constructor & Destructor Documentation

◆ ParticlePDG() [1/2]

cbm::algo::kf::ParticlePDG::ParticlePDG ( int pid,
double mass,
bool bremsstr )
inlineconstexprprivate

Constructor from parameters.

Parameters
pidPID code (note: abs value is only accounted)
massParticle mass [GeV/c2]
bremsstrIf bremsstrahlung should be accounted (i.e. if particle an electron)

Definition at line 23 of file KfParticlePDG.h.

◆ ParticlePDG() [2/2]

cbm::algo::kf::ParticlePDG::ParticlePDG ( )
privatedelete

Default constructor.

Member Function Documentation

◆ GetMass()

double cbm::algo::kf::ParticlePDG::GetMass ( ) const
inlineconstexprprivate

Gets particle mass [GeV/c2].

Definition at line 29 of file KfParticlePDG.h.

◆ GetMassSq()

double cbm::algo::kf::ParticlePDG::GetMassSq ( ) const
inlineconstexprprivate

Gets squared particle mass [(GeV/c2)2].

Definition at line 32 of file KfParticlePDG.h.

◆ GetPid()

int cbm::algo::kf::ParticlePDG::GetPid ( ) const
inlineconstexprprivate

Gets particle PID (NOTE: absolute value is used)

Definition at line 35 of file KfParticlePDG.h.

◆ IfBremsstrahlung()

bool cbm::algo::kf::ParticlePDG::IfBremsstrahlung ( ) const
inlineconstexprprivate

Gets bremsstrahlung flag.

Definition at line 38 of file KfParticlePDG.h.

Member Data Documentation

◆ fbBremsstrahlung

bool cbm::algo::kf::ParticlePDG::fbBremsstrahlung {false}
private

Is Bremsstrahlung should be taken into account in E-loss estimation.

Definition at line 43 of file KfParticlePDG.h.

◆ fMass

double cbm::algo::kf::ParticlePDG::fMass {}
private

Particle mass [GeV/c2].

Definition at line 41 of file KfParticlePDG.h.

◆ fPid

int cbm::algo::kf::ParticlePDG::fPid {}
private

Particle encoding according to PDG.

Definition at line 42 of file KfParticlePDG.h.


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