10#include "MantidAlgorithms/DllConfig.h"
20namespace HistogramData {
39 const std::string name()
const override;
41 const std::string
summary()
const override {
42 return "Corrects for detector efficiency. The correction factor is "
43 "calculated using an instrument specific formula as a function "
44 "of the final neutron energy E_f=E_i-E. Note that the formula "
45 "is implemented only for a limited number of TOF instruments.";
48 int version()
const override;
49 const std::vector<std::string>
seeAlso()
const override {
return {
"DetectorEfficiencyCor"}; }
50 const std::string category()
const override;
55 void retrieveProperties();
56 void correctHistogram(
const size_t index,
const double eff0,
double &e,
const mu::Parser &parser);
58 double evaluate(
const mu::Parser &parser)
const;
60 mu::Parser generateParser(
const std::string &formula,
double *e)
const;
62 std::string retrieveFormula(
const size_t workspaceIndex);
std::map< DeltaEMode::Type, std::string > index
Base class from which all concrete algorithm classes should be derived.
DetectorEfficiencyCorUser :
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
API::MatrixWorkspace_sptr m_outputWS
The output workspace, maybe the same as the input one.
API::MatrixWorkspace_const_sptr m_inputWS
The user selected (input) workspace.
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.