BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ParticleLayoutContribution.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sim/Contrib/ParticleLayoutContribution.h
6 //! @brief Defines class ParticleLayoutContribution.
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_SIM_CONTRIB_PARTICLELAYOUTCONTRIBUTION_H
21 #define BORNAGAIN_SIM_CONTRIB_PARTICLELAYOUTCONTRIBUTION_H
22 
23 #include <memory>
24 
26 class reLayout;
27 class DiffuseElement;
28 class SimulationOptions;
29 
30 //! Computes the scattering contribution from one particle layout.
31 //! Instances are created and used by DWBAComputation.
32 
34 public:
35  ParticleLayoutContribution(const reLayout& re_layout, const SimulationOptions& options,
36  bool polarized);
38 
39  void compute(DiffuseElement& ele) const;
40 
41 private:
43  const std::unique_ptr<const IInterparticleStrategy> m_interparticle_strategy;
44 };
45 
46 #endif // BORNAGAIN_SIM_CONTRIB_PARTICLELAYOUTCONTRIBUTION_H
47 #endif // USER_API
Data stucture containing both input and output of a single detector cell.
Abstract base class of DecouplingApproximationStrategy, SSCAStrategy. Provides function 'evaluate' th...
Computes the scattering contribution from one particle layout. Instances are created and used by DWBA...
const std::unique_ptr< const IInterparticleStrategy > m_interparticle_strategy
void compute(DiffuseElement &ele) const
ParticleLayoutContribution(const reLayout &re_layout, const SimulationOptions &options, bool polarized)
Collect the different options for simulation.SimulationOptions.
Data structure that contains preprocessed data for a single layout.
Definition: ReLayout.h:36