26 m_radiusEstimate(radiusEstimate), m_mdCoordinates(coordinates) {
35 throw std::invalid_argument(
"Unknown CoordinateSystem provided to PeakBackground");
45 V3D temp(center[0], center[1], center[2]);
49 for (
int i = 0; i <
m_peaksWS->getNumberPeaks(); ++i) {
This is an interface to an iterator of an IMDWorkspace.
virtual Mantid::Kernel::VMD getCenter() const =0
Returns the position of the center of the box pointed to.
HardThresholdBackground : Implementation of BackgroundStrategy using a fixed background signal value ...
bool isBackground(Mantid::API::IMDIterator *iterator) const override
Overriden isBackground.
PeakBackground : Extension of HardThresholdBackground to consider regions of the image as background ...
double m_radiusEstimate
Radius estimate.
PeakBackground(Mantid::API::IPeaksWorkspace_const_sptr peaksWS, const double &radiusEstimate, const double &thresholdSignal, const Mantid::API::MDNormalization normalisation, const Mantid::Kernel::SpecialCoordinateSystem coordinates)
Constructor.
bool isBackground(Mantid::API::IMDIterator *iterator) const override
Overriden is background function.
void configureIterator(Mantid::API::IMDIterator *const iterator) const override
Overriden configure iterator function.
Mantid::API::IPeaksWorkspace_const_sptr m_peaksWS
Peak workspace containing peaks of interest.
PeakBackground * clone() const override
Virutal constructor.
Mantid::Kernel::SpecialCoordinateSystem m_mdCoordinates
MD coordinates to use.
boost::function< Mantid::Kernel::V3D(const Mantid::Geometry::IPeak *)> m_coordFunction
Pointer to member function used for coordinate determination.
Structure describing a single-crystal peak.
virtual Mantid::Kernel::V3D getQSampleFrame() const =0
virtual Mantid::Kernel::V3D getQLabFrame() const =0
virtual Mantid::Kernel::V3D getHKL() const =0
QLab : Q in the lab frame MDFrame.
QSample : Q in the sample frame.
double distance(const V3D &v) const noexcept
Calculates the distance between two vectors.
MDNormalization
Enum describing different ways to normalize the signal in a MDWorkspace.
std::shared_ptr< const IPeaksWorkspace > IPeaksWorkspace_const_sptr
shared pointer to Mantid::API::IPeaksWorkspace (const version)
SpecialCoordinateSystem
Special coordinate systems for Q3D.