36 "The \"MULTIPOLET\" element defines a combined function multipole.") {
38 (
"TP",
"Transverse Profile derivatives in T m^(-k)");
41 (
"LFRINGE",
"The length of the left end field [m]");
44 (
"RFRINGE",
"The length of the right end field [m]");
47 (
"HAPERT",
"The aperture width [m]");
50 (
"VAPERT",
"The aperture height [m]");
53 (
"ANGLE",
"The azimuthal angle of the magnet in ring [rad]");
56 (
"EANGLE",
"The entrance angle [rad]");
59 (
"MAXFORDER",
"Number of terms used in each field component");
62 (
"MAXXORDER",
"Number of terms used in polynomial expansions");
65 (
"ROTATION",
"Rotation angle about its axis for skew elements [rad]");
68 (
"VARRADIUS",
"Set true if radius of magnet is variable");
71 (
"BBLENGTH",
"Distance between centre of magnet and entrance [m]");
119 int transSize = transProfile.size();
121 if (transSize == 0) {
131 for (
int comp = 0; comp < transSize; comp++) {
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
item[EANGLE] Entrance edge angle(radians).\item[ROTATION] Rotation of the magnet about its central axis(radians
void setMaxXOrder(std::size_t maxXOrder)
void setBoundingBoxLength(const double &boundingBoxLength)
virtual OpalMultipoleT * clone(const std::string &name)
void setBendAngle(double angle)
void setTransMaxOrder(std::size_t transMaxOrder)
virtual void print(std::ostream &) const
Print the object.
void setEntranceAngle(double entranceAngle)
std::vector< double > getRealArray(const Attribute &attr)
Get array value.
void setLength(double length)
Attribute makeRealArray(const std::string &name, const std::string &help)
Create real array attribute.
void setElement(ElementBase *)
Assign new CLASSIC element.
void setMaxOrder(std::size_t maxOrder)
bool getBool(const Attribute &attr)
Return logical value.
Attribute makeBool(const std::string &name, const std::string &help)
Make logical attribute.
void setAperture(double vertAp, double horizAp)
ElementBase * getElement() const
Return the embedded CLASSIC element.
void print(std::ostream &os) const
Print the object.
virtual ~OpalMultipoleT()
std::vector< Attribute > itsAttr
The object attributes.
double getReal(const Attribute &attr)
Return real value.
bool setFringeField(double s0, double lambda_left, double lambda_right)
virtual void setElementLength(double length)
Set design length.
virtual void updateUnknown(ElementBase *)
Transmit the ``unknown'' (not known to OPAL) attributes to CLASSIC.
void setTransProfile(std::size_t n, double Bn)
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const
void setRotation(double rot)
void initialise(PartBunchBase< double, 3 > *, double &startField, double &endField) override