28 "The \"PROBE\" element defines a Probe."),
32 (
"XSTART",
" Start of x coordinate [mm]");
34 (
"XEND",
" End of x coordinate [mm]");
36 (
"YSTART",
"Start of y coordinate [mm]");
38 (
"YEND",
"End of y coordinate [mm]");
40 (
"WIDTH",
"Width of the probe, not used.");
42 (
"STEP",
"Step size of the probe [mm]", 1.0);
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 setWake(WakeFunction *wf)
attach a wake field to the element
void setDimensions(double xstart, double xend, double ystart, double yend)
Set dimensions and consistency checks.
void setStep(double step)
Set probe histogram bin width.
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
OpalProbe()
Exemplar constructor.
virtual OpalProbe * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded CLASSIC probe.
static OpalWake * find(const std::string &name)
Find named WAKE.
void initWakefunction(const ElementBase &element)