28 "The \"SOURCE\" element defines a Source.") {
30 (
"DISTRIBUTION",
"List of particle distributions to be used ");
33 (
"TRANSPARENT",
"Make the source element transparent to impacting elements; Default value is FALSE",
false);
Attribute makeBool(const std::string &name, const std::string &help)
Make logical attribute.
Attribute makeStringArray(const std::string &name, const std::string &help)
Create a string array attribute.
bool getBool(const Attribute &attr)
Return logical value.
std::string getString(const Attribute &attr)
Get string value.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
std::vector< Attribute > itsAttr
The object attributes.
virtual void setElementLength(double length)
Set design length.
void setOutputFN(std::string fn)
Set output filename.
virtual void updateUnknown(ElementBase *)
Transmit the `‘unknown’' (not known to OPAL) attributes to CLASSIC.
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const
virtual OpalSource * clone(const std::string &name)
Make clone.
OpalSource()
Exemplar constructor.
virtual void update()
Update the embedded CLASSIC solenoid.