24 double(SolenoidRep::*get)()
const;
25 void (SolenoidRep::*set)(double);
28 const Entry entries[] = {
73 for(
const Entry *entry = entries; entry->name != 0; ++entry) {
74 if(aKey == entry->name) {
102 return field.getBz();
virtual Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
virtual double getElementLength() const
Get design length.
virtual void setElementLength(double length)
Set design length.
ElementBase(const std::string &name)
Constructor with given name.
Solenoid(const std::string &name)
Constructor with given name.
SolenoidRep(const std::string &name)
Constructor with given name.
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
virtual StraightGeometry & getGeometry()
Get geometry.
virtual ElementBase * clone() const
Return clone.
ConstBzField field
The solenoid field.
StraightGeometry geometry
The solenoid geometry.
virtual double getBz() const
Get field.
virtual void setBz(double Bz)
Set field.
virtual ConstBzField & getField()
Get field.
A geometry representing a straight line.
Abstract interface for read/write access to variable.
Access to a [b]double[/b] data member.
A homogeneous magnetostatic field in z-direction.