13#include "MantidAlgorithms/DllConfig.h"
64 const std::string
name()
const override {
return "ModeratorTzero"; }
66 const std::string
summary()
const override {
67 return "Corrects the time of flight of an indirect geometry instrument by "
68 "a time offset that is dependent on the energy of the neutron after "
69 "passing through the moderator.";
73 int version()
const override {
return (1); }
74 const std::vector<std::string>
seeAlso()
const override {
return {
"ModeratorTzeroLinear"}; }
76 const std::string
category()
const override {
return "CorrectionFunctions\\InstrumentCorrections"; }
78 void setFormula(
const std::string &formula);
88 void execEvent(
const std::string &emode);
91 double CalculateT0indirect(
const double &tof,
const double &L1,
const double &t2,
double &E1, mu::Parser &parser);
94 double CalculateT0elastic(
const double &tof,
const double &L12,
double &E1, mu::Parser &parser);
Base class from which all concrete algorithm classes should be derived.
const double m_t1min
tof limit for fast neutrons
const std::string summary() const override
Summary of algorithms purpose.
std::string m_formula
string containing the heuristic regression for the moderator emission time versus neutron energy
double m_tolTOF
tolerance for calculating E1, in micro-seconds
int version() const override
Algorithm's version.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const double m_convfactor
size_t m_niter
Maximum number of iterations when calculating the emission time from the moderator.
const std::string name() const override
Algorithm's name.
const std::string category() const override
Algorithm's category for identification.
Helper class which provides the Collimation Length for SANS instruments.