30 "The \"DEGRADER\" element defines a degrader."),
33 (
"XSIZE",
"not used",0.0);
35 (
"YSIZE",
"not used",0.0);
37 (
"OUTFN",
"Degrader output filename");
static AttCell * registerStringAttribute(const std::string &name)
Register a ``string'' element attribute.
Interface for basic beam line object.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
ValueFlag
Switch for value desired on ATTLIST command.
virtual ElementBase * removeWrappers()
Return the design element.
ParticleMatterInteraction * parmatint_m
virtual void setElementLength(double length)
Set design length.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
static ParticleMatterInteraction * find(const std::string &name)
Find named PARTICLEMATTERINTERACTION.
T deg(T x)
Convert radians to degrees.
ParticleMatterInteractionHandler * handler_m
const std::string & getOpalName() const
Return object name.
void initParticleMatterInteractionHandler(ElementBase &element)
Representation for a collimator.
Base class for all beam line elements.
OpalDegrader()
Exemplar constructor.
void setElement(ElementBase *)
Assign new CLASSIC element.
void registerOwnership() const
virtual void update()
Update the embedded CLASSIC element.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
virtual void updateUnknown(ElementBase *)
Transmit the ``unknown'' (not known to OPAL) attributes to CLASSIC.
virtual void setParticleMatterInteraction(ParticleMatterInteractionHandler *spys)
ElementBase * getElement() const
Return the embedded CLASSIC element.
virtual void update()
Update the embedded CLASSIC collimator.
virtual OpalDegrader * clone(const std::string &name)
Make clone.
double getReal(const Attribute &attr)
Return real value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
void setOutputFN(std::string fn)
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
std::string getString(const Attribute &attr)
Get string value.