20#include "MantidMDAlgorithms/DllConfig.h"
24class InstrumentRayTracer;
26namespace MDAlgorithms {
37 const std::string
name()
const override {
return "FindPeaksMD"; };
39 const std::string
summary()
const override {
40 return "Find peaks in reciprocal space in a MDEventWorkspace or a "
45 int version()
const override {
return 1; };
46 const std::vector<std::string>
seeAlso()
const override {
return {
"FindPeaks"}; }
48 const std::string
category()
const override {
return "Optimization\\PeakFinding;MDAlgorithms\\Peaks"; }
50 std::map<std::string, std::string> validateInputs()
override;
61 void determineOutputType(
const std::string &peakType,
const uint16_t numExperimentInfo);
67 void addLeanElasticPeak(
const Mantid::Kernel::V3D &Q,
const double binCount,
const bool useGoniometer =
false);
70 std::shared_ptr<DataObjects::Peak> createPeak(
const Mantid::Kernel::V3D &Q,
const double binCount,
74 std::shared_ptr<DataObjects::LeanElasticPeak>
75 createLeanElasticPeak(
const Mantid::Kernel::V3D &Q,
const double binCount,
const bool useGoniometer =
false);
105 std::unique_ptr<Mantid::API::Progress> prog =
nullptr;
120 bool m_useNumberOfEventsNormalization =
false;
122 double m_signalThresholdFactor = 1.5;
128 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.
This class is responsible for tracking rays and accumulating a list of objects that are intersected a...
FindPeaksMD : TODO: DESCRIPTION.
Mantid::Geometry::Instrument_const_sptr inst
Instrument.
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.
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.