|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.xal.smf.AcceleratorNode
|
+--gov.sns.xal.smf.impl.RfGap
The implementation of the RF gap element. The RfGap class is meant to be used in connection with a set of related RF gaps, such as the gaps in a DTL Tank, which are all part of a single resonant cavity controlled by a single klystron. Each gap may have a fixed scale factor for both the field and phase, relative to a nominal field and phase.
| Field Summary | |
protected RfGapBucket |
m_bucRfGap
The rf gap bucket containing the length, ampFactor, phaseFactor and TTF |
static java.lang.String |
s_strType
|
| Fields inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, m_bolIsSoft, m_bolStatus, m_bolValid, m_bucAlign, m_bucAper, m_bucTwiss, m_dblLen, m_dblPos, m_mapAttrs, m_objAccel, m_seqParent, m_strId |
| Constructor Summary | |
RfGap(java.lang.String strId)
|
|
| Method Summary | |
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 |
getGapAmpAvg()
return the RF amplitude in the gap (kV/m). |
double |
getGapDfltAmp()
return the RF amplitude in the gap (kV/m) |
double |
getGapDfltE0TL()
return the E0TL product (kV) 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()
return the E0TL product (kV) This is the product of the field * gap length * TTF |
double |
getGapLength()
return Rf Gap Length |
double |
getGapOffset()
returns the offset of the gap center from the cell center (m) these may be different e.g. |
double |
getGapPhaseAvg()
return the RF phase in the gap (deg). |
double |
getGapTTF()
return TTF |
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)
|
| Methods inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, clear, dataLabel, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getChannel, getHandles, getId, getLength, getParent, getPosition, getStatus, getTwiss, getValid, hasBucket, hasParent, isKindOf, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPosition, setStatus, setTwiss, setValid, toString, update, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String s_strType
protected RfGapBucket m_bucRfGap
| Constructor Detail |
public RfGap(java.lang.String strId)
| Method Detail |
public java.lang.String getType()
getType in class AcceleratorNodepublic RfGapBucket getRfGap()
public void setRfGap(RfGapBucket buc)
public void addBucket(AttributeBucket buc)
addBucket in class AcceleratorNode
public double getGapAmpAvg()
throws ConnectionException,
GetException
ConnectionException
GetExceptionpublic double getGapDfltAmp()
public double getGapPhaseAvg()
throws ConnectionException,
GetException
ConnectionException
GetException
public double getGapE0TL()
throws ConnectionException,
GetException
ConnectionException
GetExceptionpublic double getGapDfltE0TL()
public double getGapDfltPhase()
public double getGapDfltFrequency()
public double getGapLength()
getGapLength in interface RfGapDataSourcepublic double getGapTTF()
public void setGapAmp(double cavAmp)
public void setGapPhase(double cavPhase)
public UnivariateRealPolynomial getTTFFit()
getTTFFit in interface RfGapDataSourcepublic UnivariateRealPolynomial getTTFPrimeFit()
getTTFPrimeFit in interface RfGapDataSourcepublic UnivariateRealPolynomial getSFit()
getSFit in interface RfGapDataSourcepublic UnivariateRealPolynomial getSPrimeFit()
getSPrimeFit in interface RfGapDataSourcepublic double getStructureMode()
getStructureMode in interface RfGapDataSourcepublic double getGapOffset()
getGapOffset in interface RfGapDataSourcepublic void setFirstGap(boolean tf)
public boolean isFirstGap()
isFirstGap in interface RfGapDataSourcepublic boolean isEndCell()
public double getDesignEnergyGain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||