27 "The \"CCOLLIMATOR\" element defines a rectangular-shape cyclotron collimator"),
28 parmatint_m(nullptr) {
30 (
"XSTART",
" Start of x coordinate [mm]");
32 (
"XEND",
" End of x coordinate, [mm]");
34 (
"YSTART",
"Start of y coordinate, [mm]");
36 (
"YEND",
"End of y coordinate, [mm]");
38 (
"ZSTART",
"Start of vertical coordinate, [mm], default value: -100",-100.0);
40 (
"ZEND",
"End of vertical coordinate, [mm], default value: 100", 100.0);
42 (
"WIDTH",
"Width of the collimator [mm]");
52 parmatint_m(nullptr) {
85 coll->
setDimensions(xstart, xend, ystart, yend, zstart, zend, width);
void setDimensions(double xstart, double xend, double ystart, double yend, double zstart, double zend, double width)
Set dimensions and consistency checks.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
std::string getString(const Attribute &attr)
Get string value.
virtual OpalCCollimator * clone(const std::string &name)
Make clone.
virtual void setParticleMatterInteraction(ParticleMatterInteractionHandler *spys)
static ParticleMatterInteraction * find(const std::string &name)
Find named PARTICLEMATTERINTERACTION.
void setElement(ElementBase *)
Assign new CLASSIC element.
ParticleMatterInteraction * parmatint_m
void setOutputFN(std::string fn)
Set output filename.
virtual void update()
Update the embedded CLASSIC collimator.
void initParticleMatterInteractionHandler(ElementBase &element)
OpalCCollimator()
Exemplar constructor.
ElementBase * getElement() const
Return the embedded CLASSIC element.
std::vector< Attribute > itsAttr
The object attributes.
virtual ~OpalCCollimator()
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.
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const