30                 "The \"HKICKER\" element defines a closed orbit corrector " 
   31                 "acting on the horizontal plane.") {
 
   33                     (
"KICK", 
"Horizontal deflection in rad");
 
   35                            (
"DESIGNENERGY", 
"the mean energy of the particles");
 
   37                   (
"K0", 
"Normal dipole field in T");
 
   70     corr->
setBy(- kick * factor);
 
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute. 
static OpalData * getInstance()
constexpr double c
The velocity of light in m/s. 
Vektor< double, 3 > Vector_t
virtual void setDesignEnergy(const double &ekin, bool changeable=true)
void setElement(ElementBase *)
Assign new CLASSIC element. 
virtual void setBy(double)
Set vertical field component in Teslas. 
virtual void update()
Update the embedded CLASSIC corrector. 
void setKickField(const Vector_t &k0)
ElementBase * getElement() const 
Return the embedded CLASSIC element. 
double getP0() const 
Return value of global reference momentum. 
std::vector< Attribute > itsAttr
The object attributes. 
double getReal(const Attribute &attr)
Return real value. 
virtual OpalHKicker * clone(const std::string &name)
Make clone. 
virtual void setElementLength(double length)
Set design length. 
virtual void updateUnknown(ElementBase *)
Transmit the ``unknown'' (not known to OPAL) attributes to CLASSIC. 
OpalHKicker()
Exemplar constructor. 
virtual void update()
Update the embedded CLASSIC element. 
void registerOwnership() const