#include <ParabolicParametrizedMagneticField.h>
Public Member Functions | |
float | B0Z (const float a) const |
GlobalVector | inTesla (const GlobalPoint &gp) const |
Field value ad specified global point, in Tesla. More... | |
GlobalVector | inTeslaUnchecked (const GlobalPoint &gp) const |
bool | isDefined (const GlobalPoint &gp) const |
True if the point is within the region where the concrete field. More... | |
float | Kr (const float R2) const |
ParabolicParametrizedMagneticField () | |
Default constructor, use default values for 3.8T map. More... | |
ParabolicParametrizedMagneticField (const std::vector< double > ¶meters) | |
Constructor with explicit parameter list (b0, b1, c1, a) More... | |
virtual | ~ParabolicParametrizedMagneticField () |
Destructor. More... | |
Public Member Functions inherited from MagneticField | |
virtual MagneticField * | clone () const |
GlobalVector | inInverseGeV (const GlobalPoint &gp) const |
Field value ad specified global point, in 1/Gev. More... | |
GlobalVector | inKGauss (const GlobalPoint &gp) const |
Field value ad specified global point, in KGauss. More... | |
MagneticField () | |
MagneticField (const MagneticField &orig) | |
int | nominalValue () const |
The nominal field value for this map in kGauss. More... | |
virtual | ~MagneticField () |
Private Attributes | |
float | a |
float | b0 |
float | b1 |
float | c1 |
A simple parametrization of the Bz component in the tracker region using the product of two parabolas
Definition at line 17 of file ParabolicParametrizedMagneticField.h.
|
explicit |
Default constructor, use default values for 3.8T map.
Definition at line 14 of file ParabolicParametrizedMagneticField.cc.
|
explicit |
Constructor with explicit parameter list (b0, b1, c1, a)
Definition at line 22 of file ParabolicParametrizedMagneticField.cc.
|
virtual |
|
inline |
Definition at line 47 of file ParabolicParametrizedMagneticField.cc.
Referenced by inTeslaUnchecked().
|
virtual |
Field value ad specified global point, in Tesla.
Implements MagneticField.
Definition at line 34 of file ParabolicParametrizedMagneticField.cc.
References inTeslaUnchecked(), isDefined(), and LogDebug.
|
virtual |
Optional implementation that derived classes can implement to provide faster query by skipping the check to isDefined.
Reimplemented from MagneticField.
Definition at line 43 of file ParabolicParametrizedMagneticField.cc.
References B0Z(), Kr(), PV3DBase< T, PVType, FrameType >::perp2(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by inTesla().
|
inlinevirtual |
True if the point is within the region where the concrete field.
Reimplemented from MagneticField.
Definition at line 55 of file ParabolicParametrizedMagneticField.cc.
References f, PV3DBase< T, PVType, FrameType >::perp2(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by inTesla().
|
inline |
Definition at line 51 of file ParabolicParametrizedMagneticField.cc.
References a.
Referenced by inTeslaUnchecked().
|
private |
Definition at line 42 of file ParabolicParametrizedMagneticField.h.
Referenced by Kr().
|
private |
Definition at line 40 of file ParabolicParametrizedMagneticField.h.
Referenced by B0Z().
|
private |
Definition at line 41 of file ParabolicParametrizedMagneticField.h.
Referenced by B0Z().
|
private |
Definition at line 39 of file ParabolicParametrizedMagneticField.h.
Referenced by B0Z().