Mantid
|
StructureFactorCalculator. More...
#include <StructureFactorCalculator.h>
Public Member Functions | |
virtual StructureFactor | getF (const Kernel::V3D &hkl) const =0 |
In implementations this method should return the structure factor for the specified HKL. More... | |
virtual std::vector< StructureFactor > | getFs (const std::vector< Kernel::V3D > &hkls) const |
Returns structure factors for each HKL in the container. More... | |
virtual double | getFSquared (const Kernel::V3D &hkl) const |
Returns F^2 for the given HKL, calling StructureFactorCalculator::getF(). More... | |
virtual std::vector< double > | getFsSquared (const std::vector< Kernel::V3D > &hkls) const |
Returns structure factors for each HKL in the container. More... | |
void | setCrystalStructure (const CrystalStructure &crystalStructure) |
Sets the crystal structure for which to calculate structure factors. More... | |
virtual | ~StructureFactorCalculator ()=default |
Protected Member Functions | |
virtual void | crystalStructureSetHook (const CrystalStructure &crystalStructure) |
This function is called from StructureFactorCalculator::setCrystalStructure() and can be overriden to perform additional actions. More... | |
This is a base class for concrete structure factor calculators. It is used to logically separate this calculation from CrystalStructure so that different methods of calculation can be used. For actual implementations please consult the available sub-classes.
@author Michael Wedel, ESS @date 05/09/2015
Definition at line 25 of file StructureFactorCalculator.h.
|
virtualdefault |
|
protectedvirtual |
This function is called from StructureFactorCalculator::setCrystalStructure() and can be overriden to perform additional actions.
Reimplemented in Mantid::Geometry::StructureFactorCalculatorSummation.
Definition at line 74 of file StructureFactorCalculator.cpp.
References UNUSED_ARG.
Referenced by setCrystalStructure().
|
pure virtual |
In implementations this method should return the structure factor for the specified HKL.
Implemented in Mantid::Geometry::StructureFactorCalculatorSummation.
Referenced by getFs(), and getFSquared().
|
virtual |
Returns structure factors for each HKL in the container.
The default implementation uses StructureFactorCalculator::getF() to get the structure factor for each HKL. This behavior can be overriden in sub-classes for example to implement this in a more efficient way.
hkls | :: Vector of HKLs. |
Definition at line 43 of file StructureFactorCalculator.cpp.
References getF().
|
virtual |
Returns F^2 for the given HKL, calling StructureFactorCalculator::getF().
Definition at line 27 of file StructureFactorCalculator.cpp.
References getF().
Referenced by getFsSquared().
|
virtual |
Returns structure factors for each HKL in the container.
The default implementation uses StructureFactorCalculator::getFSquared() with each HKL. This behavior can be overriden in sub-classes for example to implement this in a more efficient way.
hkls | :: Vector of HKLs. |
Definition at line 62 of file StructureFactorCalculator.cpp.
References getFSquared().
void Mantid::Geometry::StructureFactorCalculator::setCrystalStructure | ( | const CrystalStructure & | crystalStructure | ) |
Sets the crystal structure for which to calculate structure factors.
Additionally StructureFactorCalculator::crystalStructureSetHook() is called with the CrystalStructure. This function may be re-implemented by concrete structure factor calculators to perform other necessary actions that involve the crystal structure (for example extracting and storing members of it).
crystalStructure | :: Crystal structure for calculations. |
Definition at line 22 of file StructureFactorCalculator.cpp.
References crystalStructureSetHook().