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) | |
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) |
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]. | |
bool | IsZero () const |
Checks, if the field value is zero (negligible) | |
void | CheckConsistency () const |
Consistency checker. | |
void | SetSimdEntry (double bx, double by, double bz, 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]. | |
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] |
Definition at line 46 of file KfFieldValue.h.
|
inline |
Copy constructor.
I | Underlying data-type of the other object |
Definition at line 54 of file KfFieldValue.h.
|
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().
|
inline |
Gets magnetic flux density x, y, z-components [kG].
Definition at line 89 of file KfFieldValue.h.
|
inline |
Gets absolute magnetic flux [kG].
Definition at line 95 of file KfFieldValue.h.
Referenced by CbmL1::FieldApproxCheck().
|
inline |
Gets squared absolute magnetic flux [kG2].
Definition at line 92 of file KfFieldValue.h.
|
inline |
Gets magnetic flux x-component [kG].
Definition at line 102 of file KfFieldValue.h.
Referenced by cbm::algo::kf::TrackKalmanFilter< DataT >::ExtrapolateStep(), and CbmL1::FieldApproxCheck().
|
inline |
Gets magnetic flux density y-component [kG].
Definition at line 105 of file KfFieldValue.h.
Referenced by cbm::algo::kf::TrackKalmanFilter< DataT >::ExtrapolateStep(), CbmL1::FieldApproxCheck(), and cbm::algo::ca::TrackFitter::FitCaTracks().
|
inline |
Gets magnetic flux density z-component [kG].
Definition at line 108 of file KfFieldValue.h.
Referenced by cbm::algo::kf::TrackKalmanFilter< DataT >::ExtrapolateStep(), and CbmL1::FieldApproxCheck().
|
inline |
Gets component by index.
iD | index of the component (i = 0: x, 1: y, 2: z) |
Definition at line 99 of file KfFieldValue.h.
|
inline |
Checks, if the field value is zero (negligible)
Definition at line 111 of file KfFieldValue.h.
Referenced by cbm::algo::kf::FieldRegion< T >::Set().
|
default |
Copy assignment operator.
|
inlineprivate |
Definition at line 146 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] |
Definition at line 70 of file KfFieldValue.h.
Referenced by cbm::algo::ca::TripletConstructor::CreateTripletsForHit(), cbm::algo::ca::CloneMerger::Exec(), cbm::algo::ca::TrackExtender::FindMoreHits(), CbmL1PFFitter::Fit(), and cbm::algo::ca::TrackExtender::FitBranchFast().
|
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 80 of file KfFieldValue.h.
References cbm::algo::kf::FieldValue< T >::fB.
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] |
i | index of the SIMD entry (ignored, if T is not a SIMD vector) |
Definition at line 132 of file KfFieldValue.h.
Referenced by CbmL1PFFitter::CalculateFieldRegion(), CbmL1PFFitter::CalculateFieldRegionAtLastPoint(), CbmL1PFFitter::Fit(), cbm::algo::ca::TrackFitter::FitCaTracks(), CbmL1PFFitter::GetChiToVertex(), and cbm::algo::kf::GlobalField::GetFieldValue().
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 144 of file KfFieldValue.h.
Definition at line 33 of file KfFieldValue.h.
|
private |
Magnetic flux vector [kG].
Definition at line 152 of file KfFieldValue.h.
Referenced by cbm::algo::kf::FieldValue< T >::SetSimdEntries().