28 "The \"HKICKER\" element defines a closed orbit corrector "
29 "acting on the horizontal plane.") {
31 (
"KICK",
"Horizontal deflection in rad");
33 (
"DESIGNENERGY",
"the mean energy of the particles");
35 (
"K0",
"Normal dipole field in T");
68 corr->
setBy(- 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 setBy(double)
Set vertical 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
OpalHKicker()
Exemplar constructor.
virtual OpalHKicker * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded CLASSIC corrector.
Vektor< double, 3 > Vector_t