Package gda.device.detector.xmap
Class DummyXmapControllerBase
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.detector.xmap.DummyXmapControllerBase
- All Implemented Interfaces:
XmapController,Device,Configurable,Findable,gda.observable.IObservable
- Direct Known Subclasses:
DummyXmapController,DummyXmapControllerAreaDetector
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
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 dataintgetEvents(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 acquisitionTime) 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'sprotected voidvoidstop()Stop data acquisition in all MCA'sprotected voidtoString()Methods 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
configure, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, deleteIObserversMethods inherited from interface gda.device.detector.xmap.XmapController
getData, getData
-
Constructor Details
-
DummyXmapControllerBase
public DummyXmapControllerBase()
-
-
Method Details
-
clearAndStart
Description copied from interface:XmapControllerClears all MCAs and starts data collection- Specified by:
clearAndStartin interfaceXmapController- Throws:
DeviceException
-
getStatus
Description copied from interface:XmapControllerReturns the status of the detector- Specified by:
getStatusin interfaceXmapController- Returns:
- Detector.IDLE/BUSY
- Throws:
DeviceException
-
start
Description copied from interface:XmapControllerStart data acquisition in all MCA's- Specified by:
startin interfaceXmapController- Throws:
DeviceException
-
stop
Description copied from interface:XmapControllerStop data acquisition in all MCA's- Specified by:
stopin interfaceXmapController- Throws:
DeviceException
-
setNthROI
Description copied from interface:XmapControllerSets the specified roi for all the mcas- Specified by:
setNthROIin interfaceXmapController- Parameters:
rois- array. Each roi should have a low and high value.roiIndex-- Throws:
DeviceException
-
setROI
Description copied from interface:XmapControllerSets the all ROIs of the specified MCA.- Specified by:
setROIin interfaceXmapController- Parameters:
rois- array. Each roi should have a low and high value.mcaIndex-- Throws:
DeviceException
-
setROIs
Description copied from interface:XmapControllerSets the all ROIs of all the MCA. All mcas will be set the same roi- Specified by:
setROIsin interfaceXmapController- Parameters:
rois- array. Each roi should have a low and high value.- Throws:
DeviceException
-
getROIParameters
- Specified by:
getROIParametersin interfaceXmapController- Throws:
DeviceException
-
deleteROIs
Description copied from interface:XmapControllerDeletes all the current regions of interest on a give mca detector element.- Specified by:
deleteROIsin interfaceXmapController- Parameters:
mcaIndex-- Throws:
DeviceException
-
startDummyAcquisition
protected void startDummyAcquisition() -
stopDummyAcquisition
protected void stopDummyAcquisition() -
getROICounts
Description copied from interface:XmapControllerReturns the roi count for the specified roiIndex in all MCAs- Specified by:
getROICountsin interfaceXmapController- 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
-
getROIs
- Specified by:
getROIsin interfaceXmapController- Parameters:
mcaNumber-- Returns:
- double array of regions of interest
- Throws:
DeviceException
-
getROIsSum
Description copied from interface:XmapControllerreturns the sum of the regions of interest for each region of all MCAs- Specified by:
getROIsSumin interfaceXmapController- 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
-
getEvents
- Specified by:
getEventsin interfaceXmapController- Parameters:
element-- Returns:
- the total count for the last element
- Throws:
DeviceException
-
getICR
Description copied from interface:XmapControllerReads the input count rate for an element also known as the fast filter rate outside EPICS- Specified by:
getICRin interfaceXmapController- Parameters:
element-- Returns:
- rate
- Throws:
DeviceException
-
getOCR
Description copied from interface:XmapControllerReads the output count rate for an element also known as the slow filter rate outside EPICS- Specified by:
getOCRin interfaceXmapController- Parameters:
element-- Returns:
- rate
- Throws:
DeviceException
-
getROIs
- Specified by:
getROIsin interfaceXmapController- Parameters:
mcaNumber-- Returns:
- double array of regions of interest
- Throws:
DeviceException
-
getNumberOfElements
public int getNumberOfElements()Description copied from interface:XmapControllerReturns the number of MCAs currently connected to the XMap detector- Specified by:
getNumberOfElementsin interfaceXmapController- Returns:
- number of MCA
-
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- Parameters:
numberOfElements-
-
getNumberOfBins
public int getNumberOfBins()Description copied from interface:XmapControllerReturns current number of Bins/channels for spectrum acquisition in each MCA- Specified by:
getNumberOfBinsin interfaceXmapController- Returns:
- numberOfBins
-
setNumberOfBins
public void setNumberOfBins(int numberOfBins) Description copied from interface:XmapControllerSets maximum numbers of bins/channels to use for spectrum acquisition in each MCA- Specified by:
setNumberOfBinsin interfaceXmapController- Parameters:
numberOfBins-
-
getAcquisitionTime
public double getAcquisitionTime()Description copied from interface:XmapControllerReturns the time for which the detector is set to acquire data- Specified by:
getAcquisitionTimein interfaceXmapController- Returns:
- time
-
setAcquisitionTime
public void setAcquisitionTime(double acquisitionTime) Description copied from interface:XmapControllerTells the detector for how many seconds to acquire data- Specified by:
setAcquisitionTimein interfaceXmapController- Parameters:
acquisitionTime-
-
getReadRate
public double getReadRate()Description copied from interface:XmapControllerReturns the current rate at which data is read in the Epics interface- Specified by:
getReadRatein interfaceXmapController- Returns:
- readRate
-
setReadRate
public void setReadRate(double readRate) Description copied from interface:XmapControllerSets the rate at which data is read in the Epics interface- Specified by:
setReadRatein interfaceXmapController- Parameters:
readRate-
-
setReadRate
Description copied from interface:XmapControllerSets the rate at which data is read in the Epics interface- Specified by:
setReadRatein interfaceXmapController- Parameters:
readRate-- Throws:
DeviceException
-
getStatusRate
public double getStatusRate()Description copied from interface:XmapControllerReturns the current set rate at which status is read in the Epics interface- Specified by:
getStatusRatein interfaceXmapController- Returns:
- status rate
-
setStatusRate
public void setStatusRate(double statusRate) Description copied from interface:XmapControllerSets the rate at which status is read in the Epics interface- Specified by:
setStatusRatein interfaceXmapController- Parameters:
statusRate-
-
setStatusRate
Description copied from interface:XmapControllerSets the rate at which status is read in the Epics interface- Specified by:
setStatusRatein interfaceXmapController- Parameters:
statusRate-- Throws:
DeviceException
-
getNumberOfROIs
public int getNumberOfROIs()Description copied from interface:XmapControllerReturns the Number of Regions of Interest- Specified by:
getNumberOfROIsin interfaceXmapController- Returns:
- roi number
-
setNumberOfROIs
public void setNumberOfROIs(int numberOfROIs) Description copied from interface:XmapControllerSets the Number of Regions of Interest for all MCAs- Specified by:
setNumberOfROIsin interfaceXmapController- Parameters:
numberOfROIs-
-
getRealTime
public double getRealTime()Description copied from interface:XmapControllerReturns the elapsed real time after a read status operation- Specified by:
getRealTimein interfaceXmapController- Returns:
- real time
-
toString
-