12#include "MantidAlgorithms/DllConfig.h"
27 const std::string name()
const override;
28 int version()
const override;
29 const std::vector<std::string>
seeAlso()
const override {
return {}; }
30 const std::string category()
const override;
31 const std::string summary()
const override;
37 std::map<std::string, std::string> validateInputs()
override;
42 void createCalTableFromExisting();
43 void createCalTableNew();
44 void createInformationWorkspaces();
45 std::tuple<double, double, double> getDSpacingToTof(
const std::set<detid_t> &detIds);
46 std::vector<double> dSpacingWindows(
const std::vector<double> ¢res,
const std::vector<double> &widthMax);
47 std::vector<double> getTOFminmax(
const double difc,
const double difa,
const double tzero);
48 void setCalibrationValues(
const detid_t detid,
const double difc,
const double difa,
const double tzero);
49 void fitDIFCtZeroDIFA_LM(
const std::vector<double> &d,
const std::vector<double> &tof,
50 const std::vector<double> &height2,
double &difc,
double &t0,
double &difa);
54 std::pair<API::MatrixWorkspace_sptr, API::MatrixWorkspace_sptr>
56 const std::vector<double> &peakWindowMaxInDSpacing);
69 double m_tzeroMin{0.};
70 double m_tzeroMax{0.};
73 bool m_hasDasIds{
false};
74 size_t m_numberMaxParams{0};
Base class from which all concrete algorithm classes should be derived.
PDCalibration : TODO: DESCRIPTION.
std::map< detid_t, size_t > m_detidToRow
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
PDCalibration()
Constructor.
std::vector< double > m_peaksInDspacing
~PDCalibration()
Destructor.
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
void MANTID_KERNEL_DLL rebin(const std::vector< double > &xold, const std::vector< double > &yold, const std::vector< double > &eold, const std::vector< double > &xnew, std::vector< double > &ynew, std::vector< double > &enew, bool distribution, bool addition=false)
Rebins data according to a new output X array.
Helper class which provides the Collimation Length for SANS instruments.