Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy Class Referenceabstract

#include <FindSXPeaksHelper.h>

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

Public Member Functions

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
 

Protected Member Functions

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

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 150 of file FindSXPeaksHelper.h.

Constructor & Destructor Documentation

◆ PeakFindingStrategy()

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

Definition at line 268 of file FindSXPeaksHelper.cpp.

◆ ~PeakFindingStrategy()

virtual Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::~PeakFindingStrategy ( )
virtualdefault

Member Function Documentation

◆ calculatePhi()

double Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::calculatePhi ( size_t  workspaceIndex) const
protected

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.

Parameters
workspaceIndex:: The index to return the phi value of
Returns
:: The averaged or exact value of phi

Definition at line 315 of file FindSXPeaksHelper.cpp.

References Mantid::API::SpectrumInfo::detector(), Mantid::Geometry::IDetector::getPhi(), m_spectrumInfo, and Mantid::API::SpectrumInfo::spectrumDefinition().

Referenced by Mantid::Crystal::FindSXPeaksHelper::AllPeaksStrategy::convertToSXPeaks(), and Mantid::Crystal::FindSXPeaksHelper::StrongestPeaksStrategy::dofindSXPeaks().

◆ convertToTOF()

double Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::convertToTOF ( const double  xValue,
const size_t  workspaceIndex 
) const
protected

◆ dofindSXPeaks()

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

◆ findSXPeaks()

PeakList Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::findSXPeaks ( const HistogramData::HistogramX &  x,
const HistogramData::HistogramY &  y,
const int  workspaceIndex 
) const

◆ getBounds()

BoundsIterator Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::getBounds ( const HistogramData::HistogramX &  x) const
protected

Definition at line 297 of file FindSXPeaksHelper.cpp.

References Mantid::EMPTY_DBL(), m_maxValue, m_minValue, and Mantid::Geometry::x.

Referenced by findSXPeaks().

◆ getXValue()

double Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::getXValue ( const HistogramData::HistogramX &  x,
const size_t  peakLocation 
) const
protected

Member Data Documentation

◆ m_backgroundStrategy

const BackgroundStrategy* Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::m_backgroundStrategy
protected

◆ m_maxValue

const double Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::m_maxValue = EMPTY_DBL()
protected

Definition at line 169 of file FindSXPeaksHelper.h.

Referenced by getBounds().

◆ m_minValue

const double Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::m_minValue = EMPTY_DBL()
protected

Definition at line 168 of file FindSXPeaksHelper.h.

Referenced by getBounds().

◆ m_spectrumInfo

const API::SpectrumInfo& Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::m_spectrumInfo
protected

◆ m_units

const XAxisUnit Mantid::Crystal::FindSXPeaksHelper::PeakFindingStrategy::m_units
protected

Definition at line 171 of file FindSXPeaksHelper.h.

Referenced by convertToTOF().


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