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 TypeMethodDescriptionvoid
addBucket
(AttributeBucket buc) Override AcceleratorNode implementation to check for a FieldMapBucketdouble[]
double
getType()
Override to provide type signaturevoid
setDimensions
(int i) void
setDynamic
(boolean b) void
setFieldMap
(FieldMap fieldMap) final void
void
setFieldMapFile
(String strVal) double
toE0TLFromGapField
(double field) Convert RF gap field, E0, to E0TL.void
update
(DataAdaptor adaptor) Loads the field profile if necessaryvoid
writeFieldMap
(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, toGapPhaseFromCavityPhase
Methods 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:RfGap
Override 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:RfGap
Convert RF gap field, E0, to E0TL. This is the product of the field * gap length * TTF.- Overrides:
toE0TLFromGapField
in classRfGap
- Parameters:
field
- the RF field in KV/m- Returns:
- the E0TL product (kV)
-
update
Loads the field profile if necessary- Specified by:
update
in interfaceDataListener
- Overrides:
update
in classAcceleratorNode
- Parameters:
adaptor
-
-
getLongitudinalPositions
public double[] getLongitudinalPositions()- Specified by:
getLongitudinalPositions
in interfaceISplittable
- Returns:
- Longitudinal positions at which the element must be split.
-
getSliceLength
public double getSliceLength()- Specified by:
getSliceLength
in 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:IFileBasedFieldMap
Write the field map to a file.- Specified by:
writeFieldMap
in interfaceIFileBasedFieldMap
- Parameters:
fieldMapPath
- The path to the directory where field map should be saved.
-