8 SIZE,
"CONSTANTEFIELDCAVITY",
9 "The \"CONSTANTEFIELDCAVITY\" element defines a constant accelerating "
10 "electric field in z-direction.") {
void setElementLength(double length) override
Set design length.
void setEz(double ez) override
virtual void setEx(double ex)
virtual void setEy(double ey)
ElementBase * getElement() const
Return the embedded OPALX element.
void setElement(ElementBase *)
Assign new OPALX element.
std::vector< Attribute > itsAttr
The object attributes.
OpalConstantEFieldCavity()
virtual void update()
Update the embedded OPALX element.
virtual OpalConstantEFieldCavity * clone(const std::string &name)
Return a clone.
virtual ~OpalConstantEFieldCavity()
virtual double getLength() const
Return element length.
virtual void updateUnknown(ElementBase *)
Transmit the `‘unknown’' (not known to OPALX) attributes to OPALX.
virtual void update()
Update the embedded OPALX element.
void registerOwnership() const
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
constexpr double MVpm2Vpm