24 #include <boost/regex.hpp>
29 "The \"RCOLLIMATOR\" element defines a rectangular collimator."),
32 (
"XSIZE",
"Horizontal half-aperture in m");
34 (
"YSIZE",
"Vertical half-aperture in m");
70 std::stringstream description;
71 description <<
"rectangle(" << width <<
"," << height <<
")";
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
std::string getString(const Attribute &attr)
Get string value.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
virtual void setElementLength(double length)
Set design length.
void setOutputFN(std::string fn)
Set output filename.
virtual void setParticleMatterInteraction(ParticleMatterInteractionHandler *spys)
void setDescription(const std::string &desc)
@ PARTICLEMATTERINTERACTION
virtual void updateUnknown(ElementBase *)
Transmit the `‘unknown’' (not known to OPAL) attributes to CLASSIC.
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const
virtual ~OpalRCollimator()
ParticleMatterInteraction * parmatint_m
virtual OpalRCollimator * clone(const std::string &name)
Make clone.
OpalRCollimator()
Exemplar constructor.
virtual void update()
Update the embedded CLASSIC collimator.
virtual ParticleMatterInteraction * clone(const std::string &name)
Make clone.
static ParticleMatterInteraction * find(const std::string &name)
Find named PARTICLEMATTERINTERACTION.
ParticleMatterInteractionHandler * handler_m
void initParticleMatterInteractionHandler(ElementBase &element)