33 const Entry entries[] = {
55 Corrector(), geometry(), field(), active(true)
60 Corrector(right), geometry(right.geometry), field(right.field), active(true)
79 for(
const Entry *table = entries; table->name != 0; ++table) {
80 if(aKey == table->name) {
Interface for general corrector.
@ OFF
Corrector is off (inactive).
@ XY
Corrector acts on both planes.
virtual Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
virtual double getElementLength() const
Get design length.
virtual void setElementLength(double length)
Set design length.
virtual double getBy() const
Get vertical field component in Teslas.
bool active
The active/inactive flag.
virtual double getBx() const
Get horizontal field component in Teslas.
virtual BDipoleField & getField()
Get corrector field.
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
virtual void setBx(double)
Set horizontal field component in Teslas.
virtual void setBy(double)
Set vertical field component in Teslas.
virtual StraightGeometry & getGeometry()
Get geometry.
virtual Plane getPlane() const
Get plane(s) of action.
BDipoleField field
The corrector strengths.
StraightGeometry geometry
The corrector geometry.
virtual void setActive(bool flag=true)
Set active flag.
virtual ElementBase * clone() const
Return clone.
A geometry representing a straight line.
Abstract interface for read/write access to variable.
Access to a [b]double[/b] data member.
The field of a magnetic dipole.
virtual double getBy() const
Get vertical component.
virtual double getBx() const
Get horizontal component.
virtual void setBy(double By)
Set vertical component.
virtual void setBx(double Bx)
Set horizontal component.