BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SlicedParticle.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Particle/SlicedParticle.h
6 //! @brief Defines class SlicedParticle.
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_PARTICLE_SLICEDPARTICLE_H
16 #define BORNAGAIN_CORE_PARTICLE_SLICEDPARTICLE_H
17 
20 #include <memory>
21 
22 //! Struct that contains information on a sliced particle.
23 //! This information is needed for evaluating the sliced form factor and the average of a material,
24 //! used in the Fresnel calculations.
25 //!
26 //! @ingroup intern
27 
29  std::unique_ptr<IFormFactor> mP_slicedff;
30  std::vector<HomogeneousRegion> m_regions;
31 };
32 
33 #endif // BORNAGAIN_CORE_PARTICLE_SLICEDPARTICLE_H
Defines struct HomogeneousRegion, and declares fct createAveragedMaterial.
Defines and implements pure virtual interface IFormFactor.
Struct that contains information on a sliced particle.
std::vector< HomogeneousRegion > m_regions
std::unique_ptr< IFormFactor > mP_slicedff