CbmRoot
|
Handler for the global magnetic field related functions. More...
#include <KfFieldRegion.h>
Static Public Member Functions | |
static std::tuple< double, double, double > | UndefField (double, double, double) |
Undefined magnetic field function. | |
static void | SetFieldFunction (EFieldType fldType, const FieldFn_t &fn) |
Sets global field function. | |
template<typename T > | |
static FieldValue< T > | GetFieldValue (const FieldFn_t &fieldFn, const T &x, const T &y, const T &z) |
Creates a field value object in a spactial point of a generic floating-point type. | |
static void | ForceUseOfOriginalField (bool v=true) |
Forces the use of the original field function. | |
static bool | IsUsingOriginalFieldForced () |
Checks if the original field function is used. | |
Static Public Attributes | |
static FieldFn_t | fgOriginalField {&GlobalField::UndefField} |
Global variable to store the fielf funciton (x,y,z)->(Bx,By,Bz) | |
static EFieldType | fgOriginalFieldType {EFieldType::Null} |
Global field type. | |
Static Private Attributes | |
static bool | fgForceUseOfOriginalField {false} |
Flag to force the use of the original field in all field classes. | |
Handler for the global magnetic field related functions.
Definition at line 33 of file KfFieldRegion.h.
|
inlinestatic |
Forces the use of the original field function.
Definition at line 64 of file KfFieldRegion.h.
References fgForceUseOfOriginalField, and v.
Referenced by cbm::algo::ca::Framework::ReceiveParameters().
|
inlinestatic |
Creates a field value object in a spactial point of a generic floating-point type.
T | Floating point data-type of the involved variables |
fieldFn | Field function (x,y,z)->(Bx,By,Bz) |
x | The point x-coordinate [cm] |
y | The point y-coordinate [cm] |
z | The point z-coordinate [cm] |
Definition at line 433 of file KfFieldRegion.h.
References cbm::algo::kf::FieldValue< T >::SetSimdEntry(), x, and y.
|
inlinestatic |
Checks if the original field function is used.
Definition at line 67 of file KfFieldRegion.h.
References fgForceUseOfOriginalField.
Referenced by UndefField().
|
inlinestatic |
Sets global field function.
fn | Field function of the FairRoot format |
Definition at line 46 of file KfFieldRegion.h.
References fgOriginalField, and fgOriginalFieldType.
Referenced by cbm::ca::tools::SetOriginalCbmField().
|
static |
Undefined magnetic field function.
Definition at line 228 of file KfFieldRegion.cxx.
References IsUsingOriginalFieldForced(), and cbm::algo::kf::defs::Undef< double >.
|
staticprivate |
Flag to force the use of the original field in all field classes.
Definition at line 70 of file KfFieldRegion.h.
Referenced by ForceUseOfOriginalField(), and IsUsingOriginalFieldForced().
|
static |
Global variable to store the fielf funciton (x,y,z)->(Bx,By,Bz)
Definition at line 36 of file KfFieldRegion.h.
Referenced by cbm::ca::TrackFitQa::Fill(), CbmL1::FillFitHistos(), cbm::algo::ca::TrackFitter::FitCaTracks(), CbmKfTrackFitter::FitTrajectory(), cbm::ca::TrackTypeQa::Init(), SetFieldFunction(), and CbmL1::TrackFitPerformance().
|
static |
Global field type.
global field type
Definition at line 39 of file KfFieldRegion.h.
Referenced by cbm::ca::TrackFitQa::Fill(), cbm::algo::ca::TrackFitter::FitCaTracks(), CbmKfTrackFitter::FitTrajectory(), cbm::ca::TrackTypeQa::Init(), SetFieldFunction(), and CbmL1::TrackFitPerformance().