Package uk.ac.gda.devices.detector
Interface FluorescenceDetector
- All Superinterfaces:
Findable
- All Known Subinterfaces:
Xspress3,Xspress3Mini,XspressFluorescenceDetector
- All Known Implementing Classes:
NexusXmapFluorescenceDetectorAdapter,XmapFluorescenceDetector,Xspress2Detector,Xspress3BufferedDetector,Xspress3Detector,Xspress3MiniDetector,Xspress3MiniSingleChannelDetector,Xspress4BufferedDetector,Xspress4Detector,Xspress4OdinDetector
-
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure the detector using the given parametersdouble[]intdouble[][]getMCAData(double time) Perform a 'snapshot' data collection and return the MCA data.intintbooleanvoidsetWriteHDF5Files(boolean writeHdfFiles) Set to true to configure the detector to write an HDF5 file during a scan.
-
Method Details
-
getMCAData
Perform a 'snapshot' data collection and return the MCA data. No file writing is involved.- Parameters:
time- The collection time in milliseconds- Returns:
- the MCA data as a double array: [detector element][MCA channel]
- Throws:
DeviceException
-
getNumberOfElements
int getNumberOfElements()- Returns:
- The number of detector elements (sometimes also called channels but this risks confusion with the channels which make up the MCA)
-
getMCASize
int getMCASize()- Returns:
- The number of channels in the MCA (Multi-Channel Analyser)
-
getMaxNumberOfRois
int getMaxNumberOfRois()- Returns:
- The maximum number of ROIs per channel
-
applyConfigurationParameters
Configure the detector using the given parameters- Parameters:
parameters-- Throws:
Exception
-
getConfigurationParameters
FluorescenceDetectorParameters getConfigurationParameters()- Returns:
- The current detector configuration
-
isWriteHDF5Files
boolean isWriteHDF5Files()- Returns:
- true if detector creates an HDF5 file during a scan. This is normally created by Epics via the HDF plugin of the area detector.
-
setWriteHDF5Files
void setWriteHDF5Files(boolean writeHdfFiles) Set to true to configure the detector to write an HDF5 file during a scan.- Parameters:
writeHdfFiles-
-
getDeadtimeCorrectionFactors
- Returns:
- An array of 'deadtime correction' factor values (one for each element of the detector)
- Throws:
DeviceException
-