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

rename -> m_beamPolarization

parent 93107d60
No related branches found
No related tags found
2 merge requests!907Core cleanup,!905mv class Instrument out of core
Pipeline #65459 failed
......@@ -53,7 +53,7 @@ Beam Beam::horizontalBeam()
Beam::Beam(const Beam& other)
: Beam(other.m_intensity, other.m_wavelength, other.direction())
{
m_bloch_vector = other.m_bloch_vector;
m_beamPolarization = other.m_beamPolarization;
if (other.m_shape_factor)
m_shape_factor.reset(other.m_shape_factor->clone());
}
......@@ -67,7 +67,7 @@ Beam& Beam::operator=(const Beam& other)
// m_direction = other.m_direction;
m_alpha = other.m_alpha;
m_phi = other.m_phi;
m_bloch_vector = other.m_bloch_vector;
m_beamPolarization = other.m_beamPolarization;
if (other.m_shape_factor)
m_shape_factor.reset(other.m_shape_factor->clone());
else
......@@ -144,19 +144,19 @@ void Beam::setPolarization(const R3 bloch_vector)
"Beam::setPolarization: "
"The given Bloch vector cannot represent a real physical ensemble");
}
m_bloch_vector = bloch_vector;
m_beamPolarization = bloch_vector;
}
R3 Beam::getBlochVector() const
{
return m_bloch_vector;
return m_beamPolarization;
}
SpinMatrix Beam::getPolarization() const
{
double x = m_bloch_vector.x();
double y = m_bloch_vector.y();
double z = m_bloch_vector.z();
double x = m_beamPolarization.x();
double y = m_beamPolarization.y();
double z = m_beamPolarization.z();
return {(1.0 + z) / 2.0, complex_t(x, -y) / 2.0, complex_t(x, y) / 2.0, (1.0 - z) / 2.0};
}
......
......@@ -83,7 +83,7 @@ private:
double m_alpha;
double m_phi;
std::unique_ptr<IFootprintFactor> m_shape_factor; //!< footprint correction handler
R3 m_bloch_vector; //!< Bloch vector encoding the beam's polarization
R3 m_beamPolarization; //!< Bloch vector encoding the beam's polarization
RealLimits m_alphaLimits;
......
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