Skip to content
Snippets Groups Projects
Commit 2caea71d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

use them

parent db4364fc
No related branches found
No related tags found
1 merge request!1621Scale (IAxis) now without children
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
OffspecDetector::OffspecDetector(size_t n_phi, double phi_min, double phi_max, size_t n_alpha, OffspecDetector::OffspecDetector(size_t n_phi, double phi_min, double phi_max, size_t n_alpha,
double alpha_min, double alpha_max) double alpha_min, double alpha_max)
: m_axes{std::shared_ptr<IAxis>(newFixedBinAxis("phi_f", n_phi, phi_min, phi_max)), : m_axes{sharedFixedBinAxis("phi_f", n_phi, phi_min, phi_max),
std::shared_ptr<IAxis>(newFixedBinAxis("alpha_f", n_alpha, alpha_min, alpha_max))} sharedFixedBinAxis("alpha_f", n_alpha, alpha_min, alpha_max)}
{ {
} }
......
...@@ -37,8 +37,7 @@ RectangularDetector::RectangularDetector(std::array<std::shared_ptr<IAxis>, 2> a ...@@ -37,8 +37,7 @@ RectangularDetector::RectangularDetector(std::array<std::shared_ptr<IAxis>, 2> a
RectangularDetector::RectangularDetector(size_t nxbins, double width, size_t nybins, double height) RectangularDetector::RectangularDetector(size_t nxbins, double width, size_t nybins, double height)
: RectangularDetector(std::array<std::shared_ptr<IAxis>, 2>{ : RectangularDetector(std::array<std::shared_ptr<IAxis>, 2>{
std::shared_ptr<IAxis>(newFixedBinAxis("u", nxbins, 0.0, width)), sharedFixedBinAxis("u", nxbins, 0.0, width), sharedFixedBinAxis("v", nybins, 0.0, height)})
std::shared_ptr<IAxis>(newFixedBinAxis("v", nybins, 0.0, height))})
{ {
} }
......
...@@ -31,8 +31,8 @@ SphericalDetector::SphericalDetector(std::array<std::shared_ptr<IAxis>, 2> axes) ...@@ -31,8 +31,8 @@ SphericalDetector::SphericalDetector(std::array<std::shared_ptr<IAxis>, 2> axes)
SphericalDetector::SphericalDetector(size_t n_phi, double phi_min, double phi_max, size_t n_alpha, SphericalDetector::SphericalDetector(size_t n_phi, double phi_min, double phi_max, size_t n_alpha,
double alpha_min, double alpha_max) double alpha_min, double alpha_max)
: SphericalDetector(std::array<std::shared_ptr<IAxis>, 2>{ : SphericalDetector(std::array<std::shared_ptr<IAxis>, 2>{
std::shared_ptr<IAxis>(newFixedBinAxis("phi_f", n_phi, phi_min, phi_max)), sharedFixedBinAxis("phi_f", n_phi, phi_min, phi_max),
std::shared_ptr<IAxis>(newFixedBinAxis("alpha_f", n_alpha, alpha_min, alpha_max))}) sharedFixedBinAxis("alpha_f", n_alpha, alpha_min, alpha_max)})
{ {
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment