Package gda.device.detector.xmap
Class HardwareTriggeredWithOnlineDataReductionXmap
java.lang.Object
gda.device.detector.xmap.XmapSimpleAcquire
gda.device.detector.xmap.HardwareTriggeredWithOnlineDataReductionXmap
- All Implemented Interfaces:
AsyncNXCollectionStrategy,CollectionStrategyBeanInterface,NXCollectionStrategyPlugin,NXPlugin,NXPluginBase,PositionInputStream<NXDetectorDataAppender>,org.springframework.beans.factory.InitializingBean
Drive the XIA Xmap card using hardware triggers, returning an MCA and Region of Interest totals at each point.
As the XIA Xmap card writes all data to HDF5, and that is the only way that data is available, this class can only work by running the XMap for each row of a scan and returning the data at that row.
Each row is a new run, and produces a new file, for the XMap. So the raw Xmap HDF5 files will be written to their own sub-directory and will not be linked from the GDA Nexus file.
This class will derive the ROI totals and so this must hold the detector's configuration for these.
-
Constructor Summary
ConstructorsConstructorDescriptionHardwareTriggeredWithOnlineDataReductionXmap(EDXDMappingController xmap, NDHDF5PVProvider nDHDF5PVProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidconfigureAcquireAndPeriodTimes(double collectionTime) Deprecated.getRois()voidprepareForCollection(double collectionTime, int numImages, ScanInformation scanInfo) voidread(int maxToRead) Return at least one element, but no more than maxToRead, waiting until able to do so.booleanvoidsetRois(DetectorROI[] rois) Methods inherited from class gda.device.detector.xmap.XmapSimpleAcquire
afterPropertiesSet, collectData, completeCollection, getAcquirePeriod, getAcquireTime, getName, getNumberImagesPerCollection, getStatus, getXmap, isGenerateCallbacks, prepareForCollection, setGenerateCallbacks, stop, waitWhileBusy, willRequireCallbacksMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.device.detector.nxdetector.NXCollectionStrategyPlugin
getFileStructure
-
Constructor Details
-
HardwareTriggeredWithOnlineDataReductionXmap
public HardwareTriggeredWithOnlineDataReductionXmap(EDXDMappingController xmap, NDHDF5PVProvider nDHDF5PVProvider) throws DeviceException - Throws:
DeviceException
-
-
Method Details
-
prepareForCollection
public void prepareForCollection(double collectionTime, int numImages, ScanInformation scanInfo) throws Exception - Specified by:
prepareForCollectionin interfaceNXCollectionStrategyPlugin- Overrides:
prepareForCollectionin classXmapSimpleAcquire- Throws:
Exception
-
prepareForLine
- Specified by:
prepareForLinein interfaceNXPluginBase- Overrides:
prepareForLinein classXmapSimpleAcquire- Throws:
Exception
-
completeLine
- Specified by:
completeLinein interfaceNXPluginBase- Overrides:
completeLinein classXmapSimpleAcquire- Throws:
Exception
-
requiresAsynchronousPlugins
public boolean requiresAsynchronousPlugins()- Returns:
- Return true if all other NXPlugins in the NXDetector must support asynchronous read , i.e. their
supportsAsynchronousRead method returns true.
For example in a trajectory scan the data for the plugins must be stored in some form of hardware cache that can be read out asynchronously to the scan.
-
getInputStreamNames
-
atCommandFailure
- Specified by:
atCommandFailurein interfaceNXPluginBase- Overrides:
atCommandFailurein classXmapSimpleAcquire- Throws:
Exception
-
getInputStreamFormats
-
read
public List<NXDetectorDataAppender> read(int maxToRead) throws NoSuchElementException, InterruptedException, DeviceException Description copied from interface:PositionInputStreamReturn at least one element, but no more than maxToRead, waiting until able to do so. The parameter maxToRead is there to protect the caller from potentially receiving too much data in call, not to meet the needs of the detector.- Parameters:
maxToRead- the maximum number of elements to read. Must be one or more.- Returns:
- at least one element from the head of the stream, oldest on the left
- Throws:
NoSuchElementException- if the stream will have nothing to returnInterruptedExceptionDeviceException
-
getRois
-
setRois
-
configureAcquireAndPeriodTimes
@Deprecated(since="GDA 8.26") public void configureAcquireAndPeriodTimes(double collectionTime) throws Exception Deprecated.- Throws:
Exception
-