Mantid
|
#include <SANSCollimationLengthEstimator.h>
Public Member Functions | |
double | provideCollimationLength (const Mantid::API::MatrixWorkspace_sptr &workspace) |
Provide the collimation length which is associated with the instrument. More... | |
Private Member Functions | |
double | getCollimationLengthWithGuides (const Mantid::API::MatrixWorkspace_sptr &inOutWS, const double L1, const double collimationLengthCorrection) const |
This extraction strategy gets applied when guides are used to calculate the collimation length. More... | |
double | getGuideValue (Mantid::Kernel::Property *prop) const |
Extracts the value of the guide. More... | |
Definition at line 16 of file SANSCollimationLengthEstimator.h.
|
private |
This extraction strategy gets applied when guides are used to calculate the collimation length.
The instrument parameter file contains the information about the number of guides to use. The guide data itself is fetched from the sample logs.
inOutWS | a matrix workspace |
L1 | the distance between sample and source |
collimationLengthCorrection | The correction to get the collimation length |
Definition at line 99 of file SANSCollimationLengthEstimator.cpp.
References getGuideValue(), and std::to_string().
Referenced by provideCollimationLength().
|
private |
Extracts the value of the guide.
prop | a property |
Definition at line 171 of file SANSCollimationLengthEstimator.cpp.
References Mantid::API::g_log, and Mantid::Kernel::Logger::warning().
Referenced by getCollimationLengthWithGuides().
double Mantid::Algorithms::SANSCollimationLengthEstimator::provideCollimationLength | ( | const Mantid::API::MatrixWorkspace_sptr & | workspace | ) |
Provide the collimation length which is associated with the instrument.
workspace | the input workspace |
Definition at line 46 of file SANSCollimationLengthEstimator.cpp.
References Mantid::Kernel::Logger::error(), Mantid::API::g_log, getCollimationLengthWithGuides(), Mantid::Kernel::V3D::norm(), Mantid::Kernel::Logger::notice(), and workspace.