38 const Entry entries[] = {
63 Corrector(), geometry(), field(), active(true)
68 Corrector(right), geometry(right.geometry), field(right.field), active(true)
73 Corrector(name), geometry(), field(), active(true)
87 for(
const Entry *table = entries; table->name != 0; ++table) {
88 if(aKey == table->name) {
110 for(
const Entry *table = entries; table->name != 0; ++table) {
111 image->
setAttribute(table->name, (this->*(table->get))());
Representation of a closed orbit corrector.
StraightGeometry geometry
The corrector geometry.
Interface for basic beam line object.
The field of a magnetic dipole.
Corrector acts on both planes.
virtual void setName(const std::string &name)
Set element name.
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
Corrector is off (inactive).
virtual void setBx(double Bx)
Set horizontal component.
Interface for general corrector.
virtual void setElementLength(double length)
Set design length.
virtual ElementImage * getImage() const
Construct an image.
virtual StraightGeometry & getGeometry()
Get geometry.
virtual Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
virtual double getBy() const
Get vertical component.
virtual const std::string & getName() const
Get element name.
virtual double getBy() const
Get vertical field component in Teslas.
virtual ElementBase * makeFieldWrapper()
Allow field errors.
virtual Plane getPlane() const
Get plane(s) of action.
virtual double getBx() const
Get horizontal field component in Teslas.
BDipoleField field
The corrector strengths.
virtual double getElementLength() const
Get design length.
virtual ElementBase * clone() const
Return clone.
virtual ElementImage * getImage() const
Construct an image.
void setAttribute(const std::string &aKey, double val)
Set value of an attribute.
virtual double getBx() const
Get horizontal component.
virtual BDipoleField & getField()
Get corrector field.
virtual void setBy(double)
Set vertical field component in Teslas.
Representation for a perturbed closed orbit corrector.
A geometry representing a straight line.
Abstract interface for read/write access to variable.
virtual void setBy(double By)
Set vertical component.
virtual void setActive(bool flag=true)
Set active flag.
virtual void setBx(double)
Set horizontal field component in Teslas.
bool active
The active/inactive flag.
Access to a [b]double[/b] data member.