BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
PolMatrices.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Base/Element/PolMatrices.cpp
6 //! @brief Implements class PolarizerPair.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
16 
17 #include <utility>
18 
19 // corresponds to completely unpolarized beam and the absence of spin selection in the analyzer
21  : m_polarizer_matrix(SpinMatrix::One() / 2.0)
22  , m_analyzer_matrix(SpinMatrix::One())
23 {
24 }
25 
27  : m_polarizer_matrix(std::move(polarization))
28  , m_analyzer_matrix(std::move(analyzer))
29 {
30 }
Defines class PolarizerPair.