35 "The \"STRIPPER\" element defines a Stripper.") {
38 (
"XSTART",
" Start of x coordinate [mm]");
40 (
"XEND",
" End of x coordinate, [mm]");
42 (
"YSTART",
"Start of y coordinate, [mm]");
44 (
"YEND",
"End of y coordinate, [mm]");
46 (
"WIDTH",
"Width of the stripper [mm], NOT used");
48 (
"OPCHARGE",
"Charge number of the outcome particle");
50 (
"OPMASS",
"Mass of the outcome particle [GeV/c^2]");
52 (
"OPYIELD",
"Yield (Particle number of the outcome particle) per income particle");
54 (
"STOP",
"Option Whether stop tracking at the stripper. Default: true",
true);
82 const double mm2m = 0.001;
Attribute makeBool(const std::string &name, const std::string &help)
Make logical attribute.
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
bool getBool(const Attribute &attr)
Return logical value.
std::string getString(const Attribute &attr)
Get string value.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
std::vector< Attribute > itsAttr
The object attributes.
virtual void setElementLength(double length)
Set design length.
void setOutputFN(std::string fn)
Set output filename.
void setDimensions(double xstart, double xend, double ystart, double yend)
Set dimensions and consistency checks.
void setOPCharge(double charge)
Member variable access.
void setStop(bool stopflag)
void setOPYield(double yield)
void setOPMass(double mass)
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 OpalStripper * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded CLASSIC septum.