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