Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Mantid::Crystal::FindSXPeaksHelper::AllPeaksStrategy Class Reference

#include <FindSXPeaksHelper.h>

Inheritance diagram for Mantid::Crystal::FindSXPeaksHelper::AllPeaksStrategy:
Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy

Public Member Functions

 AllPeaksStrategy (const BackgroundStrategy *backgroundStrategy, const API::SpectrumInfo &spectrumInfo, const double minValue=EMPTY_DBL(), const double maxValue=EMPTY_DBL(), const XAxisUnit units=XAxisUnit::TOF)
 
PeakList dofindSXPeaks (const HistogramData::HistogramX &x, const HistogramData::HistogramY &y, Bound low, Bound high, const int workspaceIndex) const override
 
- Public Member Functions inherited from Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy
PeakList findSXPeaks (const HistogramData::HistogramX &x, const HistogramData::HistogramY &y, const int workspaceIndex) const
 
 PeakFindingStrategy (const BackgroundStrategy *backgroundStrategy, const API::SpectrumInfo &spectrumInfo, const double minValue=EMPTY_DBL(), const double maxValue=EMPTY_DBL(), const XAxisUnit units=XAxisUnit::TOF)
 
virtual ~PeakFindingStrategy ()=default
 

Private Member Functions

PeakList convertToSXPeaks (const HistogramData::HistogramX &x, const HistogramData::HistogramY &y, const std::vector< std::unique_ptr< PeakContainer > > &peaks, const int workspaceIndex) const
 
std::vector< std::unique_ptr< PeakContainer > > getAllPeaks (const HistogramData::HistogramX &x, const HistogramData::HistogramY &y, Bound low, Bound high, const Mantid::Crystal::FindSXPeaksHelper::BackgroundStrategy *backgroundStrategy) const
 

Additional Inherited Members

- Protected Member Functions inherited from Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy
double calculatePhi (size_t workspaceIndex) const
 Calculates the average phi value if the workspace contains multiple detectors per spectrum, or returns the value of phi if it is a single detector to spectrum mapping. More...
 
double convertToTOF (const double xValue, const size_t workspaceIndex) const
 
virtual PeakList dofindSXPeaks (const HistogramData::HistogramX &x, const HistogramData::HistogramY &y, Bound low, Bound high, const int workspaceIndex) const =0
 
BoundsIterator getBounds (const HistogramData::HistogramX &x) const
 
double getXValue (const HistogramData::HistogramX &x, const size_t peakLocation) const
 
- Protected Attributes inherited from Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy
const BackgroundStrategym_backgroundStrategy
 
const double m_maxValue = EMPTY_DBL()
 
const double m_minValue = EMPTY_DBL()
 
const API::SpectrumInfom_spectrumInfo
 
const XAxisUnit m_units
 

Detailed Description

Definition at line 183 of file FindSXPeaksHelper.h.

Constructor & Destructor Documentation

◆ AllPeaksStrategy()

Mantid::Crystal::FindSXPeaksHelper::AllPeaksStrategy::AllPeaksStrategy ( const BackgroundStrategy backgroundStrategy,
const API::SpectrumInfo spectrumInfo,
const double  minValue = EMPTY_DBL(),
const double  maxValue = EMPTY_DBL(),
const XAxisUnit  units = XAxisUnit::TOF 
)

Member Function Documentation

◆ convertToSXPeaks()

PeakList Mantid::Crystal::FindSXPeaksHelper::AllPeaksStrategy::convertToSXPeaks ( const HistogramData::HistogramX &  x,
const HistogramData::HistogramY &  y,
const std::vector< std::unique_ptr< PeakContainer > > &  peaks,
const int  workspaceIndex 
) const
private

◆ dofindSXPeaks()

PeakList Mantid::Crystal::FindSXPeaksHelper::AllPeaksStrategy::dofindSXPeaks ( const HistogramData::HistogramX &  x,
const HistogramData::HistogramY &  y,
Bound  low,
Bound  high,
const int  workspaceIndex 
) const
overridevirtual

◆ getAllPeaks()

std::vector< std::unique_ptr< PeakContainer > > Mantid::Crystal::FindSXPeaksHelper::AllPeaksStrategy::getAllPeaks ( const HistogramData::HistogramX &  x,
const HistogramData::HistogramY &  y,
Bound  low,
Bound  high,
const Mantid::Crystal::FindSXPeaksHelper::BackgroundStrategy backgroundStrategy 
) const
private

The documentation for this class was generated from the following files: