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