Package gda.device.detector.countertimer
Class TFGScalerWithRatio
java.lang.Object
- All Implemented Interfaces:
CounterTimer,Detector,DarkCurrentDetector,Device,Scannable,Configurable,Findable,gda.observable.IObservable,Serializable
Temporary class for B18.
For when the drain currents are being fed into the TFG Scaler rather than the ion chamber output. When using drain current then only It/I0 is required. This class should be used in place of TFGScalerWithLogValues for counterTimer01.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gda.device.detector.countertimer.TfgScalerWithDarkCurrent
TfgScalerWithDarkCurrent.DarkCurrentBean -
Field Summary
Fields inherited from class gda.device.detector.countertimer.TfgScaler
numChannelsToRead, scaler, timeChannelRequiredFields inherited from class gda.device.detector.countertimer.TFGCounterTimer
isTFGv2Fields inherited from class gda.device.detector.countertimer.CounterTimerBase
slave, timerFields inherited from class gda.device.detector.DetectorBase
collectionTimeFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the total number of available counter-timer readout channels that will be returned by calls to readChans() For a time-framing device it is the number of channels per frame.booleandouble[]readout()Returns the latest data collected.voidsetOutputRatio(boolean outputRatio) When set to true I0/It will be added to the output columnsMethods inherited from class gda.device.detector.countertimer.TfgScalerWithDarkCurrent
acquireDarkCurrent, adjustChannelForDarkCurrent, adjustForDarkCurrent, atScanEnd, atScanStart, getDarkCurrent, getDarkCurrentCollectionTime, getDarkCurrentResults, isDarkCurrentRequired, isUseReset, setDarkCurrent, setDarkCurrentCollectionTime, setDarkCurrentRequired, setUseResetMethods inherited from class gda.device.detector.countertimer.TfgScaler
addFrameSet, addFrameSet, atCommandFailure, atScanLineStart, clearFrameSets, collectData, configure, countAsync, createsOwnFiles, getAttribute, getDescription, getDetectorID, getDetectorType, getFirstDataChannel, getInputNames, getMinimumReadoutDelay, getNumChannelsToRead, getScaler, getScalerName, isTimeChannelRequired, readChannel, readChans, readFrame, readFrame, readoutCurrentFrame, readoutFrames, setAttribute, setFirstDataChannel, setMinimumReadoutDelay, setNumChannelsToRead, setScaler, setScalerName, setTimeChannelRequired, start, stopMethods inherited from class gda.device.detector.countertimer.TFGCounterTimer
isTFGv2, setTFGv2Methods inherited from class gda.device.detector.countertimer.CounterTimerBase
getCurrentCycle, getCurrentFrame, getMaximumFrames, getStatus, getTimer, getTimerName, isSlave, loadFrameSets, restart, setCycles, setSlave, setTimer, setTimerNameMethods inherited from class gda.device.detector.DetectorBase
asynchronousMoveTo, checkPositionValid, endCollection, getCollectionTime, getDataDimensions, getPosition, isBusy, prepareForCollection, setCollectionTime, toFormattedStringMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanLineEnd, externalToInternal, getExtraNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
endCollection, getCollectionTime, getDataDimensions, getFileStructure, prepareForCollection, setCollectionTime, waitWhileBusyMethods inherited from interface gda.device.Device
close, getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanLineEnd, checkPositionValid, getExtraNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString
-
Constructor Details
-
TFGScalerWithRatio
public TFGScalerWithRatio()
-
-
Method Details
-
isOutputRatio
public boolean isOutputRatio()- Returns:
- Returns the outputLogValues.
-
setOutputRatio
public void setOutputRatio(boolean outputRatio) When set to true I0/It will be added to the output columns- Parameters:
outputRatio- The outputLogValues to set.
-
getTotalChans
Description copied from class:TfgScalerReturns the total number of available counter-timer readout channels that will be returned by calls to readChans() For a time-framing device it is the number of channels per frame. All counter-timers must fully implement this.- Overrides:
getTotalChansin classTfgScaler- Returns:
- total number of readout channels
- Throws:
DeviceException
-
readout
Description copied from interface:DetectorReturns the latest data collected. The size of the Object returned must be consistent with the values returned by getDataDimensions and getExtraNames.If
LocalProperties.GDA_SCAN_CONCURRENTSCAN_READOUT_CONCURRENTLYis true then motors may be moved while the detector readouts. The value returned must not be effected by any concurrent motor or shutter movements. SeeDetector.waitWhileBusy()andConcurrentScan. Readout must block until the detector is ready to respond quickly toDetector.collectData()again.- Specified by:
readoutin interfaceDetector- Overrides:
readoutin classTfgScaler- Returns:
- the data collected
- Throws:
DeviceException- See Also:
-