ATLAS Offline Software
Static Public Member Functions | List of all members
Trk::vkalMagFld Class Reference

#include <VKalVrtBMag.h>

Collaboration diagram for Trk::vkalMagFld:

Static Public Member Functions

static void getMagFld (const double, const double, const double, double &, double &, double &, VKalVrtControlBase *)
 
static double getMagFld (const double xyz[3], const VKalVrtControlBase *FitControl)
 
static double getCnvCst ()
 

Detailed Description

Definition at line 42 of file VKalVrtBMag.h.

Member Function Documentation

◆ getCnvCst()

static double Trk::vkalMagFld::getCnvCst ( )
inlinestatic

Definition at line 49 of file VKalVrtBMag.h.

49 { return vkalMagCnvCst; }

◆ getMagFld() [1/2]

double Trk::vkalMagFld::getMagFld ( const double  xyz[3],
const VKalVrtControlBase FitControl = nullptr 
)
static

Definition at line 40 of file VKalVrtBMag.cxx.

41  {
42  double bx = 0., by = 0., bz = 0.;
43  if (FitControl == nullptr || (FitControl->vk_funcMagFld == nullptr &&
44  FitControl->vk_objMagFld == nullptr)) {
45  bz = s_cnstBMAG;
46  return bz;
47  }
48  if (FitControl->vk_funcMagFld) {
49  FitControl->vk_funcMagFld(xyz[0], xyz[1], xyz[2], bx, by, bz);
50  } else if (FitControl->vk_objMagFld) {
51  FitControl->vk_objMagFld->getMagFld(xyz[0], xyz[1], xyz[2], bx, by, bz);
52  }
53  return bz;
54 }

◆ getMagFld() [2/2]

void Trk::vkalMagFld::getMagFld ( const double  X,
const double  Y,
const double  Z,
double &  bx,
double &  by,
double &  bz,
VKalVrtControlBase FitControl = nullptr 
)
static

Definition at line 24 of file VKalVrtBMag.cxx.

26  {
27  bx = by = 0.;
28  if (FitControl == nullptr || (FitControl->vk_funcMagFld == nullptr &&
29  FitControl->vk_objMagFld == nullptr)) {
30  bz = s_cnstBMAG;
31  return;
32  }
33  if (FitControl->vk_funcMagFld) {
34  FitControl->vk_funcMagFld(X, Y, Z, bx, by, bz);
35  } else if (FitControl->vk_objMagFld) {
36  FitControl->vk_objMagFld->getMagFld(X, Y, Z, bx, by, bz);
37  }
38 }

The documentation for this class was generated from the following files:
xyz
#define xyz
Monitored::X
@ X
Definition: HistogramFillerUtils.h:24
fitman.bz
bz
Definition: fitman.py:412
vkalMagCnvCst
#define vkalMagCnvCst
Definition: CommonPars.h:23
fitman.bx
bx
Definition: fitman.py:410
fitman.by
by
Definition: fitman.py:411
Monitored::Y
@ Y
Definition: HistogramFillerUtils.h:24