25 auto phiAxis = addProperty<BasicAxisItem>(
P_PHI_AXIS);
27 phiAxis->setLowerBound(-1.0);
28 phiAxis->setUpperBound(1.0);
34 auto alphaAxis = addProperty<BasicAxisItem>(
P_ALPHA_AXIS);
36 alphaAxis->setLowerBound(0.0);
37 alphaAxis->setUpperBound(2.0);
41 ->setToolTip(
"Low edge of first alpha-bin (in deg)");
43 ->setToolTip(
"Upper edge of last alpha-bin (in deg)");
58 return std::make_unique<SphericalDetector>(n_x, x_min, x_max, n_y, y_min, y_max);
Defines various axis items.
Defines class SphericalDetectorItem.
Defines class SphericalDetector.
Defines some unit conversion factors and other constants in namespace Units.
void setBinCount(int value)
static const QString P_NBINS
static const QString P_MAX_DEG
static const QString P_TITLE
static const QString P_MIN_DEG
void register_resolution_function()
void setXSize(int nx) override
sets the size of x-axis of the detector
int xSize() const override
returns the size of x-axis of the detector
double axesToDomainUnitsFactor() const override
Scales the values provided by axes (to perform deg->rad conversion on the way to domain).
static const QString P_ALPHA_AXIS
const BasicAxisItem * alphaAxisItem() const
int ySize() const override
returns the size of y-axis of the detector
const BasicAxisItem * phiAxisItem() const
static const QString P_PHI_AXIS
void setYSize(int ny) override
sets the size of y-axis of the detector
std::unique_ptr< IDetector2D > createDomainDetector() const override
double deg2rad(double angle)
static constexpr double deg