32 "The \"KICKER\" element defines a closed orbit corrector "
33 "acting on both planes.") {
35 (
"HKICK",
"Horizontal deflection in rad");
37 (
"VKICK",
"Vertical deflection in rad");
39 (
"DESIGNENERGY",
"the mean energy of the particles");
41 (
"K0",
"Normal dipole field in T");
43 (
"K0S",
"Skew dipole field in T");
77 corr->
setBy(- hKick * factor);
78 corr->
setBx(vKick * factor);
87 double Bx = 0.0, By = 0.0;
88 bool fieldSet =
false;
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 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
virtual OpalKicker * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded CLASSIC corrector.
OpalKicker()
Exemplar constructor.
Vektor< double, 3 > Vector_t