Mantid
|
TimeAtSampleStrategyDirect : Determine the Time at Sample corrections for a Direct Geometry instrument. More...
#include <TimeAtSampleStrategyDirect.h>
Public Member Functions | |
Correction | calculate (const size_t &workspace_index) const override |
Calculate corrections to get a Time at Sample for a DG instrument. More... | |
TimeAtSampleStrategyDirect (const std::shared_ptr< const Mantid::API::MatrixWorkspace > &ws, double ei) | |
Constructor. More... | |
Public Member Functions inherited from Mantid::Algorithms::TimeAtSampleStrategy | |
virtual Correction | calculate (const size_t &workspace_index) const =0 |
virtual | ~TimeAtSampleStrategy ()=default |
Private Attributes | |
double | m_constShift |
Cached L1, Ei dependent const shift. More... | |
TimeAtSampleStrategyDirect : Determine the Time at Sample corrections for a Direct Geometry instrument.
Definition at line 22 of file TimeAtSampleStrategyDirect.h.
Mantid::Algorithms::TimeAtSampleStrategyDirect::TimeAtSampleStrategyDirect | ( | const std::shared_ptr< const Mantid::API::MatrixWorkspace > & | ws, |
double | ei | ||
) |
Constructor.
Definition at line 28 of file TimeAtSampleStrategyDirect.cpp.
References m_constShift, Mantid::PhysicalConstants::meV, and Mantid::PhysicalConstants::NeutronMass.
|
overridevirtual |
Calculate corrections to get a Time at Sample for a DG instrument.
Implements Mantid::Algorithms::TimeAtSampleStrategy.
Definition at line 47 of file TimeAtSampleStrategyDirect.cpp.
|
private |
Cached L1, Ei dependent const shift.
Definition at line 29 of file TimeAtSampleStrategyDirect.h.
Referenced by TimeAtSampleStrategyDirect().