Algorithm: DiffractionSpectrumWeightCalculator
Description:
This algorithm calculates smoothing weights for the smoothed cubic spline method to allow it to exclude peaks from its fit of the background. It clones the input workspace to create a weight workspace, applies zero weights to regions around the predicted peaks, and handles event data by converting it to histogram data if necessary.
Expected Inputs:
InputWorkspace: - Type: MatrixWorkspace - Direction: Input - Property Mode: Mandatory - Description: Workspace peaks to be weighted.
DetectorPeaks: - Type: String - Direction: Input - Property Mode: Mandatory - Description: JSON string of predicted peaks.
Expected Outputs:
WeightWorkspace: - Type: MatrixWorkspace - Direction: Output - Property Mode: Mandatory - Description: The output workspace with calculated weights.