29 double alpha_min,
double alpha_max)
47 return Axes::Units::RADIANS;
57 const Bin1D alpha_bin = alpha_axis.
getBin(alpha_index);
71 "SphericalDetector::getAxisName(size_t index) -> Error! index > 1");
80 double phi = beam.
getPhi();
Defines class IDetectorResolution.
Defines M_PI and some more mathematical constants.
Defines class SimulationElement.
Defines class SphericalDetector.
Defines class SphericalPixel.
Defines some unit conversion factors and other constants in namespace Units.
Beam defined by wavelength, direction and intensity.
Interface for one-dimensional axes.
virtual bool contains(double value) const
Returns true if axis contains given point.
virtual size_t findClosestIndex(double value) const =0
find bin index which is best match for given value
virtual Bin1D getBin(size_t index) const =0
retrieve a 1d bin for the given index
Abstract 2D detector interface.
void setDetectorParameters(size_t n_x, double x_min, double x_max, size_t n_y, double y_min, double y_max)
Sets detector parameters using angle ranges.
size_t getGlobalIndex(size_t x, size_t y) const
Calculate global index from two axis indices.
size_t dimension() const
Returns actual dimensionality of the detector (number of defined axes)
size_t axisBinIndex(size_t index, size_t selected_axis) const
Calculate axis index for given global index.
size_t totalSize() const
Returns total number of pixels.
const IAxis & getAxis(size_t index) const
void setName(const std::string &name)
Interface for a function that maps [0,1]x[0,1] to the kvectors in a pixel.
A spherical detector with axes and resolution function.
std::string axisName(size_t index) const override
Returns the name for the axis with given index.
size_t indexOfSpecular(const Beam &beam) const override
Returns index of pixel that contains the specular wavevector.
IPixel * createPixel(size_t index) const override
Creates an IPixel for the given OutputData object and index.
Axes::Units defaultAxesUnits() const override
return default axes units
SphericalDetector * clone() const override
A pixel in a SphericalDetector.