24 : m_corner_pos(std::move(corner_pos)), m_width(std::move(
width)), m_height(std::move(
height))
28 m_solid_angle = solid_angle_value <= 0.0 ? 1.0 : solid_angle_value;
Defines class IDetectorResolution.
Defines M_PI and some more mathematical constants.
Defines class RectangularPixel.
Defines class RegionOfInterest.
Defines class SimulationElement.
Defines some unit conversion factors and other constants in namespace Units.
BasicVector3D< double > kvector_t
auto dot(const BasicVector3D< U > &v) const
Returns dot product of vectors (antilinear in the first [=self] argument).
BasicVector3D< T > unit() const
Returns unit vector in direction of this. Throws for null vector.
double mag() const
Returns magnitude of the vector.
auto cross(const BasicVector3D< U > &v) const
Returns cross product of vectors (linear in both arguments).
A pixel in a RectangularDetector.
kvector_t getK(double x, double y, double wavelength) const override
kvector_t getPosition(double x, double y) const
double getSolidAngle() const override
kvector_t normalizeLength(const kvector_t direction, double length) const
RectangularPixel * clone() const override
double calculateSolidAngle() const
RectangularPixel(kvector_t corner_pos, kvector_t width, kvector_t height)
double getIntegrationFactor(double x, double y) const override
RectangularPixel * createZeroSizePixel(double x, double y) const override
const double wavelength(0.154)