32 "The \"OCTUPOLE\" element defines a Octupole.") {
34 (
"K3",
"Normalised upright octupole coefficient in m^(-4)");
36 (
"DK3",
"Normalised upright octupole coefficient error in m^(-4)");
38 (
"K3S",
"Normalised skew octupole coefficient in m^(-4)");
40 (
"DK3S",
"Normalised skew octupole coefficient error in m^(-4)");
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
constexpr double c
The velocity of light in m/s.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
std::vector< Attribute > itsAttr
The object attributes.
double getP0() const
Return value of global reference momentum.
static OpalData * getInstance()
virtual void setElementLength(double length)
Set design length.
void setNormalComponent(int, double)
Set normal component.
void setSkewComponent(int, double)
Set skew component.
virtual void setField(const BMultipoleField &field)
Set mulitpole field.
The magnetic field of a multipole.
void setNormalComponent(int n, double Bn)
Set component.
void setSkewComponent(int n, double Bn)
Set component.
virtual void updateUnknown(ElementBase *)
Transmit the `‘unknown’' (not known to OPAL) attributes to CLASSIC.
virtual void print(std::ostream &) const
Print the object.
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const
virtual OpalOctupole * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded CLASSIC multipole.
OpalOctupole()
Exemplar constructor.
virtual void print(std::ostream &) const
Print the element.