Class NormalisingRegionProcessor
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.detector.nexusprocessor.DatasetProcessorBase
gda.device.detector.nexusprocessor.roistats.NormalisingRegionProcessor
- All Implemented Interfaces:
DatasetProcessor,Configurable,Findable
Processor which calculates a background subtracted signal using ROIs and normalises using values from
transmission and attenuator scannables. Both of these are optional but by default background subtraction
is enabled but normalisation is disabled.
Adapted from beamline provided Jython script.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String> protected Collection<String> voiddoublegetScale()intbooleanbooleanbooleanisNorm()Processes the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.voidsetAttenuatorScannable(Scannable attenuatorScannable) voidsetAttenuatorScannableName(String attenuatorScannableName) voidsetBackgroundRoiIndices(List<Integer> backgroundRoiIndices) voidsetBackgroundSubtractionEnabled(boolean backgroundSubtractionEnabled) voidsetMonitorScannable(Scannable monitorScannable) voidsetNorm(boolean norm) voidsetRoiStats(RoiStatsProcessor roiStats) voidsetScale(double scale) voidsetSignalRoiIndex(int signalRoiIndex) voidsetTransmissionFieldName(String transmissionFieldName) Methods inherited from class gda.device.detector.nexusprocessor.DatasetProcessorBase
getExtraNames, getOutputFormat, setEnableMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.device.detector.nexusprocessor.DatasetProcessor
atScanEnd, getName, stop
-
Field Details
-
FIELD_NAME_NORM
- See Also:
-
-
Constructor Details
-
NormalisingRegionProcessor
public NormalisingRegionProcessor()
-
-
Method Details
-
atScanStart
public void atScanStart() -
process
public GDANexusDetectorData process(String detectorName, String dataName, org.eclipse.january.dataset.Dataset dataset) throws Exception Description copied from interface:DatasetProcessorProcesses the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.- Parameters:
detectorName- name of detectordataName- name of dataset to processdataset- dataset to process- Returns:
- a
GDANexusDetectorDatawith t - Throws:
Exception
-
_getExtraNames
- Specified by:
_getExtraNamesin classDatasetProcessorBase
-
_getOutputFormat
- Specified by:
_getOutputFormatin classDatasetProcessorBase
-
getRoiStats
-
setRoiStats
-
getSignalRoiIndex
public int getSignalRoiIndex() -
setSignalRoiIndex
public void setSignalRoiIndex(int signalRoiIndex) -
getBackgroundRoiIndices
-
setBackgroundRoiIndices
-
isNorm
public boolean isNorm() -
setNorm
public void setNorm(boolean norm) -
getAttenuatorScannableName
-
setAttenuatorScannableName
-
getAttenuatorScannable
-
setAttenuatorScannable
-
getTransmissionFieldName
-
setTransmissionFieldName
-
getScale
public double getScale() -
setScale
public void setScale(double scale) -
isBackgroundSubtractionEnabled
public boolean isBackgroundSubtractionEnabled() -
setBackgroundSubtractionEnabled
public void setBackgroundSubtractionEnabled(boolean backgroundSubtractionEnabled) -
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceDatasetProcessor- Overrides:
isEnabledin classDatasetProcessorBase- Returns:
trueif this processor is enabled,falseotherwise
-
setMonitorScannable
-