This algorithm starts with a PeaksWorkspace containing the expected positions of peaks in reciprocal space. It calculates the centroid of the peak by calculating the average of the coordinates of all events within a given radius of the peak, weighted by the weight (signal) of the event.
*WIKI*/
#include"MantidKernel/System.h"
#include"MantidKernel/ListValidator.h"
#include"MantidAPI/IMDEventWorkspace.h"
#include"MantidDataObjects/PeaksWorkspace.h"
#include"MantidKernel/System.h"
#include"MantidMDEvents/CoordTransformDistance.h"
#include"MantidMDEvents/CentroidPeaksMD.h"
#include"MantidMDEvents/MDEventFactory.h"
#include"MantidMDEvents/IntegratePeaksMD.h"
#include"MantidKernel/ListValidator.h"
#include"MantidMDAlgorithms/IntegratePeaksMD.h"
#include"MantidMDAlgorithms/CentroidPeaksMD.h"
usingMantid::DataObjects::PeaksWorkspace;
namespaceMantid
{
namespaceMDEvents
namespaceMDAlgorithms
{
// Register the algorithm into the AlgorithmFactory