13namespace DataObjects {
16namespace MDAlgorithms {
24 const std::string name()
const override;
25 int version()
const override;
26 const std::vector<std::string>
seeAlso()
const override {
27 return {
"MDNormSCDPreprocessIncoherent",
"MDNormDirectSC"};
29 const std::string category()
const override;
30 const std::string summary()
const override;
37 std::string inputEnergyMode()
const;
41 std::vector<coord_t> getValuesFromOtherDimensions(
bool &skipNormalization, uint16_t expInfoIndex = 0)
const;
43 bool &skipNormalization);
44 void cacheDimensionXValues();
45 void calculateNormalization(
const std::vector<coord_t> &otherValues,
const Kernel::Matrix<coord_t> &affineTrans,
46 uint16_t expInfoIndex);
47 void calcIntegralsForIntersections(
const std::vector<double> &xValues,
const API::MatrixWorkspace &integrFlux,
48 size_t sp, std::vector<double> &yValues)
const;
49 void calculateIntersections(std::vector<std::array<double, 4>> &intersections,
const double theta,
const double phi);
66 std::vector<double>
m_hX, m_kX, m_lX;
74 bool m_accumulate{
false};
Base MatrixWorkspace Abstract Class.
MDNormSCD : Generate MD normalization for single crystal diffraction.
DataObjects::MDHistoWorkspace_sptr m_normWS
Normalization workspace.
bool m_hIntegrated
flag for integrated h,k,l dimensions
Mantid::Kernel::DblMatrix m_rubw
(2*PiRUBW)^-1
std::vector< double > m_hX
cached X values along dimensions h,k,l
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
uint16_t m_numExptInfos
number of experiment infos
size_t m_hIdx
index of h,k,l dimensions in the output workspaces
Kernel::V3D m_samplePos
Sample position.
API::IMDEventWorkspace_sptr m_inputWS
Input workspace.
Kernel::V3D m_beamDir
Beam direction.
std::string convention
ki-kf for Inelastic convention; kf-ki for Crystallography convention
Abstract Algorithm class that will be used by: BinMD and SliceMD and shares code for getting a slice ...
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
Helper class which provides the Collimation Length for SANS instruments.
float coord_t
Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace,...