![]() |
Belle II Software
release-05-02-19
|
The BFieldComponentConstant class. More...
#include <BFieldComponentConstant.h>
Public Member Functions | |
BFieldComponentConstant ()=default | |
The BFieldComponentConstant constructor. | |
virtual | ~BFieldComponentConstant ()=default |
The BFieldComponentConstant destructor. | |
virtual B2Vector3D | calculate (const B2Vector3D &point) const override |
Calculates the magnetic field vector at the specified space point. More... | |
void | setMagneticFieldValues (double x, double y, double z, double rmax, double zmin, double zmax) |
Sets the values for the homogeneous magnetic field vector. More... | |
virtual void | initialize () |
Initializes the magnetic field component. More... | |
virtual void | terminate () |
Terminates the magnetic field component. More... | |
Private Attributes | |
double | m_magneticField [3] {0} |
The values for the homogeneous magnetic field vector. | |
double | maxRadius4BField {0} |
The values for the maximum radius for the homogeneous field. | |
double | minZ4BField {0} |
The values for the minimum z position for the homogeneous field. | |
double | maxZ4BField {0} |
The values for the maximum z position for the homogeneous field. | |
The BFieldComponentConstant class.
This class represents an homogeneous magnetic field.
Definition at line 35 of file BFieldComponentConstant.h.
|
overridevirtual |
Calculates the magnetic field vector at the specified space point.
point | The space point in Cartesian coordinates (x,y,z) in [cm] at which the magnetic field vector should be calculated. |
Implements BFieldComponentAbs.
Definition at line 16 of file BFieldComponentConstant.cc.
|
inlinevirtualinherited |
Initializes the magnetic field component.
This method should be used to open and load files containing the magnetic field data.
Reimplemented in BFieldComponentQuad, BFieldComponentKlm1, BFieldComponentRadial, BFieldComponent3d, and BFieldComponentBeamline.
Definition at line 56 of file BFieldComponentAbs.h.
void setMagneticFieldValues | ( | double | x, |
double | y, | ||
double | z, | ||
double | rmax, | ||
double | zmin, | ||
double | zmax | ||
) |
Sets the values for the homogeneous magnetic field vector.
x | The x component of the magnetic field vector. |
y | The y component of the magnetic field vector. |
z | The z component of the magnetic field vector. |
Definition at line 24 of file BFieldComponentConstant.cc.
|
inlinevirtualinherited |
Terminates the magnetic field component.
This method should be used to close files that have been opened in the initialize() method.
Reimplemented in BFieldComponentKlm1, BFieldComponentRadial, BFieldComponent3d, and BFieldComponentBeamline.
Definition at line 77 of file BFieldComponentAbs.h.