12#include "MantidCurveFitting/DllConfig.h"
15namespace CurveFitting {
53 std::string name()
const override;
59 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
61 void setUpForFit()
override;
63 void setMatrixWorkspace(std::shared_ptr<const API::MatrixWorkspace>
workspace,
size_t wsIndex,
double startX,
64 double endX)
override;
70 void voigtApprox(std::vector<double> &voigt,
const std::vector<double> &xValues,
const double lorentzPos,
71 const double lorentzAmp,
const double lorentzWidth,
const double gaussWidth)
const;
73 void voigtApprox(std::vector<double> &voigt,
const std::vector<double> &xValues,
const double lorentzPos,
74 const double lorentzAmp)
const;
80 void declareAttributes()
override;
82 void setAttribute(
const std::string &name,
const Attribute &
value)
override;
91 std::shared_ptr<API::IPeakFunction>
m_voigt;
double value
The value of the point.
IPeaksWorkspace_sptr workspace
std::map< DeltaEMode::Type, std::string > index
This is a specialization of IFunction for functions of one real argument.
Attribute is a non-fitting parameter.
Implements the part of IFunction interface dealing with parameters.
Calculate the resolution from a workspace of Vesuvio data using the mass & instrument definition.
size_t m_wsIndex
Current workspace index, required to access instrument parameters.
double m_mass
Store the mass values.
double lorentzFWHM() const
Access lorentz FWHM.
Kernel::Logger m_log
Logger.
double m_resolutionSigma
Total resolution width.
double resolutionFWHM() const
Access total resolution width.
std::shared_ptr< API::IPeakFunction > m_voigt
Voigt function.
void disableLogging()
Turn off logger.
double m_lorentzFWHM
Lorentz FWHM.
The Logger class is in charge of the publishing messages from the framework through various channels.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.
Simple data structure to store nominal detector values It avoids some functions taking a huge number ...
Simple data structure to store resolution parameter values It avoids some functions taking a huge num...
double dl2
spread in sample-detector distance (m)
double dthe
spread in scattering angle (radians)
double dtof
spread in tof measurement (us)
double dl1
spread in source-sample distance (m)
double dEnLorentz
lorentz width in energy (meV)
double dEnGauss
gaussian width in energy (meV