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

no need for double negation with unique_ptr

parent a8a01cfa
No related branches found
No related tags found
1 merge request!912hold polarization in ISpecularScan
Pipeline #65633 failed
...@@ -105,7 +105,7 @@ const MaskPattern* DetectorMask::patternAt(size_t iMask) const ...@@ -105,7 +105,7 @@ const MaskPattern* DetectorMask::patternAt(size_t iMask) const
void DetectorMask::process_masks() void DetectorMask::process_masks()
{ {
m_masked->setAllTo(false); m_masked->setAllTo(false);
if (!!m_stack.empty()) if (m_stack.empty())
return; return;
m_number_of_masked_channels = 0; m_number_of_masked_channels = 0;
......
...@@ -89,9 +89,9 @@ AlphaScan::~AlphaScan() = default; ...@@ -89,9 +89,9 @@ AlphaScan::~AlphaScan() = default;
std::vector<SpecularElement> AlphaScan::generateElements(PolMatrices polpair) const std::vector<SpecularElement> AlphaScan::generateElements(PolMatrices polpair) const
{ {
if (!!m_beamPolarization) if (m_beamPolarization)
polpair.setPolarizerMatrix(SpinMatrix::FromBlochVector(*m_beamPolarization)); polpair.setPolarizerMatrix(SpinMatrix::FromBlochVector(*m_beamPolarization));
if (!!m_polAnalyzer) if (m_polAnalyzer)
polpair.setAnalyzerMatrix(m_polAnalyzer->matrix()); polpair.setAnalyzerMatrix(m_polAnalyzer->matrix());
const auto wls = extractValues(applyWlResolution(), const auto wls = extractValues(applyWlResolution(),
......
...@@ -61,9 +61,9 @@ QzScan* QzScan::clone() const ...@@ -61,9 +61,9 @@ QzScan* QzScan::clone() const
//! Generates simulation elements for specular simulations //! Generates simulation elements for specular simulations
std::vector<SpecularElement> QzScan::generateElements(PolMatrices polpair) const std::vector<SpecularElement> QzScan::generateElements(PolMatrices polpair) const
{ {
if (!!m_beamPolarization) if (m_beamPolarization)
polpair.setPolarizerMatrix(SpinMatrix::FromBlochVector(*m_beamPolarization)); polpair.setPolarizerMatrix(SpinMatrix::FromBlochVector(*m_beamPolarization));
if (!!m_polAnalyzer) if (m_polAnalyzer)
polpair.setAnalyzerMatrix(m_polAnalyzer->matrix()); polpair.setAnalyzerMatrix(m_polAnalyzer->matrix());
const std::vector<double> qz = generateQzVector(); const std::vector<double> qz = generateQzVector();
......
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