Package gda.device.detector.xmap.edxd
Interface IEDXDElement
- All Superinterfaces:
Configurable,Detector,Device,Findable,INeXusInfoWriteable,gda.observable.IObservable,Scannable
- All Known Implementing Classes:
EDXDElement,EDXDMappingElement
-
Field Summary
Fields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Method Summary
Modifier and TypeMethodDescriptionvoidfitPolynomialToEnergyData(double[] actual, double[] reported) The point of this function is to fit a curve to the data collected from a calibration Sampleintdoubledoubledoubledouble[]doubledouble[]doubleintdoubledouble[]get the roi High limitdoubledouble[]get the roi low limitdoubledoubledoubledoubledouble[]doubledoubledouble[]get the counts for all rois setdoubledoublethe trigger live timedoubledoublebooleanShows whether the element is q-mappedvoidSets all the xmap values from the values in the provided beandouble[]int[]intsetBaseLength(int baseLength) sets the Base LengthdoublesetBaseThreshold(double baseThreshold) sets the base thresholddoublesetBinWidth(double binWidth) sets the bin widthdoublesetDynamicRange(double dynamicRange) sets the dynamic rangedoublesetEnergyThreshold(double energyThreshold) sets the energy thresholddoublesetGapTime(double gapTime) Sets the gap timevoidsetHighROIs(double[] roiHigh) Set the roi high limitvoidsetLowROIs(double[] roiLow) Sets the ROI low limitdoublesetMaxWidth(double maxWidth) sets the max widthdoublesetPeakTime(double peakTime) Sets the peak timedoublesetPreampGain(double preampGain) sets the preamp gainvoidsetQMapping(double[] q) Set the q mapping directlydoublesetResetDelay(double resetDelay) Sets the reset delayvoidsetROIs(double[][] rois) Set rois the array must be of size [maximum number rois][2]doublesetTriggerGapTime(double triggerGapTime) sets the trigger gap timedoublesetTriggerPeakTime(double triggerPeakTime) sets teh trigger peak timedoublesetTriggerThreshold(double triggerThreshold) sets the trigger thresholdMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
collectData, createsOwnFiles, endCollection, getCollectionTime, getDataDimensions, getDescription, getDetectorID, getDetectorType, getFileStructure, getStatus, prepareForCollection, readout, setCollectionTime, waitWhileBusyMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.data.nexus.INeXusInfoWriteable
writeNeXusInformationMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, toFormattedString
-
Method Details
-
getEnergyLiveTime
- Returns:
- the energy live time
- Throws:
DeviceException
-
getTriggerLiveTime
the trigger live time- Returns:
- the reported trigger live time
- Throws:
DeviceException
-
getRealTime
- Returns:
- the real time
- Throws:
DeviceException
-
getEvents
- Returns:
- the number of events
- Throws:
DeviceException
-
getInputCountRate
- Returns:
- the input count rate
- Throws:
DeviceException
-
getOutputCountRate
- Returns:
- The output count rate
- Throws:
DeviceException
-
getEnergyBins
- Returns:
- a double array containing the energy value per bin on the outputed data
- Throws:
DeviceException
-
getPeakTime
- Returns:
- the peak time
- Throws:
DeviceException
-
setPeakTime
Sets the peak time- Parameters:
peakTime-- Returns:
- the peaktime as it is reported
- Throws:
DeviceException
-
getDynamicRange
- Returns:
- the dynamic range
- Throws:
DeviceException
-
setDynamicRange
sets the dynamic range- Parameters:
dynamicRange-- Returns:
- the dynamic range as it is reported
- Throws:
DeviceException
-
getTriggerThreshold
- Returns:
- The trigger threshold
- Throws:
DeviceException
-
setTriggerThreshold
sets the trigger threshold- Parameters:
triggerThreshold-- Returns:
- the trigger threshold as it is reported
- Throws:
DeviceException
-
getBaseThreshold
- Returns:
- the base threshold
- Throws:
DeviceException
-
setBaseThreshold
sets the base threshold- Parameters:
baseThreshold-- Returns:
- the base threshold as reported
- Throws:
DeviceException
-
getBaseLength
- Returns:
- The base length
- Throws:
DeviceException
-
setBaseLength
sets the Base Length- Parameters:
baseLength-- Returns:
- the base length as it is reported
- Throws:
DeviceException
-
getEnergyThreshold
- Returns:
- the energy threshold
- Throws:
DeviceException
-
setEnergyThreshold
sets the energy threshold- Parameters:
energyThreshold-- Returns:
- the energy threshold
- Throws:
DeviceException
-
getBinWidth
- Returns:
- the bin width
- Throws:
DeviceException
-
setBinWidth
sets the bin width- Parameters:
binWidth-- Returns:
- the bin width as reported
- Throws:
DeviceException
-
getPreampGain
- Returns:
- the preamp gain
- Throws:
DeviceException
-
setPreampGain
sets the preamp gain- Parameters:
preampGain-- Returns:
- the preamp gain as reported
- Throws:
DeviceException
-
getResetDelay
- Returns:
- the reset delay
- Throws:
DeviceException
-
setResetDelay
Sets the reset delay- Parameters:
resetDelay-- Returns:
- the reset delay as reported
- Throws:
DeviceException
-
getGapTime
- Returns:
- The gap time
- Throws:
DeviceException
-
setGapTime
Sets the gap time- Parameters:
gapTime-- Returns:
- the gap time as reported
- Throws:
DeviceException
-
getTriggerPeakTime
- Returns:
- the trigger peak time
- Throws:
DeviceException
-
setTriggerPeakTime
sets teh trigger peak time- Parameters:
triggerPeakTime-- Returns:
- the trigger peak time as reported
- Throws:
DeviceException
-
getTriggerGapTime
- Returns:
- the trigger gap time
- Throws:
DeviceException
-
setTriggerGapTime
sets the trigger gap time- Parameters:
triggerGapTime-- Returns:
- the reported trigger gap time
- Throws:
DeviceException
-
getMaxWidth
- Returns:
- the max width
- Throws:
DeviceException
-
setMaxWidth
sets the max width- Parameters:
maxWidth-- Returns:
- the reported max width
- Throws:
DeviceException
-
readoutDoubles
- Returns:
- the double array of data from the xmap
- Throws:
DeviceException
-
readoutInts
- Returns:
- the double array of data from the xmap
- Throws:
DeviceException
-
getEnergyMapping
- Returns:
- the energy mapping
- Throws:
DeviceException
-
getQMapping
- Returns:
- the q mapping for the detector
- Throws:
DeviceException
-
setQMapping
void setQMapping(double[] q) Set the q mapping directly- Parameters:
q- the q mapping to set
-
isQMapped
boolean isQMapped()Shows whether the element is q-mapped- Returns:
trueif q mapped,falseif not
-
fitPolynomialToEnergyData
The point of this function is to fit a curve to the data collected from a calibration Sample- Parameters:
actual-reported-- Throws:
Exception
-
saveConfiguration
- Returns:
- the configuration of this element in a bean
- Throws:
DeviceException
-
loadConfiguration
Sets all the xmap values from the values in the provided bean- Parameters:
bean-- Throws:
DeviceException
-
setROIs
Set rois the array must be of size [maximum number rois][2]- Parameters:
rois-- Throws:
DeviceException
-
setLowROIs
Sets the ROI low limit- Parameters:
roiLow-- Throws:
DeviceException
-
getLowROIs
get the roi low limit- Returns:
- roi low limit array
- Throws:
DeviceException
-
setHighROIs
Set the roi high limit- Parameters:
roiHigh-- Throws:
DeviceException
-
getHighROIs
get the roi High limit- Returns:
- high limit array
- Throws:
DeviceException
-
getROICounts
get the counts for all rois set- Returns:
- counts
- Throws:
DeviceException
-