23 :
OpalElement(
SIZE,
"DRIFT",
"The \"DRIFT\" element defines a drift space.") {
27 "NSLICES",
"The number of slices/ steps for this element in Map Tracking", 1);
54 drf->setElementLength(L);
56 std::cout <<
"error drf->setElementLength " << std::endl;
ElementBase * getElement() const
Return the embedded OPALX element.
void setElement(ElementBase *)
Assign new OPALX element.
std::vector< Attribute > itsAttr
The object attributes.
virtual bool isDrift() const
Test for drift.
virtual void update()
Update the embedded OPALX drift.
OpalDrift()
Exemplar constructor.
virtual OpalDrift * clone(const std::string &name)
Make clone.
virtual void updateUnknown(ElementBase *)
Transmit the `‘unknown’' (not known to OPALX) attributes to OPALX.
virtual void update()
Update the embedded OPALX element.
void registerOwnership() const
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.