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