Package xal.extension.jels.smf.impl
Class RfFieldMap
java.lang.Object
xal.smf.AcceleratorNode
xal.smf.impl.RfGap
xal.extension.jels.smf.impl.RfFieldMap
- All Implemented Interfaces:
Comparable,IFileBasedFieldMap,ElementType,ISplittable,DataListener
General RF Field Map element. It can be used with any type of
FieldMap objects.
This element has to buckets:
- RFGap: contains rf parameters.
- FieldMapBucket: includes the filename of the field map file and information about its type.
- Author:
- Juan F. Esteban Müller <JuanF.EstebanMuller@esss.se>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRfFieldMap(String strId) RfFieldMap(String strId, ChannelFactory channelFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBucket(AttributeBucket buc) Override AcceleratorNode implementation to check for a FieldMapBucketdouble[]doublegetType()Override to provide type signaturevoidsetDimensions(int i) voidsetDynamic(boolean b) voidsetFieldMap(FieldMap fieldMap) final voidvoidsetFieldMapFile(String strVal) doubletoE0TLFromGapField(double field) Convert RF gap field, E0, to E0TL.voidupdate(DataAdaptor adaptor) Loads the field profile if necessaryvoidwriteFieldMap(String fieldMapPath) Write the field map to a file.Methods inherited from class xal.smf.impl.RfGap
getDesignEnergyGain, getGapAmpAvg, getGapDfltAmp, getGapDfltE0TL, getGapDfltFrequency, getGapDfltPhase, getGapE0TL, getGapLength, getGapOffset, getGapPhaseAvg, getGapTTF, getRfGap, getSFit, getSPrimeFit, getStructureMode, getTTFFit, getTTFPrimeFit, isEndCell, isFirstCell, setFirstCell, setGapAmp, setGapPhase, setGapTTF, setRfGap, toGapAmpFromCavityAmp, toGapPhaseFromCavityPhaseMethods inherited from class xal.smf.AcceleratorNode
batchConnectAllHandles, batchConnectAllHandlesAndWait, channelSuite, clear, compareTo, dataLabel, findChannel, getAccelerator, getAccessibleProperties, getAccessibleProperties, getAlign, getAllChannels, getAndConnectChannel, getAndConnectChannelSetAndReadback, getAper, getBucket, getBuckets, getChannel, getDefaultHandles, getDesignPropertyValue, getEId, getHandles, getId, getLength, getLivePropertyChannels, getLivePropertyValue, getParent, getPId, getPitchAngle, getPosition, getPrimaryAncestor, getProperties, getReadbackHandles, getRollAngle, getSDisplay, getSetHandle, getSoftType, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, isChannelSettable, isKindOf, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setDesignPropertyValue, setLength, setLivePropertyValue, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setValueAndVerify, setXOffset, setYawAngle, setYOffset, setZOffset, toString, write, writeAttributes, writeStatus
-
Field Details
-
TYPE
- See Also:
-
bucFieldMap
-
-
Constructor Details
-
RfFieldMap
-
RfFieldMap
-
-
Method Details
-
getType
Description copied from class:RfGapOverride to provide type signature -
getFieldMapBucket
-
setFieldMapBucket
-
addBucket
Override AcceleratorNode implementation to check for a FieldMapBucket -
getFieldMapFile
- Returns:
- FieldMap file
-
setFieldMapFile
- Parameters:
strVal- FieldMap file
-
getFieldMap
- Returns:
- Field profile
-
setFieldMap
- Parameters:
fieldMap-
-
toE0TLFromGapField
public double toE0TLFromGapField(double field) Description copied from class:RfGapConvert RF gap field, E0, to E0TL. This is the product of the field * gap length * TTF.- Overrides:
toE0TLFromGapFieldin classRfGap- Parameters:
field- the RF field in KV/m- Returns:
- the E0TL product (kV)
-
update
Loads the field profile if necessary- Specified by:
updatein interfaceDataListener- Overrides:
updatein classAcceleratorNode- Parameters:
adaptor-
-
getLongitudinalPositions
public double[] getLongitudinalPositions()- Specified by:
getLongitudinalPositionsin interfaceISplittable- Returns:
- Longitudinal positions at which the element must be split.
-
getSliceLength
public double getSliceLength()- Specified by:
getSliceLengthin interfaceISplittable- Returns:
- Length of each slice of the element.
-
setDimensions
public void setDimensions(int i) -
setDynamic
public void setDynamic(boolean b) -
writeFieldMap
Description copied from interface:IFileBasedFieldMapWrite the field map to a file.- Specified by:
writeFieldMapin interfaceIFileBasedFieldMap- Parameters:
fieldMapPath- The path to the directory where field map should be saved.
-