32 "The \"CYCLOTRONVALLEY\" element defines a CyclotronValley for Multipacting Simulation.") {
35 (
"FMAPFN",
"Filename for the fieldmap");
static AttCell * registerStringAttribute(const std::string &name)
Register a ``string'' element attribute.
std::string getFieldMapFN() const
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.
virtual OpalCyclotronValley * clone(const std::string &name)
Make clone.
constexpr double two_pi
The value of .
virtual ElementBase * removeWrappers()
Return the design element.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
virtual void update()
Update the embedded CLASSIC cavity.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
OpalCyclotronValley()
Exemplar constructor.
static std::map< std::string, OwnPtr< AttCell > > attributeRegistry
The registry for named attributes.
Base class for all beam line elements.
void setElement(ElementBase *)
Assign new CLASSIC element.
void registerOwnership() const
virtual void update()
Update the embedded CLASSIC element.
void setFieldMapFN(std::string fmapfn)
Set the name of the field map.
virtual void updateUnknown(ElementBase *)
Transmit the ``unknown'' (not known to OPAL) attributes to CLASSIC.
ElementBase * getElement() const
Return the embedded CLASSIC element.
virtual ~OpalCyclotronValley()
Representation for a Cyclotron Valley.
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.
static AttCell * registerRealAttribute(const std::string &name)
Register a ``real'' element attribute.
std::string getString(const Attribute &attr)
Get string value.