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
double getBx() const
Get component.
static const EVector ZeroEfield
The constant representing a zero electric field.
const EMField & operator=(const EMField &right)
virtual EBVectors EBfield(const Point3D &P) const
Get field.
Abstract base class for electromagnetic fields.
virtual EVector Efield(const Point3D &P) const
Get field.
virtual void scale(double scalar)=0
Scale the field.
Point3D(double x, double y, double z)
Constructor.
BVector operator*(double scalar) const
Scale.
double getBy() const
Get component.
An electric field vector.
double getBy() const
Get component.
double getY() const
Return coordinate.
static const EBVectors ZeroEBfield
The constant representing a zero electromagnetic field.
virtual BVector Bfield(const Point3D &P) const
Get field.
EVector(double, double, double)
Constructor.
double getEz() const
Get component.
EBVectors(const EVector &E, const BVector &B)
Constructor.
double getBx() const
Get component.
double getEy() const
Get component.
double getEz() const
Get component.
EMField()
Default constructor.
static const BVector ZeroBfield
The constant representing a zero magnetic field.
EVector operator*(double scalar) const
Scale.
double getEx() const
Get component.
double getX() const
Return coordinate.
double getBz() const
Get component.
BVector(double, double, double)
Constructor.
double getEx() const
Get component.
A representation of an electromagnetic field.
double getZ() const
Return coordinate.
double getEy() const
Get component.
BVector getB() const
Get field.
EVector getE() const
Get component.
double getBz() const
Get component.