35 const auto &samplepos = ws->getInstrument()->getSample()->getPos();
36 const auto &sourcepos = ws->getInstrument()->getSource()->getPos();
37 double l1 = samplepos.distance(sourcepos);
double m_constShift
Cached L1, Ei dependent const shift.
TimeAtSampleStrategyDirect(const std::shared_ptr< const Mantid::API::MatrixWorkspace > &ws, double ei)
Constructor.
Correction calculate(const size_t &workspace_index) const override
Calculate corrections to get a Time at Sample for a DG instrument.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
static constexpr double NeutronMass
Mass of the neutron in kg.
static constexpr double meV
1 meV in Joules.
The Correction struct to be applied as factor * TOF + offset offset:: TOF offset in unit of TOF facto...