31 "The \"DRIFT\" element defines a drift space."),
43 (
"GEOMETRY",
"BoundaryGeometry for Drifts");
47 "The number of slices/ steps for this element in Map Tracking", 1);
virtual bool isDrift() const
Test for drift.
static AttCell * registerStringAttribute(const std::string &name)
Register a ``string'' element attribute.
virtual OpalDrift * clone(const std::string &name)
Make clone.
virtual void setElementLength(double length)
Set design length.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
ParticleMatterInteraction * parmatint_m
static ParticleMatterInteraction * find(const std::string &name)
Find named PARTICLEMATTERINTERACTION.
void initWakefunction(ElementBase &element)
ParticleMatterInteractionHandler * handler_m
const std::string & getOpalName() const
Return object name.
virtual void setBoundaryGeometry(BoundaryGeometry *geo)
void initParticleMatterInteractionHandler(ElementBase &element)
virtual void update()
Update the embedded CLASSIC drift.
static OpalWake * find(const std::string &name)
Find named WAKE.
OpalDrift()
Exemplar constructor.
static BoundaryGeometry * find(const std::string &name)
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.
virtual void updateUnknown(ElementBase *)
Transmit the ``unknown'' (not known to OPAL) attributes to CLASSIC.
virtual void setParticleMatterInteraction(ParticleMatterInteractionHandler *spys)
BoundaryGeometry * obgeo_m
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setNSlices(const std::size_t &nSlices)
double getReal(const Attribute &attr)
Return real value.
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.
virtual void setWake(WakeFunction *wf)
attach a wake field to the element
Representation for a drift space.
static AttCell * registerRealAttribute(const std::string &name)
Register a ``real'' element attribute.
std::string getString(const Attribute &attr)
Get string value.