Mantid
|
TimeAtSampleStrategyElastic : Time at sample stragegy for elastic scattering. More...
#include <TimeAtSampleStrategyElastic.h>
Public Member Functions | |
Correction | calculate (const size_t &workspace_index) const override |
Calculate correction. More... | |
TimeAtSampleStrategyElastic (std::shared_ptr< const Mantid::API::MatrixWorkspace > ws) | |
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 | |
const Kernel::V3D | m_beamDir |
const API::SpectrumInfo & | m_spectrumInfo |
std::shared_ptr< const Mantid::API::MatrixWorkspace > | m_ws |
TimeAtSampleStrategyElastic : Time at sample stragegy for elastic scattering.
Definition at line 23 of file TimeAtSampleStrategyElastic.h.
Mantid::Algorithms::TimeAtSampleStrategyElastic::TimeAtSampleStrategyElastic | ( | std::shared_ptr< const Mantid::API::MatrixWorkspace > | ws | ) |
Constructor.
Definition at line 24 of file TimeAtSampleStrategyElastic.cpp.
|
overridevirtual |
Calculate correction.
workspace_index |
Implements Mantid::Algorithms::TimeAtSampleStrategy.
Definition at line 33 of file TimeAtSampleStrategyElastic.cpp.
References Mantid::API::SpectrumInfo::isMonitor(), Mantid::API::SpectrumInfo::l1(), Mantid::API::SpectrumInfo::l2(), m_beamDir, m_spectrumInfo, Mantid::API::SpectrumInfo::position(), Mantid::Kernel::V3D::scalar_prod(), and Mantid::API::SpectrumInfo::sourcePosition().
Referenced by Mantid::Algorithms::RebinByTimeAtSample::doHistogramming().
|
private |
Definition at line 31 of file TimeAtSampleStrategyElastic.h.
Referenced by calculate().
|
private |
Definition at line 30 of file TimeAtSampleStrategyElastic.h.
Referenced by calculate().
|
private |
Definition at line 29 of file TimeAtSampleStrategyElastic.h.