BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
IFlux.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Resample/Flux/IFlux.h
6 //! @brief Defines and implements class IFlux.
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 
15 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_RESAMPLE_FLUX_IFLUX_H
21 #define BORNAGAIN_RESAMPLE_FLUX_IFLUX_H
22 
23 #include "Base/Spin/Spinor.h"
24 #include <memory>
25 #include <vector>
26 
27 //! Interface to access reflection/transmission coefficients.
28 //! Realized by ScalarFlux and MatrixFlux.
29 
30 class IFlux {
31 public:
32  virtual ~IFlux() = default;
33 
34  //! The following functions return the transmitted and reflected amplitudes
35  //! for different incoming beam polarizations and eigenmodes
36  virtual Spinor T1plus() const = 0;
37  virtual Spinor R1plus() const = 0;
38  virtual Spinor T2plus() const = 0;
39  virtual Spinor R2plus() const = 0;
40  virtual Spinor T1min() const = 0;
41  virtual Spinor R1min() const = 0;
42  virtual Spinor T2min() const = 0;
43  virtual Spinor R2min() const = 0;
44  //! Returns z-part of the two wavevector eigenmodes
45  virtual Spinor getKz() const = 0;
46 };
47 
48 #endif // BORNAGAIN_RESAMPLE_FLUX_IFLUX_H
49 #endif // USER_API
Defines class Spinor.
Interface to access reflection/transmission coefficients. Realized by ScalarFlux and MatrixFlux.
Definition: IFlux.h:30
virtual Spinor getKz() const =0
Returns z-part of the two wavevector eigenmodes.
virtual Spinor R2min() const =0
virtual Spinor R1min() const =0
virtual Spinor T2plus() const =0
virtual Spinor T1min() const =0
virtual ~IFlux()=default
virtual Spinor R2plus() const =0
virtual Spinor R1plus() const =0
virtual Spinor T1plus() const =0
The following functions return the transmitted and reflected amplitudes for different incoming beam p...
virtual Spinor T2min() const =0
Definition: Spinor.h:20