diff --git a/Device/Detector/Detector2D.cpp b/Device/Detector/Detector2D.cpp index d4885b70e74f9449b9b31946cfbc3a0bde29573d..71cd41c65ac97087e5889a1ef224a725f568ce7e 100644 --- a/Device/Detector/Detector2D.cpp +++ b/Device/Detector/Detector2D.cpp @@ -26,11 +26,10 @@ using std::numbers::pi; Detector2D::Detector2D(double phi_span, double alpha_span, size_t n_phi, size_t n_alpha, double phi_center, double alpha_center) - : IDetector( - new Frame(newEquiDivision("phi_f (rad)", n_phi, phi_center - phi_span / 2, - phi_center + phi_span / 2), - newEquiDivision("alpha_f (rad)", n_alpha, alpha_center - alpha_span / 2, - alpha_center + alpha_span / 2))) + : IDetector(new Frame( + newEquiDivision("phi_f (rad)", n_phi, phi_center - phi_span / 2, phi_center + phi_span / 2), + newEquiDivision("alpha_f (rad)", n_alpha, alpha_center - alpha_span / 2, + alpha_center + alpha_span / 2))) { ASSERT(-pi / 2 < axis(0).min() && axis(0).max() < +pi / 2); ASSERT(-pi / 2 < axis(1).min() && axis(1).max() < +pi / 2); diff --git a/Device/Detector/Detector2D.h b/Device/Detector/Detector2D.h index 954bf7603b37c5657f21cb34409dfef3ff3689c5..de7c57323c172f710c916e78e31c640c3167855e 100644 --- a/Device/Detector/Detector2D.h +++ b/Device/Detector/Detector2D.h @@ -21,8 +21,8 @@ class Pixel; class Detector2D : public IDetector { public: - Detector2D(double phi_span, double alpha_span, size_t n_phi, size_t n_alpha, - double phi_center, double alpha_center); + Detector2D(double phi_span, double alpha_span, size_t n_phi, size_t n_alpha, double phi_center, + double alpha_center); ~Detector2D() override = default;