33 "The \"PARALLELPLATE\" element defines an cavity."),
37 (
"VOLT",
" voltage in MV");
39 (
"FREQ",
" frequency in MHz");
41 (
"LAG",
"Phase lag (rad), !!!! was before in multiples of (2*pi) !!!!");
44 (
"GEOMETRY",
"BoundaryGeometry for ParallelPlate");
47 (
"PLENGTH",
" Gap length in Meter");
static AttCell * registerStringAttribute(const std::string &name)
Register a ``string'' element attribute.
Interface for basic beam line object.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
ValueFlag
Switch for value desired on ATTLIST command.
void setPhase(double phase)
BoundaryGeometry * obgeo_m
void setFrequency(double freq)
constexpr double two_pi
The value of .
virtual ElementBase * removeWrappers()
Return the design element.
virtual void setElementLength(double length)
Set design length.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
void setAmplitude(double vPeak)
static std::map< std::string, OwnPtr< AttCell > > attributeRegistry
The registry for named attributes.
const std::string & getOpalName() const
Return object name.
virtual void setBoundaryGeometry(BoundaryGeometry *geo)
virtual double getElementLength() const
Get design length.
static BoundaryGeometry * find(const std::string &name)
Base class for all beam line elements.
OpalParallelPlate()
Exemplar constructor.
void setElement(ElementBase *)
Assign new CLASSIC element.
void registerOwnership() const
virtual void update()
Update the embedded CLASSIC element.
The ParallelPlate element.
virtual ~OpalParallelPlate()
virtual void updateUnknown(ElementBase *)
Transmit the ``unknown'' (not known to OPAL) attributes to CLASSIC.
ElementBase * getElement() const
Return the embedded CLASSIC element.
double getAmplitude() const
virtual void update()
Update the embedded CLASSIC cavity.
Representation for a RF cavity.
double getReal(const Attribute &attr)
Return real value.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
double getFrequency() const
static AttCell * registerRealAttribute(const std::string &name)
Register a ``real'' element attribute.
virtual OpalParallelPlate * clone(const std::string &name)
Make clone.
std::string getString(const Attribute &attr)
Get string value.