50 "The \"MULTIPOLETCURVEDVARRADIUS\" element defines a combined function multipole.") {
52 (
"TP",
"Transverse Profile derivatives in m^(-k)");
54 (
"LFRINGE",
"The length of the left end field in m");
56 (
"RFRINGE",
"The length of the right end field in m");
58 (
"HAPERT",
"The aperture width in m");
60 (
"VAPERT",
"The aperture height in m");
62 (
"ANGLE",
"The azimuthal angle of the magnet in ring (rad)");
64 (
"EANGLE",
"The entrance angle (rad)");
67 "Number of terms used in each field component");
70 "Number of terms used in polynomial expansions");
73 "Rotation angle about its axis for skew elements (rad)");
76 "Distance between centre of magnet and entrance in m");
112 std::ostringstream ss;
114 std::string orderString = ss.str();
115 std::string attrName =
"TP" + orderString;
151 const std::vector<double> transProfile =
153 std::size_t transSize = transProfile.size();
155 if (transSize == 0) {
173 for(std::size_t comp = 0; comp < transSize; comp++) {
virtual ElementBase * removeAlignWrapper()
Remove align wrapper.
void print(std::ostream &os) const
Print the object.
double getEntranceAngle() const
Interface for basic beam line object.
std::vector< double > getFringeLength() const
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
bool setFringeField(const double &s0, const double &lambda_left, const double &lambda_right)
void setMaxXOrder(const std::size_t &maxXOrder)
ValueFlag
Switch for value desired on ATTLIST command.
virtual OpalMultipoleTCurvedVarRadius * clone(const std::string &name)
void setAperture(const double &vertAp, const double &horizAp)
VarRadiusGeometry & getGeometry() override
virtual void setBendAngle(const double &angle) override
virtual ElementBase * removeWrappers()
Return the design element.
virtual void setElementLength(double length)
Set design length.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
std::size_t getTransMaxOrder() const
void setTransProfile(const std::size_t &n, const double &Bn)
double getRotation() const
virtual ~OpalMultipoleTCurvedVarRadius()
virtual ElementBase * makeWrappers()
Allow errors.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
void setTransMaxOrder(const std::size_t &transMaxOrder)
OpalMultipoleTCurvedVarRadius()
void setEntranceAngle(const double &entranceAngle)
Base class for all beam line elements.
std::vector< double > getRealArray(const Attribute &attr)
Get array value.
void setLength(const double &length)
void setElement(ElementBase *)
Assign new CLASSIC element.
void registerOwnership() const
void setBoundingBoxLength(const double &boundingBoxLength)
virtual void update()
Update the embedded CLASSIC element.
virtual void updateUnknown(ElementBase *)
Transmit the ``unknown'' (not known to OPAL) attributes to CLASSIC.
ElementBase * getElement() const
Return the embedded CLASSIC element.
virtual void setMaxOrder(const std::size_t &maxOrder) override
std::size_t getMaxOrder() const
std::size_t getMaxXOrder() const
Attribute makeRealArray(const std::string &name, const std::string &help)
Create real array attribute.
void setRotation(const double &rot)
double getBoundingBoxLength() const
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
static AttCell * registerRealAttribute(const std::string &name)
Register a ``real'' element attribute.
std::vector< double > getAperture() const
virtual void print(std::ostream &) const
Print the object.
virtual void setReal(double)
Store the value.
double getTransProfile(const std::size_t &n) const