10#include "MantidAlgorithms/DllConfig.h"
25 const std::string name()
const override;
27 const std::string
summary()
const override {
28 return "Sum of all the counts inside a ring against the scattering angle "
32 int version()
const override;
33 const std::vector<std::string>
seeAlso()
const override {
return {
"RingProfile",
"RadiusSum"}; }
34 const std::string category()
const override;
42 static void centerIsInsideLimits(
const std::vector<double> ¢re,
const std::vector<double> &boundaries);
48 std::vector<double> processInstrumentRadiusSum();
49 std::vector<double> processNumericImageRadiusSum();
51 void cacheInputPropertyValues();
52 void inputValidationSanityCheck();
53 void numBinsIsReasonable();
54 std::vector<double> getBoundariesOfInputWorkspace();
56 double getMaxDistance(
const Kernel::V3D ¢re,
const std::vector<double> &boundary_limits);
58 void setUpOutputWorkspace(
const std::vector<double> &values);
66 double min_radius = 0.0, max_radius = 0.0;
95 return static_cast<int>(((distance - min_radius) * num_bins) / (max_radius - min_radius));
98 void normalizeOutputByRadius(std::vector<double> &values,
double exp_power);
Base class from which all concrete algorithm classes should be derived.
int fromDistanceToBin(double distance)
Return the bin position for a given distance From the input, it is defined the limits of distances as...
API::MatrixWorkspace_sptr inputWS
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.