|
CbmRoot
|
Handler for the global magnetic field related functions. More...
#include <KfFieldRegion.h>
Public Member Functions | |
| ~GlobalField ()=delete | |
| Destructor of static class. | |
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, T x, T y, 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 field function (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 34 of file KfFieldRegion.h.
|
delete |
Destructor of static class.
|
inlinestatic |
Forces the use of the original field function.
Definition at line 67 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 533 of file KfFieldRegion.h.
References cbm::algo::kf::utils::simd::Cast(), GetFieldValue(), x, and y.
Referenced by cbm::algo::kf::detail::ConcreteFieldRegion< T, EFieldMode::Original >::Get(), cbm::algo::kf::detail::ConcreteField< T, EFieldMode::Original >::GetFieldValue(), GetFieldValue(), and cbm::algo::kf::FieldBuilder::MakeField().
|
inlinestatic |
Checks if the original field function is used.
Definition at line 70 of file KfFieldRegion.h.
References fgForceUseOfOriginalField.
Referenced by UndefField().
|
inlinestatic |
Sets global field function.
| fn | Field function of the FairRoot format |
Definition at line 50 of file KfFieldRegion.h.
References fgOriginalField, and fgOriginalFieldType.
Referenced by cbm::kf::tools::SetOriginalCbmField().
|
static |
Undefined magnetic field function.
Definition at line 197 of file KfFieldRegion.cxx.
References IsUsingOriginalFieldForced(), and cbm::algo::kf::defs::Undef.
|
staticprivate |
Flag to force the use of the original field in all field classes.
Definition at line 73 of file KfFieldRegion.h.
Referenced by ForceUseOfOriginalField(), and IsUsingOriginalFieldForced().
|
static |
Global variable to store the field function (x,y,z)->(Bx,By,Bz)
Definition at line 40 of file KfFieldRegion.h.
Referenced by cbm::kf::CreateKfParticle(), CbmL1::FillFitHistos(), cbm::algo::ca::TrackFitter::FitCaTracks(), CbmKfTrackFitter< FlagFitTime >::FitTrajectory(), CbmKfTrackFitter< FlagFitTime >::FitTrajectoryDownstream(), CbmKfTrackFitter< FlagFitTime >::FitTrajectoryUpstream(), cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex(), CbmKfTrackFitter< FlagFitTime >::PropagateToZ(), SetFieldFunction(), and CbmL1::TrackFitPerformance().
|
static |
Global field type.
global field type
Definition at line 43 of file KfFieldRegion.h.
Referenced by cbm::kf::CreateKfParticle(), cbm::algo::ca::TrackFitter::FitCaTracks(), CbmKfTrackFitter< FlagFitTime >::FitTrajectory(), CbmKfTrackFitter< FlagFitTime >::FitTrajectoryDownstream(), CbmKfTrackFitter< FlagFitTime >::FitTrajectoryUpstream(), cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex(), CbmKfTrackFitter< FlagFitTime >::PropagateToZ(), SetFieldFunction(), and CbmL1::TrackFitPerformance().