ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::VKalAtlasMagFld Class Reference

#include <VKalAtlasMagFld.h>

Inheritance diagram for Trk::VKalAtlasMagFld:
Collaboration diagram for Trk::VKalAtlasMagFld:

Public Member Functions

 VKalAtlasMagFld ()
 
 ~VKalAtlasMagFld ()
 
virtual void getMagFld (const double, const double, const double, double &, double &, double &) override
 
void setAtlasField (MagField::AtlasFieldCache *)
 
void setAtlasField (const double)
 
void setAtlasMagRefFrame (double, double, double)
 

Private Attributes

MagField::AtlasFieldCachem_VKalAthenaField {}
 
double m_FIXED_ATLAS_FIELD = 1.997
 
double m_magFrameX
 
double m_magFrameY
 
double m_magFrameZ
 

Detailed Description

Definition at line 17 of file VKalAtlasMagFld.h.

Constructor & Destructor Documentation

◆ VKalAtlasMagFld()

Trk::VKalAtlasMagFld::VKalAtlasMagFld ( )

Definition at line 37 of file VKalAtlasMagFld.cxx.

38  : m_magFrameX(0.), m_magFrameY(0.), m_magFrameZ(0.) {}

◆ ~VKalAtlasMagFld()

Trk::VKalAtlasMagFld::~VKalAtlasMagFld ( )
default

Member Function Documentation

◆ getMagFld()

void Trk::VKalAtlasMagFld::getMagFld ( const double  x,
const double  y,
const double  z,
double &  bx,
double &  by,
double &  bz 
)
overridevirtual

Implements Trk::baseMagFld.

Definition at line 61 of file VKalAtlasMagFld.cxx.

62  {
63  double fieldXYZ[3];
64  double BField[3];
65  fieldXYZ[0] = (x + m_magFrameX) * CLHEP::mm;
66  fieldXYZ[1] = (y + m_magFrameY) * CLHEP::mm;
67  fieldXYZ[2] = (z + m_magFrameZ) * CLHEP::mm;
68  if (m_VKalAthenaField) {
69  m_VKalAthenaField->getField(fieldXYZ, BField);
70  bx = BField[0] / CLHEP::tesla;
71  by = BField[1] / CLHEP::tesla; // Field in TESLA!!!!
72  bz = BField[2] / CLHEP::tesla;
73  } else {
74  bx = 0.;
75  by = 0.;
77  }
78 }

◆ setAtlasField() [1/2]

void Trk::VKalAtlasMagFld::setAtlasField ( const double  field)

Definition at line 48 of file VKalAtlasMagFld.cxx.

48  {
50 }

◆ setAtlasField() [2/2]

void Trk::VKalAtlasMagFld::setAtlasField ( MagField::AtlasFieldCache pnt)

Definition at line 44 of file VKalAtlasMagFld.cxx.

44  {
45  m_VKalAthenaField = pnt;
46 }

◆ setAtlasMagRefFrame()

void Trk::VKalAtlasMagFld::setAtlasMagRefFrame ( double  x,
double  y,
double  z 
)

Definition at line 52 of file VKalAtlasMagFld.cxx.

52  {
53  m_magFrameX = x;
54  m_magFrameY = y;
55  m_magFrameZ = z;
56 }

Member Data Documentation

◆ m_FIXED_ATLAS_FIELD

double Trk::VKalAtlasMagFld::m_FIXED_ATLAS_FIELD = 1.997
private

Definition at line 29 of file VKalAtlasMagFld.h.

◆ m_magFrameX

double Trk::VKalAtlasMagFld::m_magFrameX
private

Definition at line 30 of file VKalAtlasMagFld.h.

◆ m_magFrameY

double Trk::VKalAtlasMagFld::m_magFrameY
private

Definition at line 30 of file VKalAtlasMagFld.h.

◆ m_magFrameZ

double Trk::VKalAtlasMagFld::m_magFrameZ
private

Definition at line 30 of file VKalAtlasMagFld.h.

◆ m_VKalAthenaField

MagField::AtlasFieldCache* Trk::VKalAtlasMagFld::m_VKalAthenaField {}
private

Definition at line 28 of file VKalAtlasMagFld.h.


The documentation for this class was generated from the following files:
Trk::y
@ y
Definition: ParamDefs.h:56
Trk::z
@ z
global position (cartesian)
Definition: ParamDefs.h:57
Trk::VKalAtlasMagFld::m_FIXED_ATLAS_FIELD
double m_FIXED_ATLAS_FIELD
Definition: VKalAtlasMagFld.h:29
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
Trk::VKalAtlasMagFld::m_magFrameX
double m_magFrameX
Definition: VKalAtlasMagFld.h:30
Trk::VKalAtlasMagFld::m_magFrameY
double m_magFrameY
Definition: VKalAtlasMagFld.h:30
fitman.bz
bz
Definition: fitman.py:412
fitman.bx
bx
Definition: fitman.py:410
fitman.by
by
Definition: fitman.py:411
Trk::VKalAtlasMagFld::m_VKalAthenaField
MagField::AtlasFieldCache * m_VKalAthenaField
Definition: VKalAtlasMagFld.h:28
python.SystemOfUnits.tesla
int tesla
Definition: SystemOfUnits.py:228
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
MagField::AtlasFieldCache::getField
void getField(const double *ATH_RESTRICT xyz, double *ATH_RESTRICT bxyz, double *ATH_RESTRICT deriv=nullptr)
get B field value at given position xyz[3] is in mm, bxyz[3] is in kT if deriv[9] is given,...
Definition: AtlasFieldCache.cxx:42
Trk::x
@ x
Definition: ParamDefs.h:55
Trk::VKalAtlasMagFld::m_magFrameZ
double m_magFrameZ
Definition: VKalAtlasMagFld.h:30