Package gda.device.detector.xmap
Interface XmapController
- All Superinterfaces:
Configurable,Device,Findable,gda.observable.IObservable
- All Known Implementing Classes:
DummyXmapController,DummyXmapControllerAreaDetector,DummyXmapControllerBase,EpicsDummyXmapController,EpicsXmapController,EpicsXmapControllerROI
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears all MCAs and starts data collectionvoiddeleteROIs(int mcaIndex) Deletes all the current regions of interest on a give mca detector element.doubleReturns the time for which the detector is set to acquire dataint[][]getData()Returns the twoD data array of the all the MCAsint[]getData(int mcaNumber) Returns the data array of the specified MCAintgetEvents(int element) doublegetICR(int element) Reads the input count rate for an element also known as the fast filter rate outside EPICSintReturns current number of Bins/channels for spectrum acquisition in each MCAintReturns the number of MCAs currently connected to the XMap detectorintReturns the Number of Regions of InterestdoublegetOCR(int element) Reads the output count rate for an element also known as the slow filter rate outside EPICSdoubleReturns the current rate at which data is read in the Epics interfacedoubleReturns the elapsed real time after a read status operationdouble[]getROICounts(int roiIndex) Returns the roi count for the specified roiIndex in all MCAsdouble[][]getROIParameters(int mcaNumber) double[]getROIs(int mcaNumber) double[]getROIs(int mcaNumber, int[][] data) double[]returns the sum of the regions of interest for each region of all MCAsintReturns the status of the detectordoubleReturns the current set rate at which status is read in the Epics interfacevoidsetAcquisitionTime(double time) Tells the detector for how many seconds to acquire datavoidsetNthROI(double[][] rois, int roiIndex) Sets the specified roi for all the mcasvoidsetNumberOfBins(int numberOfBins) Sets maximum numbers of bins/channels to use for spectrum acquisition in each MCAvoidsetNumberOfElements(int numberOfElements) Sets the number of MCAs currently connected to the XMap detectorvoidsetNumberOfROIs(int numberOfROIs) Sets the Number of Regions of Interest for all MCAsvoidsetReadRate(double readRate) Sets the rate at which data is read in the Epics interfacevoidsetReadRate(String readRate) Sets the rate at which data is read in the Epics interfacevoidsetROI(double[][] rois, int mcaIndex) Sets the all ROIs of the specified MCA.voidsetROIs(double[][] rois) Sets the all ROIs of all the MCA.voidsetStatusRate(double statusRate) Sets the rate at which status is read in the Epics interfacevoidsetStatusRate(String statusRate) Sets the rate at which status is read in the Epics interfacevoidstart()Start data acquisition in all MCA'svoidstop()Stop data acquisition in all MCA'sMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Method Details
-
clearAndStart
Clears all MCAs and starts data collection- Throws:
DeviceException
-
start
Start data acquisition in all MCA's- Throws:
DeviceException
-
stop
Stop data acquisition in all MCA's- Throws:
DeviceException
-
setNumberOfBins
Sets maximum numbers of bins/channels to use for spectrum acquisition in each MCA- Parameters:
numberOfBins-- Throws:
DeviceException
-
getNumberOfBins
Returns current number of Bins/channels for spectrum acquisition in each MCA- Returns:
- numberOfBins
- Throws:
DeviceException
-
setStatusRate
Sets the rate at which status is read in the Epics interface- Parameters:
statusRate-- Throws:
DeviceException
-
getStatusRate
Returns the current set rate at which status is read in the Epics interface- Returns:
- status rate
- Throws:
DeviceException
-
setReadRate
Sets the rate at which data is read in the Epics interface- Parameters:
readRate-- Throws:
DeviceException
-
getReadRate
Returns the current rate at which data is read in the Epics interface- Returns:
- readRate
- Throws:
DeviceException
-
getRealTime
Returns the elapsed real time after a read status operation- Returns:
- real time
- Throws:
DeviceException
-
getStatus
Returns the status of the detector- Returns:
- Detector.IDLE/BUSY
- Throws:
DeviceException
-
setAcquisitionTime
Tells the detector for how many seconds to acquire data- Parameters:
time-- Throws:
DeviceException
-
getAcquisitionTime
Returns the time for which the detector is set to acquire data- Returns:
- time
- Throws:
DeviceException
-
getData
Returns the data array of the specified MCA- Parameters:
mcaNumber-- Returns:
- data array
- Throws:
DeviceException
-
getData
Returns the twoD data array of the all the MCAs- Returns:
- data array
- Throws:
DeviceException
-
getNumberOfROIs
int getNumberOfROIs()Returns the Number of Regions of Interest- Returns:
- roi number
-
setNumberOfROIs
void setNumberOfROIs(int numberOfROIs) Sets the Number of Regions of Interest for all MCAs- Parameters:
numberOfROIs-
-
getNumberOfElements
Returns the number of MCAs currently connected to the XMap detector- Returns:
- number of MCA
- Throws:
DeviceException
-
setNumberOfElements
Sets the number of MCAs currently connected to the XMap detector- Parameters:
numberOfElements-- Throws:
DeviceException
-
setStatusRate
Sets the rate at which status is read in the Epics interface- Parameters:
statusRate-- Throws:
DeviceException
-
setReadRate
Sets the rate at which data is read in the Epics interface- Parameters:
readRate-- Throws:
DeviceException
-
getROIsSum
returns the sum of the regions of interest for each region of all MCAs- Returns:
- a double array e.g if there are 4 mcas and 3 ois each , it returns [region1_sum, region2_sum, region3_sum]
- Throws:
DeviceException
-
getROICounts
Returns the roi count for the specified roiIndex in all MCAs- Parameters:
roiIndex-- Returns:
- a double array, e.g if there are 4 mcas and the specified index is 1, it returns [mca1_region1_count, mca2_region1_count, mca3_region1_count, mca4_region1_count]
- Throws:
DeviceException
-
setROI
Sets the all ROIs of the specified MCA.- Parameters:
rois- array. Each roi should have a low and high value.mcaIndex-- Throws:
DeviceException
-
deleteROIs
Deletes all the current regions of interest on a give mca detector element.- Parameters:
mcaIndex-- Throws:
DeviceException
-
setROIs
Sets the all ROIs of all the MCA. All mcas will be set the same roi- Parameters:
rois- array. Each roi should have a low and high value.- Throws:
DeviceException
-
setNthROI
Sets the specified roi for all the mcas- Parameters:
rois- array. Each roi should have a low and high value.roiIndex-- Throws:
DeviceException
-
getEvents
- Parameters:
element-- Returns:
- the total count for the last element
- Throws:
DeviceException
-
getICR
Reads the input count rate for an element also known as the fast filter rate outside EPICS- Parameters:
element-- Returns:
- rate
- Throws:
DeviceException
-
getOCR
Reads the output count rate for an element also known as the slow filter rate outside EPICS- Parameters:
element-- Returns:
- rate
- Throws:
DeviceException
-
getROIs
- Parameters:
mcaNumber-- Returns:
- double array of regions of interest
- Throws:
DeviceException
-
getROIs
- Parameters:
mcaNumber-- Returns:
- double array of regions of interest
- Throws:
DeviceException
-
getROIParameters
- Throws:
DeviceException
-