From c9b313ffd0049565cf397e02bdab54acd90e8d15 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 8 Mar 2023 14:38:36 +0100 Subject: [PATCH] .. --- Sim/Simulation/DepthprobeSimulation.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Sim/Simulation/DepthprobeSimulation.cpp b/Sim/Simulation/DepthprobeSimulation.cpp index c73f613ab1d..81a04f0052f 100644 --- a/Sim/Simulation/DepthprobeSimulation.cpp +++ b/Sim/Simulation/DepthprobeSimulation.cpp @@ -70,29 +70,8 @@ void DepthprobeSimulation::setBeamParametersTmp(double lambda, int nbins, double m_alpha_axis = std::make_unique<FixedBinAxis>("alpha_i", static_cast<size_t>(nbins), alpha_i_min, alpha_i_max); - if (lambda <= 0.0) - throw std::runtime_error( - "Error in DepthprobeSimulation::setBeamParameters: wavelength must be positive."); - if (m_alpha_axis->min() < 0.0) - throw std::runtime_error( - "Error in DepthprobeSimulation::setBeamParameters: minimum value on " - "angle axis is negative."); - if (m_alpha_axis->min() >= m_alpha_axis->max()) - throw std::runtime_error( - "Error in DepthprobeSimulation::setBeamParameters: alpha bounds are not sorted."); - if (m_alpha_axis->size() == 0) - throw std::runtime_error( - "Error in DepthprobeSimulation::setBeamParameters: angle axis is empty"); - m_scan.reset(new AlphaScan(*m_alpha_axis)); - /* - m_scan->setWavelength(lambda); - m_scan->setFootprint(beam_shape); - */ - // beam is initialized with zero-valued angles - // Zero-valued incident alpha is required for proper - // taking into account beam resolution effects m_beam.reset(InBeam(beam().intensity(), lambda, 0., 0.).clone()); if (beam_shape) -- GitLab