CbmRoot
Loading...
Searching...
No Matches
cbm::algo::kf::defs Namespace Reference

Namespaces

namespace  dbg
 

Variables

constexpr int MaxNofDetSubsystems = 256
 Max number of detector types (STS, TRD, RICH,...)
 
constexpr int MaxNofDetComponents = 128
 Max number of detector components (stations, layers, ...)
 
constexpr int DebugLvl = 0
 Level of debug output.
 
constexpr bool GetterCheck = true
 Bound check in getters.
 
template<class T = double>
constexpr auto Pi = Literal_t<T>(3.14159265358979323846L)
 Value of PI, used in ROOT TMath.
 
template<class T = double>
constexpr auto MuonMass = Literal_t<T>(0.105658375523L)
 Muon mass [GeV/c2].
 
template<class T = double>
constexpr auto PionMass = Literal_t<T>(0.1395703918L)
 Pion mass [GeV/c2].
 
template<class T = double>
constexpr auto KaonMass = Literal_t<T>(0.493677L)
 Kaon mass [GeV/c2] (PDG 22.08.2023)
 
template<class T = double>
constexpr auto ElectronMass = Literal_t<T>(0.0005109989500015L)
 Electron mass [GeV/c2].
 
template<class T = double>
constexpr auto ProtonMass = Literal_t<T>(0.93827208816L)
 Proton mass [GeV/c2] (PDG 11.08.2022)
 
template<class T = double>
constexpr auto SpeedOfLight = Literal_t<T>(29.9792458L)
 Speed of light [cm/ns].
 
template<class T = double>
constexpr auto SpeedOfLightInv = Literal_t<T>(1.L) / SpeedOfLight<T>
 Inverse speed of light [ns/cm].
 
template<class T = double>
constexpr auto MinField = Literal_t<T>(1.e-4L)
 Minimal (negligible) magnetic field value [kG].
 
template<typename T1 , typename T2 = T1>
constexpr T2 Undef
 Undefined values.
 
template<>
constexpr int Undef< int > = std::numeric_limits<int>::min()
 
template<>
constexpr unsigned Undef< unsigned > = std::numeric_limits<unsigned>::max()
 
template<>
constexpr float Undef< float > = std::numeric_limits<float>::signaling_NaN()
 
template<>
constexpr double Undef< double > = std::numeric_limits<double>::signaling_NaN()
 
template<>
constexpr fscal Undef< fvec > = std::numeric_limits<fscal>::signaling_NaN()
 
constexpr auto ZeroFieldFn = [](double, double, double) constexpr { return std::make_tuple(0., 0., 0.); }
 Zero magnetic field function.
 

Variable Documentation

◆ DebugLvl

int cbm::algo::kf::defs::DebugLvl = 0
constexpr

Level of debug output.

Definition at line 79 of file KfDefs.h.

◆ ElectronMass

template<class T = double>
auto cbm::algo::kf::defs::ElectronMass = Literal_t<T>(0.0005109989500015L)
constexpr

Electron mass [GeV/c2].

Definition at line 98 of file KfDefs.h.

◆ GetterCheck

bool cbm::algo::kf::defs::GetterCheck = true
constexpr

Bound check in getters.

Definition at line 80 of file KfDefs.h.

◆ KaonMass

template<class T = double>
auto cbm::algo::kf::defs::KaonMass = Literal_t<T>(0.493677L)
constexpr

Kaon mass [GeV/c2] (PDG 22.08.2023)

Definition at line 95 of file KfDefs.h.

◆ MaxNofDetComponents

int cbm::algo::kf::defs::MaxNofDetComponents = 128
constexpr

Max number of detector components (stations, layers, ...)

Definition at line 76 of file KfDefs.h.

◆ MaxNofDetSubsystems

int cbm::algo::kf::defs::MaxNofDetSubsystems = 256
constexpr

Max number of detector types (STS, TRD, RICH,...)

Definition at line 75 of file KfDefs.h.

Referenced by cbm::algo::kf::ModuleIndexMapFactory::MakeIndexMap().

◆ MinField

template<class T = double>
auto cbm::algo::kf::defs::MinField = Literal_t<T>(1.e-4L)
constexpr

Minimal (negligible) magnetic field value [kG].

Definition at line 110 of file KfDefs.h.

Referenced by cbm::kf::TrackingSetupBuilder::Init().

◆ MuonMass

template<class T = double>
auto cbm::algo::kf::defs::MuonMass = Literal_t<T>(0.105658375523L)
constexpr

Muon mass [GeV/c2].

Definition at line 89 of file KfDefs.h.

◆ Pi

template<class T = double>
auto cbm::algo::kf::defs::Pi = Literal_t<T>(3.14159265358979323846L)
constexpr

Value of PI, used in ROOT TMath.

Definition at line 85 of file KfDefs.h.

◆ PionMass

template<class T = double>
auto cbm::algo::kf::defs::PionMass = Literal_t<T>(0.1395703918L)
constexpr

Pion mass [GeV/c2].

Definition at line 92 of file KfDefs.h.

◆ ProtonMass

template<class T = double>
auto cbm::algo::kf::defs::ProtonMass = Literal_t<T>(0.93827208816L)
constexpr

Proton mass [GeV/c2] (PDG 11.08.2022)

Definition at line 101 of file KfDefs.h.

◆ SpeedOfLight

template<class T = double>
auto cbm::algo::kf::defs::SpeedOfLight = Literal_t<T>(29.9792458L)
constexpr

Speed of light [cm/ns].

Definition at line 104 of file KfDefs.h.

Referenced by cbm::algo::kf::TrackKalmanFilter< DataT >::ExtrapolateStep().

◆ SpeedOfLightInv

◆ Undef

template<typename T1 , typename T2 = T1>
T2 cbm::algo::kf::defs::Undef
constexpr

Undefined values.

Definition at line 115 of file KfDefs.h.

Referenced by cbm::algo::kf::utils::IsFinite(), and cbm::algo::kf::utils::IsUndefined().

◆ Undef< double >

template<>
double cbm::algo::kf::defs::Undef< double > = std::numeric_limits<double>::signaling_NaN()
inlineconstexpr

◆ Undef< float >

template<>
float cbm::algo::kf::defs::Undef< float > = std::numeric_limits<float>::signaling_NaN()
inlineconstexpr

Definition at line 124 of file KfDefs.h.

◆ Undef< fvec >

template<>
fscal cbm::algo::kf::defs::Undef< fvec > = std::numeric_limits<fscal>::signaling_NaN()
inlineconstexpr

Definition at line 130 of file KfDefs.h.

◆ Undef< int >

template<>
int cbm::algo::kf::defs::Undef< int > = std::numeric_limits<int>::min()
inlineconstexpr

Definition at line 118 of file KfDefs.h.

◆ Undef< unsigned >

template<>
unsigned cbm::algo::kf::defs::Undef< unsigned > = std::numeric_limits<unsigned>::max()
inlineconstexpr

Definition at line 121 of file KfDefs.h.

◆ ZeroFieldFn

auto cbm::algo::kf::defs::ZeroFieldFn = [](double, double, double) constexpr { return std::make_tuple(0., 0., 0.); }
constexpr

Zero magnetic field function.

Definition at line 134 of file KfDefs.h.