25 : m_ws(
std::move(ws)), m_spectrumInfo(m_ws->spectrumInfo()),
26 m_beamDir(m_ws->getInstrument()->getReferenceFrame()->vecPointingAlongBeam()) {}
40 scale = std::abs(L1s / L1m);
bool isMonitor(const size_t index) const
Returns true if the detector(s) associated with the spectrum are monitors.
Kernel::V3D sourcePosition() const
Returns the source position.
Kernel::V3D position(const size_t index) const
Returns the position of the spectrum with given index.
double l2(const size_t index) const
Returns L2 (distance from sample to spectrum).
double l1() const
Returns L1 (distance from source to sample).
TimeAtSampleStrategyElastic(std::shared_ptr< const Mantid::API::MatrixWorkspace > ws)
Constructor.
Correction calculate(const size_t &workspace_index) const override
Calculate correction.
const Kernel::V3D m_beamDir
const API::SpectrumInfo & m_spectrumInfo
constexpr double scalar_prod(const V3D &v) const noexcept
Calculates the cross product.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
The Correction struct to be applied as factor * TOF + offset offset:: TOF offset in unit of TOF facto...