23 #include <boost/regex.hpp>
28 "The \"SLIT\" element defines a slit."),
29 parmatint_m(nullptr) {
31 (
"XSIZE",
"Horizontal half-aperture in m");
33 (
"YSIZE",
"Vertical half-aperture in m");
43 parmatint_m(nullptr) {
72 description <<
"rectangle(" << width <<
"," << height <<
")";
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
std::string getString(const Attribute &attr)
Get string value.
virtual void setParticleMatterInteraction(ParticleMatterInteractionHandler *spys)
static ParticleMatterInteraction * find(const std::string &name)
Find named PARTICLEMATTERINTERACTION.
OpalSlit()
Exemplar constructor.
virtual OpalSlit * clone(const std::string &name)
Make clone.
SDDS1 &description description
virtual void update()
Update the embedded CLASSIC collimator.
void setElement(ElementBase *)
Assign new CLASSIC element.
void setOutputFN(std::string fn)
Set output filename.
void initParticleMatterInteractionHandler(ElementBase &element)
ElementBase * getElement() const
Return the embedded CLASSIC element.
ParticleMatterInteraction * parmatint_m
void setDescription(const std::string &desc)
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
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.
void setAperture(const ApertureType &type, const std::vector< double > &args)
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const