public class RfGap extends AcceleratorNode
Modifier and Type | Class and Description |
---|---|
static class |
RfGap.Property
accessible properties
|
Modifier and Type | Field and Description |
---|---|
protected RfGapBucket |
m_bucRfGap
The rf gap bucket containing the length, ampFactor, phaseFactor and TTF
|
static java.lang.String |
s_strType |
channelSuite, m_bolIsSoft, m_bolStatus, m_bolValid, m_bucAlign, m_bucAper, m_bucTwiss, m_dblLen, m_dblPos, m_dblS, m_mapAttrs, m_objAccel, m_seqParent, m_strEId, m_strId, m_strPId
Constructor and Description |
---|
RfGap(java.lang.String strId) |
Modifier and Type | Method and Description |
---|---|
void |
addBucket(AttributeBucket buc)
Override AcceleratorNode implementation to check for a RfGapBucket
|
double |
getDesignEnergyGain()
Computes and returns the design value of the energy gain for this gap.
|
double |
getDesignPropertyValue(java.lang.String propertyName)
Get the design value for the specified property
|
double |
getGapAmpAvg()
return the RF amplitude in the gap (kV/m).
|
double |
getGapDfltAmp()
return the RF amplitude in the gap (kV/m)
|
double |
getGapDfltE0TL()
This is the product of the field * gap length * TTF
|
double |
getGapDfltFrequency()
return the RF fundamental frequency
|
double |
getGapDfltPhase()
return the RF phase in the gap (deg)
|
double |
getGapE0TL()
This is the product of the field * gap length * TTF
|
double |
getGapLength()
return Rf Gap Length
|
double |
getGapOffset()
these may be different, for example, for a DTL cavity
|
double |
getGapPhaseAvg()
This includes the calibration offset factor if it has been set
|
double |
getGapTTF()
return TTF
|
Channel[] |
getLivePropertyChannels(java.lang.String propertyName)
Get the array of channels for the specified property
|
double |
getLivePropertyValue(java.lang.String propertyName,
double[] channelValues)
Get the live property value for the corresponding array of channel values in the order given by getLivePropertyChannels()
|
RfGapBucket |
getRfGap() |
UnivariateRealPolynomial |
getSFit()
return a polynomial fit of the S factor as a function of beta
|
UnivariateRealPolynomial |
getSPrimeFit()
return a polynomial fit of the S-prime factor as a function of beta
|
double |
getStructureMode()
returns 0 if the gap is part of a 0 mode cavity structure (e.g.
|
UnivariateRealPolynomial |
getTTFFit()
return a polynomial fit of the transit time factor as a function of beta
|
UnivariateRealPolynomial |
getTTFPrimeFit()
return a polynomial fit of the TTF-prime factor as a function of beta
|
java.lang.String |
getType()
Override to provide type signature
|
boolean |
isEndCell()
returns whether this is the first gap of a cavity string
|
boolean |
isFirstGap()
returns whether this is the first gap of a cavity string
|
void |
setFirstGap(boolean tf)
sets the flag indicating whether this is the first gap in a cavity
|
void |
setGapAmp(double cavAmp)
Set the RF amplitude in the (kV/m)
should be done by the parent cavity (e.g.
|
void |
setGapPhase(double cavPhase)
Set the RF phase in the gap (deg)
should be done by the parent cavity (e.g.
|
void |
setRfGap(RfGapBucket buc) |
double |
toE0TLFromGapField(double field)
Convert RF gap field, E0, to E0TL.
|
double |
toGapAmpFromCavityAmp(double cavityAmp)
Convert RF cavity amplitude to get the RF gap's amplitude.
|
double |
toGapPhaseFromCavityPhase(double cavityPhase)
Convert RF cavity phase to get the RF gap's phase.
|
channelSuite, clear, dataLabel, findChannel, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getChannel, getEId, getHandles, getId, getLength, getParent, getPId, getPitchAngle, getPosition, getPrimaryAncestor, getRollAngle, getSDisplay, getSoftType, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, isKindOf, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setXOffset, setYawAngle, setYOffset, setZOffset, toString, update, write
public static final java.lang.String s_strType
protected RfGapBucket m_bucRfGap
public java.lang.String getType()
getType
in class AcceleratorNode
public RfGapBucket getRfGap()
public void setRfGap(RfGapBucket buc)
public void addBucket(AttributeBucket buc)
addBucket
in class AcceleratorNode
public double getDesignPropertyValue(java.lang.String propertyName)
getDesignPropertyValue
in class AcceleratorNode
public double getLivePropertyValue(java.lang.String propertyName, double[] channelValues)
getLivePropertyValue
in class AcceleratorNode
public Channel[] getLivePropertyChannels(java.lang.String propertyName)
getLivePropertyChannels
in class AcceleratorNode
public double getGapAmpAvg() throws ConnectionException, GetException
ConnectionException
GetException
public double getGapDfltAmp()
public double getGapPhaseAvg() throws ConnectionException, GetException
ConnectionException
GetException
public double getGapE0TL() throws ConnectionException, GetException
ConnectionException
GetException
public double getGapDfltE0TL()
public double getGapDfltPhase()
public double getGapDfltFrequency()
public double toGapAmpFromCavityAmp(double cavityAmp)
cavityAmp
- the RF cavity's amplitudepublic double toGapPhaseFromCavityPhase(double cavityPhase)
cavityPhase
- the RF cavity's phasepublic double toE0TLFromGapField(double field)
field
- the RF field in KV/mpublic double getGapLength()
public double getGapTTF()
public void setGapAmp(double cavAmp)
cavAmp
- The amplitude of the first gap (kV/m)public void setGapPhase(double cavPhase)
cavPhase
- The phase of the first gap (deg)public UnivariateRealPolynomial getTTFFit()
public UnivariateRealPolynomial getTTFPrimeFit()
public UnivariateRealPolynomial getSFit()
public UnivariateRealPolynomial getSPrimeFit()
public double getStructureMode()
public double getGapOffset()
public void setFirstGap(boolean tf)
public boolean isFirstGap()
public boolean isEndCell()
public double getDesignEnergyGain()