Package uk.ac.gda.analysis.mscan
Interface MalcolmSwmrProcessor<T extends NXobject>
- All Known Implementing Classes:
AbstractMalcolmSwmrProcessor,FilterTransmissionProc,MaxValProc,MeanProc,NormProc,PlotProc,RoiProc,SumProc
public interface MalcolmSwmrProcessor<T extends NXobject>
Consumes datasets provided during a scan in order to perform processing.
This form of processing within GDA and the scan is intended to be for
lightweight processing only.
-
Method Summary
Modifier and TypeMethodDescriptionThe name of theNXdatagroup to add this field to.voidinitialise(NexusScanInfo info, AbstractNexusObjectProvider<T> nexusProvider) Prepare processor to receive data.booleanCheck if processor is currently enabledvoidprocessFrame(org.eclipse.january.dataset.Dataset data, SliceFromSeriesMetadata metaSlice) Perform processing for the data.voidsetDataGroupName(String dataGroupName) Set name ofNXdatagroup to add this field to.voidsetEnabled(boolean enabled) Set enabled state of processor
-
Method Details
-
initialise
Prepare processor to receive data. For example create the lazy datasets and add to theNexusObjectWrapper- Parameters:
info- the current scan infonexusProvider- Nexus provider to write datasets into
-
processFrame
Perform processing for the data. E.g calculate a statistic and write to theNXdata- Parameters:
data- current detector frame to processmetaSlice- metadata fror this frame
-
isEnabled
boolean isEnabled()Check if processor is currently enabled -
setEnabled
void setEnabled(boolean enabled) Set enabled state of processor -
getDataGroupName
String getDataGroupName()The name of theNXdatagroup to add this field to. This can be used to group stats fields together in a singleNXdatagroup. This property only applies when using new nexus writing (i.e.NexusScanDataWriter).- Returns:
- the name of the data group
-
setDataGroupName
Set name ofNXdatagroup to add this field to.- Parameters:
dataGroupName-- See Also:
-