25 std::string(
"The \"VARIABLE_RF_CAVITY\" element defines an RF cavity ") +
26 std::string(
"with time dependent frequency, phase and amplitude.");
33 "The name of the phase time dependence model, which should give the phase in [rad].");
37 "The name of the amplitude time dependence model, which should give the field in [MV/m]");
41 "The name of the frequency time dependence model, which should give the field in [MHz].");
45 "Full width of the cavity [m].");
49 "Full height of the cavity [m].");
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
std::string getString(const Attribute &attr)
Get string value.
virtual void setFrequencyName(const std::string &frequency)
virtual void setWidth(double fullWidth)
static const std::string doc_string
OpalVariableRFCavity * clone()
void setElement(ElementBase *)
Assign new CLASSIC element.
virtual void setLength(double length)
virtual void setAmplitudeName(const std::string &litude)
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
ElementBase * getElement() const
Return the embedded CLASSIC element.
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
double getReal(const Attribute &attr)
Return real value.
virtual void setHeight(double fullHeight)
virtual void setPhaseName(const std::string &phase)
virtual ~OpalVariableRFCavity()
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const