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