Package gda.device.detector.xmap
Class XmapReadbackHdf5NXPlugin
java.lang.Object
gda.device.detector.nxdetector.plugin.NullNXPlugin
gda.device.detector.xmap.XmapReadbackHdf5NXPlugin
- All Implemented Interfaces:
NXPlugin,NXPluginBase,PositionInputStream<NXDetectorDataAppender>
In the NXPlugin framework for NXDetectors, this reads the raw HDF5 files
produced by Xmap at the end of each row, extracts the ROIs and deadtime
corrcted MCAs.
-
Constructor Summary
ConstructorsConstructorDescriptionXmapReadbackHdf5NXPlugin(EDXDMappingController xmap, NDHDF5PVProvider ndHDF5PVProvider, List<Double> eventProcessingTimes) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetRois()voidprepareForCollection(int numberImagesPerCollection, ScanInformation scanInfo) voidread(int maxToRead) Return at least one element, but no more than maxToRead, waiting until able to do so.voidsetRois(DetectorROI[] rois) Methods inherited from class gda.device.detector.nxdetector.plugin.NullNXPlugin
completeCollection, getName, setName, stop, willRequireCallbacks
-
Constructor Details
-
XmapReadbackHdf5NXPlugin
public XmapReadbackHdf5NXPlugin(EDXDMappingController xmap, NDHDF5PVProvider ndHDF5PVProvider, List<Double> eventProcessingTimes)
-
-
Method Details
-
prepareForCollection
public void prepareForCollection(int numberImagesPerCollection, ScanInformation scanInfo) throws Exception - Specified by:
prepareForCollectionin interfaceNXPluginBase- Overrides:
prepareForCollectionin classNullNXPlugin- Throws:
Exception
-
prepareForLine
- Specified by:
prepareForLinein interfaceNXPluginBase- Overrides:
prepareForLinein classNullNXPlugin- Throws:
Exception
-
completeLine
- Specified by:
completeLinein interfaceNXPluginBase- Overrides:
completeLinein classNullNXPlugin- Throws:
Exception
-
atCommandFailure
- Specified by:
atCommandFailurein interfaceNXPluginBase- Overrides:
atCommandFailurein classNullNXPlugin- Throws:
Exception
-
getInputStreamNames
- Specified by:
getInputStreamNamesin interfaceNXPluginBase- Overrides:
getInputStreamNamesin classNullNXPlugin
-
getInputStreamFormats
- Specified by:
getInputStreamFormatsin interfaceNXPluginBase- Overrides:
getInputStreamFormatsin classNullNXPlugin
-
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.- Specified by:
readin interfacePositionInputStream<NXDetectorDataAppender>- Overrides:
readin classNullNXPlugin- 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
-