Class QuadFieldSource#

Inheritance Relationships#

Base Type#

Class Documentation#

class QuadFieldSource : public OrbitUtils::ShiftedFieldSource#

A class implements of BaseFiledSource class with magnetic fields of hard-edge quad

Public Functions

QuadFieldSource()#

Constructor.

~QuadFieldSource()#

Destructor

void setLength(double length)#

Sets the length of the quad

double getLength()#

Returns the length of the quad

void setGradient(double gradient)#

Sets the gradient of the quad in [T/m]

double getGradient()#

Returns the gradient of the quad in [T/m]

virtual void getInnerElectricMagneticField(double x, double y, double z, double t, double &E_x, double &E_y, double &E_z, double &H_x, double &H_y, double &H_z)#

Returns inner components of the electric and magnetic fields.

Returns inner components of the electric and magnetic filds.