24 "The \"DRIFT\" element defines a drift space.")
27 (
"GEOMETRY",
"BoundaryGeometry for Drifts");
30 (
"NSLICES",
"The number of slices/ steps for this element in Map Tracking", 1);
69 drf->setElementLength(L);
72 std::cout <<
"error drf->setElementLength " << std::endl;
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.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
std::vector< Attribute > itsAttr
The object attributes.
virtual bool isDrift() const
Test for drift.
virtual void update()
Update the embedded CLASSIC drift.
OpalDrift()
Exemplar constructor.
virtual OpalDrift * clone(const std::string &name)
Make clone.
virtual void updateUnknown(ElementBase *)
Transmit the ``unknown'' (not known to OPAL) attributes to CLASSIC.
virtual void update()
Update the embedded CLASSIC element.
OpalElement(int size, const char *name, const char *help)
Exemplar constructor.
void registerOwnership() const