#include <UniformMagneticField.h>
Public Member Functions | |
GlobalVector | inTesla (const GlobalPoint &gp) const |
Field value ad specified global point, in Tesla. | |
GlobalVector | inTeslaUnchecked (const GlobalPoint &gp) const |
bool | isDefined (const GlobalPoint &gp) const |
True if the point is within the region where the concrete field. | |
UniformMagneticField (double value) | |
Construct passing the Z field component in Tesla. | |
virtual | ~UniformMagneticField () |
Private Attributes | |
GlobalVector | theField |
A MagneticField engine that returns a constant programmable field value.
Definition at line 16 of file UniformMagneticField.h.
UniformMagneticField::UniformMagneticField | ( | double | value | ) |
Construct passing the Z field component in Tesla.
Definition at line 13 of file UniformMagneticField.cc.
virtual UniformMagneticField::~UniformMagneticField | ( | ) | [inline, virtual] |
Definition at line 22 of file UniformMagneticField.h.
{}
GlobalVector UniformMagneticField::inTesla | ( | const GlobalPoint & | gp | ) | const [virtual] |
Field value ad specified global point, in Tesla.
Implements MagneticField.
Definition at line 17 of file UniformMagneticField.cc.
References theField.
{ return theField; }
GlobalVector UniformMagneticField::inTeslaUnchecked | ( | const GlobalPoint & | gp | ) | const [virtual] |
Optional implementation that derived classes can implement to provide faster query by skipping the check to isDefined.
Reimplemented from MagneticField.
Definition at line 21 of file UniformMagneticField.cc.
References theField.
{ return theField; }
bool UniformMagneticField::isDefined | ( | const GlobalPoint & | gp | ) | const [inline, virtual] |
True if the point is within the region where the concrete field.
Reimplemented from MagneticField.
Definition at line 28 of file UniformMagneticField.h.
{return true;}
GlobalVector UniformMagneticField::theField [private] |
Definition at line 31 of file UniformMagneticField.h.
Referenced by inTesla(), and inTeslaUnchecked().