|
CbmRoot
|
Magnetic flux density vector. More...
#include <KfFieldValue.h>
Public Member Functions | |
| FieldValue ()=default | |
| Default constructor. | |
| template<typename I> | |
| FieldValue (const I &bx, const I &by, const I &bz, const I &z) | |
| Constructor from components. | |
| template<typename I> | |
| FieldValue (const FieldValue< I > &other) | |
| Copy constructor. | |
| ~FieldValue ()=default | |
| Destructor. | |
| FieldValue & | operator= (const FieldValue &other)=default |
| Copy assignment operator. | |
| template<typename I> | |
| void | Set (const I &bx, const I &by, const I &bz, const I &z) |
| Constructor from components. | |
| void | SetSimdEntries (const FieldValue &other, const kf::utils::masktype< T > &mask) |
| Combines the current magnetic field value with another one using a mask. | |
| std::tuple< T, T, T > | Get () const |
| Gets magnetic flux density x, y, z-components [kG]. | |
| T | GetAbsSq () const |
| Gets squared absolute magnetic flux [kG2]. | |
| T | GetAbs () const |
| Gets absolute magnetic flux [kG]. | |
| T | GetComponent (int iD) const |
| Gets component by index. | |
| T | GetBx () const |
| Gets magnetic flux x-component [kG]. | |
| T | GetBy () const |
| Gets magnetic flux density y-component [kG]. | |
| T | GetBz () const |
| Gets magnetic flux density z-component [kG]. | |
| T | GetZ () const |
| Gets z-coordinate of the spatial point [cm]. | |
| bool | IsZero () const |
| Checks, if the field value is zero (negligible) | |
| void | CheckConsistency () const |
| Consistency checker. | |
| void | SetSimdEntry (double bx, double by, double bz, double z, size_t i) |
| Sets magnetic flux density components to the field function. | |
| std::string | ToString (int indentLevel=0) const |
| String representation of the field. | |
Private Member Functions | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
Private Attributes | |
| GeoVector_t< T > | fB |
| Magnetic flux vector [kG]. | |
| T | fZ {} |
Friends | |
| template<typename> | |
| class | FieldValue |
| class | boost::serialization::access |
| Serialization function. | |
Magnetic flux density vector.
| T | Underlying data-type (float, double, fvec) |
Definition at line 31 of file KfFieldValue.h.
|
default |
Default constructor.
|
inline |
Constructor from components.
| I | Data type of the input parameters |
| bx | x-component of magnetic field vector [kG] |
| by | y-component of magnetic field vector [kG] |
| bz | z-component of magnetic field vector [kG] |
| z | z-component of the spatial point [cm] |
Definition at line 47 of file KfFieldValue.h.
References cbm::algo::kf::utils::simd::Cast(), and fB.
|
inline |
Copy constructor.
| I | Underlying data-type of the other object |
Definition at line 56 of file KfFieldValue.h.
References fB, FieldValue, and fZ.
|
default |
Destructor.
| void cbm::algo::kf::FieldValue< T >::CheckConsistency | ( | ) | const |
Consistency checker.
Definition at line 20 of file KfFieldValue.cxx.
References cbm::algo::kf::utils::CheckSimdVectorEquality(), and fB.
|
inline |
Gets magnetic flux density x, y, z-components [kG].
Definition at line 96 of file KfFieldValue.h.
References fB.
Referenced by CbmL1PFFitter::CalculateFieldRegion(), and CbmL1PFFitter::GetChiToVertex().
|
inline |
Gets absolute magnetic flux [kG].
Definition at line 102 of file KfFieldValue.h.
References GetAbsSq().
|
inline |
Gets squared absolute magnetic flux [kG2].
Definition at line 99 of file KfFieldValue.h.
References fB.
|
inline |
|
inline |
Gets magnetic flux density y-component [kG].
Definition at line 112 of file KfFieldValue.h.
References fB.
|
inline |
Gets magnetic flux density z-component [kG].
Definition at line 115 of file KfFieldValue.h.
References fB.
|
inline |
Gets component by index.
| iD | index of the component (i = 0: x, 1: y, 2: z) |
Definition at line 106 of file KfFieldValue.h.
References fB.
|
inline |
Gets z-coordinate of the spatial point [cm].
Definition at line 118 of file KfFieldValue.h.
References fZ.
|
inline |
Checks, if the field value is zero (negligible)
Definition at line 121 of file KfFieldValue.h.
References GetAbsSq(), and cbm::algo::kf::defs::MinField.
|
default |
Copy assignment operator.
References FieldValue.
|
inlineprivate |
Definition at line 158 of file KfFieldValue.h.
|
inline |
Constructor from components.
| I | Data type of the input parameters |
| bx | x-component of magnetic field vector [kG] |
| by | y-component of magnetic field vector [kG] |
| bz | z-component of magnetic field vector [kG] |
| z | z-component of the spatial point [cm] |
Definition at line 75 of file KfFieldValue.h.
References cbm::algo::kf::utils::simd::Cast(), fB, and fZ.
Referenced by CbmL1PFFitter::Fit().
|
inline |
Combines the current magnetic field value with another one using a mask.
| other | Other flux value |
| mask | Mask to perform a combination |
Definition at line 86 of file KfFieldValue.h.
References fB, FieldValue, fZ, and cbm::algo::kf::utils::iif().
Referenced by CbmL1PFFitter::Fit(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Sets magnetic flux density components to the field function.
| bx | x-component of the magnetic flux density [kG] |
| by | y-component of the magnetic flux density [kG] |
| bz | z-component of the magnetic flux density [kG] |
| z | z-component of the spatial point [cm] |
| i | index of the SIMD entry (ignored, if T is not a SIMD vector) |
Definition at line 143 of file KfFieldValue.h.
References fB, fZ, and cbm::algo::kf::utils::simd::SetEntry().
Referenced by CbmL1PFFitter::CalculateFieldRegion(), CbmL1PFFitter::CalculateFieldRegionAtLastPoint(), CbmL1PFFitter::Fit(), cbm::algo::ca::TrackFitter::FitCaTracks(), and CbmL1PFFitter::GetChiToVertex().
| std::string cbm::algo::kf::FieldValue< T >::ToString | ( | int | indentLevel = 0 | ) | const |
|
friend |
Serialization function.
Definition at line 156 of file KfFieldValue.h.
Definition at line 33 of file KfFieldValue.h.
References FieldValue.
Referenced by FieldValue, FieldValue(), operator=(), and SetSimdEntries().
|
private |
Magnetic flux vector [kG].
Definition at line 165 of file KfFieldValue.h.
Referenced by CheckConsistency(), FieldValue(), FieldValue(), Get(), GetAbsSq(), GetBx(), GetBy(), GetBz(), GetComponent(), serialize(), Set(), SetSimdEntries(), SetSimdEntry(), and ToString().
|
private |
Definition at line 167 of file KfFieldValue.h.
Referenced by FieldValue(), GetZ(), serialize(), Set(), SetSimdEntries(), and SetSimdEntry().