37 namespace OpalOffset {
40 std::string(
"The \"LOCAL_CYLINDRICAL_OFFSET\" element defines an offset")+
41 std::string(
"in cylindrical coordinates, relative to the last placed ")+
42 std::string(
"element. All angles are defined in the midplane.");
46 "LOCAL_CYLINDRICAL_OFFSET",
49 "Angle between the previous element and the displacement vector [rad].");
51 "Angle between the displacement vector and the next element [rad].");
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
virtual void print(std::ostream &) const
OpalLocalCylindricalOffset()
virtual void print(std::ostream &) const
Print the object.
void setElement(ElementBase *)
Assign new CLASSIC element.
static Offset localCylindricalOffset(const std::string &name, double theta_in, double theta_out, double displacement)
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
static const std::string doc_string
double getReal(const Attribute &attr)
Return real value.
virtual OpalLocalCylindricalOffset * clone(const std::string &name)
virtual ~OpalLocalCylindricalOffset()
void registerOwnership() const