Mantid
Loading...
Searching...
No Matches
PeakBackground.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
12#include "MantidCrystal/DllConfig.h"
14#include "MantidKernel/V3D.h"
15#include <boost/function.hpp>
16
17namespace Mantid {
18namespace Geometry {
19class IPeak;
20}
21namespace Crystal {
22
29class MANTID_CRYSTAL_DLL PeakBackground : public HardThresholdBackground {
30private:
39
40public:
42 PeakBackground(Mantid::API::IPeaksWorkspace_const_sptr peaksWS, const double &radiusEstimate,
43 const double &thresholdSignal, const Mantid::API::MDNormalization normalisation,
45
47 bool isBackground(Mantid::API::IMDIterator *iterator) const override;
48
50 void configureIterator(Mantid::API::IMDIterator *const iterator) const override;
51
53 PeakBackground *clone() const override;
54};
55
56} // namespace Crystal
57} // namespace Mantid
This is an interface to an iterator of an IMDWorkspace.
Definition: IMDIterator.h:39
HardThresholdBackground : Implementation of BackgroundStrategy using a fixed background signal value ...
PeakBackground : Extension of HardThresholdBackground to consider regions of the image as background ...
double m_radiusEstimate
Radius estimate.
Mantid::API::IPeaksWorkspace_const_sptr m_peaksWS
Peak workspace containing peaks of interest.
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.
Definition: IPeak.h:26
Class for 3D vectors.
Definition: V3D.h:34
MDNormalization
Enum describing different ways to normalize the signal in a MDWorkspace.
Definition: IMDIterator.h:25
std::shared_ptr< const IPeaksWorkspace > IPeaksWorkspace_const_sptr
shared pointer to Mantid::API::IPeaksWorkspace (const version)
SpecialCoordinateSystem
Special coordinate systems for Q3D.
Helper class which provides the Collimation Length for SANS instruments.