38 static const Entry entries[] = {
74 geometry(right.geometry)
93 for(
const Entry *entry = entries; entry->name != 0; ++entry) {
94 if(aKey == entry->name) {
124 for(
const Entry *entry = entries; entry->name != 0; ++entry) {
125 image->
setAttribute(entry->name, (this->*(entry->get))());
virtual void setPhase(double phi)
Set phase.
Interface for basic beam line object.
virtual void setAmplitude(double V)
Set amplitude.
virtual void setFrequency(double f)
Set frequency.
virtual double getElementLength() const override
Get design length.
virtual double getPhase() const
Return the RF phase in rad.
virtual void setElementLength(double length)
Set design length.
virtual Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
static void setIgnore(bool ignore=false)
Set ignore switch.
virtual double getPhase() const
Get phase.
virtual void setPhase(double phi)
Assign the RF phase in rad.
Representation for a RF cavity.
virtual void setFrequency(double f)
Assign the RF frequency in Hz.
virtual ElementBase * clone() const
Return clone.
AcceleratingField field
The cavity's field.
virtual ElementImage * getImage() const
Construct an image.
static bool ignoreCavities
Cavities are ignored (amplitude = 0) when this switch is set.
virtual ElementImage * getImage() const
Construct an image.
void setAttribute(const std::string &aKey, double val)
Set value of an attribute.
virtual double getFrequency() const
Return the RF frequency in Hz.
virtual void setEz(double)
Set component.
virtual double getAmplitude() const
Get amplitude.
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
A geometry representing a straight line.
Abstract interface for read/write access to variable.
virtual StraightGeometry & getGeometry()
Get geometry.
virtual AcceleratingField & getField()
Get field.
StraightGeometry geometry
The cavity's geometry.
virtual double getFrequency() const
Get frequency.
Access to a [b]double[/b] data member.
virtual double getEz() const
Get component.