diff --git a/Sim/Simulation/DepthprobeSimulation.cpp b/Sim/Simulation/DepthprobeSimulation.cpp
index faa768502932b3f4d06e0f520bc3094ec07858c0..a97622835b10ea27d7d4feafd0aeb3037a909704 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 ebd07784b49ca7d4f53ae9b5269a8a0d0b4b7cff..9889f4bc4a1280c9d82a15afaffa197f2bb103f9 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;