31 "The \"VKICKER\" element defines a closed orbit corrector "
32 "acting on the vertical plane.") {
34 (
"KICK",
"Vertical deflection in rad");
36 (
"DESIGNENERGY",
"the mean energy of the particles");
38 (
"K0",
"Normal dipole field in T");
71 corr->
setBx(kick * factor);
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
constexpr double c
The velocity of light in m/s.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
std::vector< Attribute > itsAttr
The object attributes.
double getP0() const
Return value of global reference momentum.
static OpalData * getInstance()
void setKickField(const Vector_t &k0)
virtual void setDesignEnergy(const double &ekin, bool changeable=true)
virtual void setElementLength(double length)
Set design length.
virtual void setBx(double)
Set horizontal field component in Teslas.
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 void update()
Update the embedded CLASSIC corrector.
virtual OpalVKicker * clone(const std::string &name)
Make clone.
OpalVKicker()
Exemplar constructor.
Vektor< double, 3 > Vector_t