Package gda.device.detector.xmap
Class EpicsXmapControllerROI
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.detector.xmap.EpicsXmapController
gda.device.detector.xmap.EpicsXmapControllerROI
- All Implemented Interfaces:
XmapController,Device,Configurable,Findable,gda.observable.IObservable
-
Field Summary
Fields inherited from class gda.device.detector.xmap.EpicsXmapController
actualNumberOfROIs, edxdController, numberOfBins, numberOfElementsFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voiddeleteROIs(int mcaIndex) Deletes all the current regions of interest on a give mca detector element.double[]getROIs(int mcaNumber) double[]getROIs(int mcaNumber, int[][] data) voidsetNumberOfElements(int numberOfElements) Sets the number of MCAs currently connected to the XMap detectorvoidsetROI(double[][] actualRois, int mcaIndex) Set rois the array can be of size [maximum number rois][2] if it is lower for instance [actual number of rois][2] then the other possible rois will be set to zero.Methods inherited from class gda.device.detector.xmap.EpicsXmapController
clearAndStart, getAcquisitionTime, getData, getData, getEdxdController, getEnergyBins, getEnergyBins, getEvents, getICR, getNumberOfBins, getNumberOfElements, getNumberOfROIs, getOCR, getReadRate, getRealTime, getROICounts, getROIParameters, getROIsSum, getStatus, getStatusRate, setAcquisitionTime, setEdxdController, setNthROI, setNumberOfBins, setNumberOfROIs, setReadRate, setReadRate, setROIs, setStatusRate, setStatusRate, start, stopMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, 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, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
EpicsXmapControllerROI
public EpicsXmapControllerROI()
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classEpicsXmapController- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
setNumberOfElements
public void setNumberOfElements(int numberOfElements) Description copied from interface:XmapControllerSets the number of MCAs currently connected to the XMap detector- Specified by:
setNumberOfElementsin interfaceXmapController- Overrides:
setNumberOfElementsin classEpicsXmapController- Parameters:
numberOfElements-
-
deleteROIs
Description copied from interface:XmapControllerDeletes all the current regions of interest on a give mca detector element.- Specified by:
deleteROIsin interfaceXmapController- Overrides:
deleteROIsin classEpicsXmapController- Parameters:
mcaIndex-- Throws:
DeviceException
-
getROIs
- Specified by:
getROIsin interfaceXmapController- Overrides:
getROIsin classEpicsXmapController- Parameters:
mcaNumber-- Returns:
- double array of regions of interest
- Throws:
DeviceException
-
getROIs
- Specified by:
getROIsin interfaceXmapController- Overrides:
getROIsin classEpicsXmapController- Parameters:
mcaNumber-- Returns:
- double array of regions of interest
- Throws:
DeviceException
-
setROI
Set rois the array can be of size [maximum number rois][2] if it is lower for instance [actual number of rois][2] then the other possible rois will be set to zero. The actual number of rois is also taken from the length of the first dimension of this array so it should always be passed in with size of the actual number of rois.- Specified by:
setROIin interfaceXmapController- Overrides:
setROIin classEpicsXmapController- Parameters:
actualRois- array. Each roi should have a low and high value.mcaIndex-- Throws:
DeviceException
-