24 std::string(
"The \"VARIABLE_RF_CAVITY\" element defines an RF cavity ")
25 + std::string(
"with time dependent frequency, phase and amplitude.");
31 "The name of the phase time dependence model, which should give the phase in [rad].");
35 "The name of the amplitude time dependence model, which should give the field in "
40 "The name of the frequency time dependence model, which should give the frequency in "
72 cavity->setLength(length);
75 cavity->setPhaseName(phaseName);
78 cavity->setAmplitudeName(ampName);
81 cavity->setFrequencyName(freqName);
84 cavity->setWidth(width);
87 cavity->setHeight(height);
ElementBase * getElement() const
Return the embedded OPALX element.
void setElement(ElementBase *)
Assign new OPALX element.
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
virtual void update()
Update the embedded OPALX element.
void registerOwnership() const
OpalVariableRFCavity * clone()
static const std::string doc_string
double getReal(const Attribute &attr)
Return real value.
Attribute makeUpperCaseString(const std::string &name, const std::string &help)
Make uppercase string attribute.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
std::string getString(const Attribute &attr)
Get string value.