|
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.
|
inline |
Copy constructor.
| I | Underlying data-type of the other object |
Definition at line 56 of file KfFieldValue.h.
|
default |
Destructor.
| void cbm::algo::kf::FieldValue< T >::CheckConsistency | ( | ) | const |
Consistency checker.
Definition at line 20 of file KfFieldValue.cxx.
|
inline |
Gets magnetic flux density x, y, z-components [kG].
Definition at line 96 of file KfFieldValue.h.
|
inline |
Gets absolute magnetic flux [kG].
Definition at line 102 of file KfFieldValue.h.
|
inline |
Gets squared absolute magnetic flux [kG2].
Definition at line 99 of file KfFieldValue.h.
|
inline |
Gets magnetic flux x-component [kG].
Definition at line 109 of file KfFieldValue.h.
|
inline |
Gets magnetic flux density y-component [kG].
Definition at line 112 of file KfFieldValue.h.
|
inline |
Gets magnetic flux density z-component [kG].
Definition at line 115 of file KfFieldValue.h.
|
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.
|
inline |
Gets z-coordinate of the spatial point [cm].
Definition at line 118 of file KfFieldValue.h.
|
inline |
Checks, if the field value is zero (negligible)
Definition at line 121 of file KfFieldValue.h.
|
default |
Copy assignment operator.
|
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.
|
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.
|
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.
| std::string cbm::algo::kf::FieldValue< T >::ToString | ( | int | indentLevel = 0 | ) | const |
String representation of the field.
Definition at line 33 of file KfFieldValue.cxx.
|
friend |
Serialization function.
Definition at line 156 of file KfFieldValue.h.
Definition at line 33 of file KfFieldValue.h.
|
private |
Magnetic flux vector [kG].
Definition at line 165 of file KfFieldValue.h.
|
private |
Definition at line 167 of file KfFieldValue.h.