BornAgain  1.19.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 reflection and scattering
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_SAMPLE_PARTICLE_SLICEDPARTICLE_H
21 #define BORNAGAIN_SAMPLE_PARTICLE_SLICEDPARTICLE_H
22 
25 #include <memory>
26 
27 //! Struct that contains information on a sliced particle.
28 //! This information is needed for evaluating the sliced form factor and the average of a material,
29 //! used in the Fresnel calculations.
30 //!
31 //! @ingroup intern
32 
34  std::unique_ptr<IFormFactor> m_slicedff;
35  std::vector<HomogeneousRegion> m_regions;
36 };
37 
38 #endif // BORNAGAIN_SAMPLE_PARTICLE_SLICEDPARTICLE_H
39 #endif // USER_API
Defines struct HomogeneousRegion, and declares fct createAveragedMaterial.
Defines and implements interface IFormFactor.
Struct that contains information on a sliced particle.
std::vector< HomogeneousRegion > m_regions
std::unique_ptr< IFormFactor > m_slicedff