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