From 8d3e826fda329906892be5e49ab5cbd6f20a0702 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Fri, 3 Mar 2023 13:51:29 +0100 Subject: [PATCH] DpSim - setBeam --- Sim/Simulation/DepthprobeSimulation.cpp | 7 +------ Sim/Simulation/DepthprobeSimulation.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Sim/Simulation/DepthprobeSimulation.cpp b/Sim/Simulation/DepthprobeSimulation.cpp index faa76850293..a97622835b1 100644 --- a/Sim/Simulation/DepthprobeSimulation.cpp +++ b/Sim/Simulation/DepthprobeSimulation.cpp @@ -67,17 +67,12 @@ void DepthprobeSimulation::setBeamParameters(double lambda, int nbins, double al // beam is initialized with zero-valued angles // Zero-valued incident alpha is required for proper // taking into account beam resolution effects - setBeam(InBeam(beam().intensity(), lambda, 0., 0.).clone()); + m_beam.reset(InBeam(beam().intensity(), lambda, 0., 0.).clone()); if (beam_shape) m_beam->setFootprintFactor(*beam_shape); } -void DepthprobeSimulation::setBeam(Beam* beam) -{ - return m_beam.reset(beam); -} - void DepthprobeSimulation::setzSpan(size_t n_bins, double z_min, double z_max) { if (z_max <= z_min) diff --git a/Sim/Simulation/DepthprobeSimulation.h b/Sim/Simulation/DepthprobeSimulation.h index ebd07784b49..9889f4bc4a1 100644 --- a/Sim/Simulation/DepthprobeSimulation.h +++ b/Sim/Simulation/DepthprobeSimulation.h @@ -58,7 +58,6 @@ public: { return *m_beam; } - void setBeam(Beam* beam); const ICoordSystem* simCoordSystem() const override; -- GitLab