BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DWBAComputation.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Core/Computation/DWBAComputation.h
6 //! @brief Defines class DWBAComputation.
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 #ifndef BORNAGAIN_CORE_COMPUTATION_DWBACOMPUTATION_H
16 #define BORNAGAIN_CORE_COMPUTATION_DWBACOMPUTATION_H
17 
20 
21 class MultiLayer;
22 class SimulationElement;
23 
24 //! Performs a single-threaded DWBA computation with given sample and simulation parameters.
25 //!
26 //! Controlled by the multi-threading machinery in Simulation::runSingleSimulation().
27 //!
28 //! @ingroup algorithms_internal
29 
31 {
32 public:
33  DWBAComputation(const MultiLayer& multilayer, const SimulationOptions& options,
34  ProgressHandler& progress, std::vector<SimulationElement>::iterator begin_it,
35  std::vector<SimulationElement>::iterator end_it);
36  ~DWBAComputation() override;
37 
38 private:
39  void runProtected() override;
40 
41  //! These iterators define the span of detector bins this simulation will work on
42  std::vector<SimulationElement>::iterator m_begin_it, m_end_it;
43  //! Contains the information, necessary to calculate the Fresnel coefficients.
45 };
46 
47 #endif // BORNAGAIN_CORE_COMPUTATION_DWBACOMPUTATION_H
Defines class DWBASingleComputation.
Defines interface IComputation.
Performs a single-threaded DWBA computation with given sample and simulation parameters.
void runProtected() override
DWBASingleComputation m_single_computation
Contains the information, necessary to calculate the Fresnel coefficients.
~DWBAComputation() override
DWBAComputation(const MultiLayer &multilayer, const SimulationOptions &options, ProgressHandler &progress, std::vector< SimulationElement >::iterator begin_it, std::vector< SimulationElement >::iterator end_it)
std::vector< SimulationElement >::iterator m_begin_it
These iterators define the span of detector bins this simulation will work on.
std::vector< SimulationElement >::iterator m_end_it
Class that handles all the computations involved in GISAS (particles, roughness,.....
Interface for a single-threaded computation with given range of SimulationElements and ProgressHandle...
Definition: IComputation.h:35
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:42
Maintains information about progress of a computation.
Data stucture containing both input and output of a single detector cell.
Collect the different options for simulation.