Skip to content
Snippets Groups Projects
Commit 8b090f94 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

clone ISpecularScan pol members

parent 7c0790ac
No related branches found
No related tags found
1 merge request!912hold polarization in ISpecularScan
...@@ -78,6 +78,10 @@ AlphaScan* AlphaScan::clone() const ...@@ -78,6 +78,10 @@ AlphaScan* AlphaScan::clone() const
result->setFootprintFactor(m_footprint.get()); result->setFootprintFactor(m_footprint.get());
result->setWavelengthResolution(*m_wl_resolution); result->setWavelengthResolution(*m_wl_resolution);
result->setAngleResolution(*m_inc_resolution); result->setAngleResolution(*m_inc_resolution);
if (m_beamPolarization)
result->m_beamPolarization.reset(new R3(*m_beamPolarization));
if (m_polAnalyzer)
result->m_polAnalyzer.reset(new PolFilter(*m_polAnalyzer));
return result; return result;
} }
......
...@@ -50,6 +50,11 @@ QzScan* QzScan::clone() const ...@@ -50,6 +50,11 @@ QzScan* QzScan::clone() const
auto* result = new QzScan(*m_qs); auto* result = new QzScan(*m_qs);
result->setQResolution(*m_resolution); result->setQResolution(*m_resolution);
result->setOffset(m_offset); result->setOffset(m_offset);
// TODO merge with same code in AlphaScan
if (m_beamPolarization)
result->m_beamPolarization.reset(new R3(*m_beamPolarization));
if (m_polAnalyzer)
result->m_polAnalyzer.reset(new PolFilter(*m_polAnalyzer));
return result; return result;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment