BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
CoherentFFSum.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Resample/Coherence/CoherentFFSum.h
6 //! @brief Defines class CoherentFFSum.
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_COHERENCE_COHERENTFFSUM_H
21 #define BORNAGAIN_RESAMPLE_COHERENCE_COHERENTFFSUM_H
22 
23 #include "Base/Spin/SpinMatrix.h"
24 #include <heinz/Complex.h>
25 #include <memory>
26 #include <vector>
27 
28 class SumDWBA;
29 class DiffuseElement;
30 
31 //! Information about particle form factor and abundance.
32 
34 public:
35  CoherentFFSum(double abundance, std::vector<std::shared_ptr<const SumDWBA>> terms);
36 
37  complex_t summedFF(const DiffuseElement& ele) const;
38  SpinMatrix summedPolFF(const DiffuseElement& ele) const;
39 
40  double relativeAbundance() const { return m_abundance; }
41  double radialExtension() const;
42 
43 private:
44  const double m_abundance;
45  const std::vector<std::shared_ptr<const SumDWBA>> m_terms;
46 };
47 
48 #endif // BORNAGAIN_RESAMPLE_COHERENCE_COHERENTFFSUM_H
49 #endif // USER_API
Defines class SpinMatrix.
Information about particle form factor and abundance.
Definition: CoherentFFSum.h:33
SpinMatrix summedPolFF(const DiffuseElement &ele) const
double radialExtension() const
const double m_abundance
Definition: CoherentFFSum.h:44
CoherentFFSum(double abundance, std::vector< std::shared_ptr< const SumDWBA >> terms)
double relativeAbundance() const
Definition: CoherentFFSum.h:40
complex_t summedFF(const DiffuseElement &ele) const
const std::vector< std::shared_ptr< const SumDWBA > > m_terms
Definition: CoherentFFSum.h:45
Data stucture containing both input and output of a single detector cell.
Computes coherent sum of the four DWBA terms. Wraps an IReParticle, and provides functions evaluate o...
Definition: SumDWBA.h:37