10#include "MantidAlgorithms/DllConfig.h"
13#include <boost/optional/optional.hpp>
19class DetectorGridDefinition;
24namespace HistogramData {
31namespace SparseInstrument {
41 const size_t wavelengthPoints);
44 const size_t wavelengthPoints);
45MANTID_ALGORITHMS_DLL
double greatCircleDistance(
const double lat1,
const double long1,
const double lat2,
50 const std::array<size_t, 4> &indices);
51MANTID_ALGORITHMS_DLL HistogramData::Histogram
53 const std::vector<std::vector<boost::optional<size_t>>> &indices);
54MANTID_ALGORITHMS_DLL std::unique_ptr<const Algorithms::DetectorGridDefinition>
Base MatrixWorkspace Abstract Class.
DetectorGridDefinition is a helper class for building the sparse instrument in MonteCarloAbsorption.
ReferenceFrame : Holds reference frame information from the geometry description file.
std::unique_ptr< MatrixWorkspace > MatrixWorkspace_uptr
unique pointer to Mantid::API::MatrixWorkspace
MANTID_ALGORITHMS_DLL std::array< double, 4 > inverseDistanceWeights(const std::array< double, 4 > &distances)
MANTID_ALGORITHMS_DLL std::pair< double, double > geographicalAngles(const Kernel::V3D &p, const Geometry::ReferenceFrame &refFrame)
MANTID_ALGORITHMS_DLL std::tuple< double, double > extremeWavelengths(const API::MatrixWorkspace &ws)
MANTID_ALGORITHMS_DLL API::MatrixWorkspace_uptr createSparseWS(const API::MatrixWorkspace &modelWS, const Algorithms::DetectorGridDefinition &grid, const size_t wavelengthPoints)
MANTID_ALGORITHMS_DLL HistogramData::Histogram interpolateFromDetectorGrid(const double lat, const double lon, const API::MatrixWorkspace &ws, const std::array< size_t, 4 > &indices)
MANTID_ALGORITHMS_DLL std::tuple< double, double, double, double > extremeAngles(const API::MatrixWorkspace &ws)
Defines functions and utilities to create and deal with sparse instruments.
MANTID_ALGORITHMS_DLL HistogramData::Histogram bilinearInterpolateFromDetectorGrid(const double lat, const double lon, const API::MatrixWorkspace &ws, const std::vector< std::vector< boost::optional< size_t > > > &indices)
MANTID_ALGORITHMS_DLL double greatCircleDistance(const double lat1, const double long1, const double lat2, const double long2)
MANTID_ALGORITHMS_DLL std::unique_ptr< const Algorithms::DetectorGridDefinition > createDetectorGridDefinition(const API::MatrixWorkspace &modelWS, const size_t rows, const size_t columns)
MANTID_ALGORITHMS_DLL HistogramData::Histogram modelHistogram(const API::MatrixWorkspace &modelWS, const size_t wavelengthPoints)
Helper class which provides the Collimation Length for SANS instruments.