11#include "MantidHistogramData/Histogram.h"
19Kernel::Logger
g_log(
"WorkspaceBoundingBox");
28 const double beamRadius,
const bool ignoreDirectBeam,
const double cenX,
const double cenY);
52 void setBounds(
const double xMin,
const double xMax,
const double yMin,
const double yMax);
IPeaksWorkspace_sptr workspace
std::map< DeltaEMode::Type, std::string > index
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
bool centerOfMassWithinBeamCenter()
This only has effect if the integral is ignoring the beam center as a whole.
API::MatrixWorkspace_const_sptr m_workspace
bool symmetricRegionContainsPoint(double x, double y)
Checks if a given x/y coord is within the bounding box.
void initOverallRangeAndFindFirstCenter()
void updateMinMax(const std::size_t index)
Compare current mins and maxs to the coordinates of the spectrum at index expnd mins and maxs to incl...
void prepareCenterCalculation()
Copy the current center to the previous and update the x/y range for overall integration.
void normalizePosition(const double totalCounts)
Perform normalization on x/y coords over given values.
void setBounds(const double xMin, const double xMax, const double yMin, const double yMax)
Update the symmetric (in x and y separately) range of space that is symmetric around the beam center.
bool includeInIntegration(const std::size_t index)
Checks to see if spectrum at index should be included in the integration.
double m_integrationRadiusSq
double updatePositionAndReturnCount(const std::size_t index)
Sets member variables x/y to new x/y based on spectrum info and historgram data at the given index.
double getCenterY() const
double calculateRadiusY() const
bool isValidIndex(const std::size_t index) const
Performs checks on the spectrum located at index to determine if it is acceptable to be operated on.
double distanceFromPrevious() const
double getCenterX() const
void setCenterPrev(const double x, const double y)
void findNewCenterPosition()
void resetIntermediatePosition()
double calculateRadiusX() const
double countsValue(const std::size_t index) const
const API::SpectrumInfo * m_spectrumInfo
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Kernel::Logger g_log("DetermineSpinStateOrder")
Helper class which provides the Collimation Length for SANS instruments.