Belle II Software development
|
The BFieldComponentConstant class. More...
#include <BFieldComponentConstant.h>
Public Member Functions | |
BFieldComponentConstant ()=default | |
The BFieldComponentConstant constructor. | |
virtual | ~BFieldComponentConstant ()=default |
The BFieldComponentConstant destructor. | |
virtual ROOT::Math::XYZVector | calculate (const ROOT::Math::XYZVector &point) const override |
Calculates the magnetic field vector at the specified space point. | |
void | setMagneticFieldValues (double x, double y, double z, double rmax, double zmin, double zmax) |
Sets the values for the homogeneous magnetic field vector. | |
virtual void | initialize () |
Initializes the magnetic field component. | |
virtual void | terminate () |
Terminates the magnetic field component. | |
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 24 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 14 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 BFieldComponent3d, BFieldComponentBeamline, BFieldComponentKlm1, BFieldComponentQuad, and BFieldComponentRadial.
Definition at line 45 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. |
rmax | Maximum radial coordinate. |
zmin | Minimum z coordinate. |
zmax | Maximum z coordinate. |
Definition at line 22 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 BFieldComponent3d, BFieldComponentBeamline, BFieldComponentKlm1, and BFieldComponentRadial.
Definition at line 66 of file BFieldComponentAbs.h.
|
private |
The values for the homogeneous magnetic field vector.
Definition at line 55 of file BFieldComponentConstant.h.
|
private |
The values for the maximum radius for the homogeneous field.
Definition at line 57 of file BFieldComponentConstant.h.
|
private |
The values for the maximum z position for the homogeneous field.
Definition at line 61 of file BFieldComponentConstant.h.
|
private |
The values for the minimum z position for the homogeneous field.
Definition at line 59 of file BFieldComponentConstant.h.