BornAgain  1.19.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 reflection and scattering
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_CORE_COMPUTATION_DWBACOMPUTATION_H
21 #define BORNAGAIN_CORE_COMPUTATION_DWBACOMPUTATION_H
22 
25 
26 class MultiLayer;
27 class SimulationElement;
28 
29 //! Performs a single-threaded DWBA computation with given sample and simulation parameters.
30 //!
31 //! Controlled by the multi-threading machinery in ISimulation::runSingleSimulation().
32 //!
33 //! @ingroup algorithms_internal
34 
35 class DWBAComputation : public IComputation {
36 public:
37  DWBAComputation(const MultiLayer& multilayer, const SimulationOptions& options,
38  ProgressHandler& progress, std::vector<SimulationElement>::iterator begin_it,
39  std::vector<SimulationElement>::iterator end_it, bool forcePolarized=false);
40  ~DWBAComputation() override;
41 
42 private:
43  void runProtected() override;
44 
45  //! These iterators define the span of detector bins this simulation will work on
46  std::vector<SimulationElement>::iterator m_begin_it, m_end_it;
47  //! Contains the information, necessary to calculate the Fresnel coefficients.
49 };
50 
51 #endif // BORNAGAIN_CORE_COMPUTATION_DWBACOMPUTATION_H
52 #endif // USER_API
Defines class DWBASingleComputation.
Defines interface IComputation.
Performs a single-threaded DWBA computation with given sample and simulation parameters.
void runProtected() override
DWBAComputation(const MultiLayer &multilayer, const SimulationOptions &options, ProgressHandler &progress, std::vector< SimulationElement >::iterator begin_it, std::vector< SimulationElement >::iterator end_it, bool forcePolarized=false)
DWBASingleComputation m_single_computation
Contains the information, necessary to calculate the Fresnel coefficients.
~DWBAComputation() override
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:39
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:41
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.