20#include "MantidMDAlgorithms/DllConfig.h"
25class InstrumentRayTracer;
27namespace MDAlgorithms {
38 const std::string
name()
const override {
return "FindPeaksMD"; };
40 const std::string
summary()
const override {
41 return "Find peaks in reciprocal space in a MDEventWorkspace or a "
46 int version()
const override {
return 1; };
47 const std::vector<std::string>
seeAlso()
const override {
return {
"FindPeaks"}; }
49 const std::string
category()
const override {
return "Optimization\\PeakFinding;MDAlgorithms\\Peaks"; }
51 std::map<std::string, std::string> validateInputs()
override;
62 void determineOutputType(
const std::string &peakType,
const uint16_t numExperimentInfo);
69 void addLeanElasticPeak(
const Mantid::Kernel::V3D &Q,
const double binCount,
const bool useGoniometer =
false);
72 std::shared_ptr<DataObjects::Peak> createPeak(
const Mantid::Kernel::V3D &Q,
const double binCount,
76 std::shared_ptr<DataObjects::LeanElasticPeak>
77 createLeanElasticPeak(
const Mantid::Kernel::V3D &Q,
const double binCount,
const bool useGoniometer =
false);
107 std::unique_ptr<Mantid::API::Progress> prog =
nullptr;
122 bool m_useNumberOfEventsNormalization =
false;
124 double m_signalThresholdFactor = 1.5;
130 bool m_leanElasticPeak =
false;
Base class from which all concrete algorithm classes should be derived.
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
ComponentInfo : Provides a component centric view on to the instrument.
This class is responsible for tracking rays and accumulating a list of objects that are intersected a...
FindPeaksMD : TODO: DESCRIPTION.
coord_t peakRadiusSquared
Estimated radius of peaks. Boxes closer than this are rejected.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
eDimensionType dimType
Dimension type.
const std::string category() const override
Algorithm's category for identification.
eDimensionType
Enum describing which type of dimensions in the MDEventWorkspace.
double DensityThresholdFactor
Thresholding factor.
signal_t m_densityScaleFactor
Arbitrary scaling factor for density to make more manageable numbers, especially for older file forma...
int64_t m_maxPeaks
Max # of peaks.
bool m_addDetectors
Flag to include the detectors within the peak.
const std::string name() const override
Algorithm's name for identification.
Mantid::API::IPeaksWorkspace_sptr peakWS
Output PeaksWorkspace.
static const std::string numberOfEventsNormalization
NumberOfEventNormalization.
int version() const override
Algorithm's version for identification.
int m_edge
Number of edge pixels with no peaks.
Mantid::Kernel::Matrix< double > m_goniometer
Goniometer matrix.
const std::string summary() const override
Summary of algorithms purpose.
int m_runNumber
Run number of the peaks.
static const std::string volumeNormalization
VolumeNormalization.
Mantid::Geometry::Instrument_const_sptr m_inst
Instrument.
std::shared_ptr< IPeaksWorkspace > IPeaksWorkspace_sptr
shared pointer to Mantid::API::IPeaksWorkspace
std::shared_ptr< ExperimentInfo > ExperimentInfo_sptr
Shared pointer to ExperimentInfo.
std::shared_ptr< IMDWorkspace > IMDWorkspace_sptr
Shared pointer to the IMDWorkspace base class.
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Helper class which provides the Collimation Length for SANS instruments.
float coord_t
Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace,...
double signal_t
Typedef for the signal recorded in a MDBox, etc.