Skip to content
Snippets Groups Projects

cleanup while preparing for replacement of SimulationAreaDetector

Merged Wuttke, Joachim requested to merge j.724h into main
Files
12
@@ -35,11 +35,6 @@ FlatDetector::FlatDetector(size_t nxbins, size_t nybins, double width, double he
, m_distance(distance)
, m_ki(beam.ki())
{
std::cout << "DEBUG FD1" << std::endl;
ASSERT(nxbins > 0);
ASSERT(nybins > 0);
ASSERT(width > 0);
ASSERT(height > 0);
ASSERT(m_distance > 0);
ASSERT(!pitch); // TODO: implement
ASSERT(!yaw); // TODO: implement
@@ -55,9 +50,8 @@ FlatDetector::FlatDetector(size_t nxbins, size_t nybins, double width, double he
m_normal_to_detector = m_distance * beam.k_reflected().unit_or_throw();
else
ASSERT_NEVER;
ASSERT(false);
std::cout << "DEBUG FD5" << std::endl;
const R3 ym_unit(0.0, -1.0, 0.0);
const double d2 = m_normal_to_detector.dot(m_normal_to_detector);
const R3 u_direction = d2 * ym_unit - ym_unit.dot(m_normal_to_detector) * m_normal_to_detector;
@@ -67,10 +61,7 @@ FlatDetector::FlatDetector(size_t nxbins, size_t nybins, double width, double he
Scale* x = newEquiDivision("u (mm)", nxbins, 0.0, width);
Scale* y = newEquiDivision("v (mm)", nybins, 0.0, height);
Frame* f = new Frame(x, y);
std::cout << "DEBUG FD8" << std::endl;
setFrame(f);
ASSERT(frame().rank() == 2);
std::cout << "DEBUG FD9" << std::endl;
}
FlatDetector::FlatDetector(const FlatDetector& other) = default;
Loading