BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DepthProbeComputation.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Core/Computation/DepthProbeComputation.h
6 //! @brief Declares class DepthProbeComputation.
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_DEPTHPROBECOMPUTATION_H
16 #define BORNAGAIN_CORE_COMPUTATION_DEPTHPROBECOMPUTATION_H
17 
20 
21 class MultiLayer;
22 
23 //! Performs a single-threaded depth probe computation with given sample.
24 //!
25 //! Controlled by the multi-threading machinery in Simulation::runSingleSimulation().
26 //!
27 //! @ingroup algorithms_internal
28 
30 {
31  using DepthProbeElementIter = std::vector<DepthProbeElement>::iterator;
32 
33 public:
34  DepthProbeComputation(const MultiLayer& multilayer, const SimulationOptions& options,
35  ProgressHandler& progress, DepthProbeElementIter begin_it,
36  DepthProbeElementIter end_it);
38 
39 private:
40  void runProtected() override;
41 
44 };
45 
46 #endif // BORNAGAIN_CORE_COMPUTATION_DEPTHPROBECOMPUTATION_H
Defines functor DepthProbeComputationTerm.
Defines interface IComputation.
Performs a single-threaded depth probe computation with given sample.
std::vector< DepthProbeElement >::iterator DepthProbeElementIter
DepthProbeComputationTerm m_computation_term
DepthProbeElementIter m_begin_it
DepthProbeComputation(const MultiLayer &multilayer, const SimulationOptions &options, ProgressHandler &progress, DepthProbeElementIter begin_it, DepthProbeElementIter end_it)
~DepthProbeComputation() override
DepthProbeElementIter m_end_it
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.
Collect the different options for simulation.