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