12namespace MDAlgorithms {
33 return "Apply magnetic form factor correction to MD events by dividing signal with F(Q)^2";
42 declareProperty(
"IonName",
"Cu2", std::make_shared<StringListValidator>(keys),
43 "The name of the ion: an element symbol with a number "
44 "indicating the valence, e.g. Fe2 for Fe2+ / Fe(II)");
58 return 1. / (ff * ff);
#define DECLARE_ALGORITHM(classname)
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
A property class for workspaces.
ListValidator is a validator that requires the value of a property to be one of a defined list of pos...
MANTID_KERNEL_DLL std::vector< std::string > getMagneticIonList()
Returns a list of all ions.
MANTID_KERNEL_DLL const MagneticIon & getMagneticIon(const std::string &symbol, const uint16_t charge)
Returns the magnetic ion for the given symbol and charge.
Helper class which provides the Collimation Length for SANS instruments.
Describes the direction (within an algorithm) of a Property.
double analyticalFormFactor(const double qsqr) const
Returns the value of the form factor in the dipole approximation.