18 #ifndef CLASSIC_RFCavityRep_HH
19 #define CLASSIC_RFCavityRep_HH
91 static void setIgnore(
bool ignore =
false);
virtual void setPhase(double phi)
Set phase.
virtual void setFrequency(double f)
Set frequency.
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
virtual StraightGeometry & getGeometry()
Get geometry.
virtual double getPhase() const
Get phase.
virtual ElementBase * clone() const
Return clone.
virtual double getAmplitude() const
Get amplitude.
void operator=(const RFCavityRep &)
StraightGeometry geometry
The cavity's geometry.
virtual void setAmplitude(double V)
Set amplitude.
static bool ignoreCavities
Cavities are ignored (amplitude = 0) when this switch is set.
static void setIgnore(bool ignore=false)
Set ignore switch.
virtual AcceleratingField & getField()
Get field.
AcceleratingField field
The cavity's field.
virtual double getFrequency() const
Get frequency.
A geometry representing a straight line.
Abstract interface for read/write access to variable.