1 #ifndef CLASSIC_EMField_HH
2 #define CLASSIC_EMField_HH
69 EVector(
double,
double,
double);
103 BVector(
double,
double,
double);
111 double getBx()
const;
115 double getBy()
const;
119 double getBz()
const;
148 double getEx()
const;
152 double getEy()
const;
156 double getEz()
const;
164 double getBx()
const;
168 double getBy()
const;
172 double getBz()
const;
233 virtual void scale(
double scalar) = 0;
245 #endif // CLASSIC_EMField_HH
virtual BVector Bfield(const Point3D &P) const
Get field.
double getZ() const
Return coordinate.
An electric field vector.
virtual EBVectors EBfield(const Point3D &P) const
Get field.
EVector(double, double, double)
Constructor.
EBVectors(const EVector &E, const BVector &B)
Constructor.
double getEy() const
Get component.
double getY() const
Return coordinate.
const EMField & operator=(const EMField &right)
EMField()
Default constructor.
double getBz() const
Get component.
double getBy() const
Get component.
EVector getE() const
Get component.
double getEz() const
Get component.
double getBz() const
Get component.
double getEz() const
Get component.
BVector(double, double, double)
Constructor.
virtual EVector Efield(const Point3D &P) const
Get field.
virtual void scale(double scalar)=0
Scale the field.
Abstract base class for electromagnetic fields.
double getBx() const
Get component.
static const BVector ZeroBfield
The constant representing a zero magnetic field.
Point3D(double x, double y, double z)
Constructor.
double getEy() const
Get component.
double getEx() const
Get component.
BVector operator*(double scalar) const
Scale.
double getBy() const
Get component.
static const EVector ZeroEfield
The constant representing a zero electric field.
static const EBVectors ZeroEBfield
The constant representing a zero electromagnetic field.
BVector getB() const
Get field.
double getBx() const
Get component.
double getEx() const
Get component.
double getX() const
Return coordinate.
EVector operator*(double scalar) const
Scale.
A representation of an electromagnetic field.