BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorWeighted Class Reference

Coherent sum of different scalar IFormFactors with different weights. More...

+ Inheritance diagram for FormFactorWeighted:

Public Member Functions

void accept (INodeVisitor *visitor) const override
 
void addFormFactor (const IFormFactor &form_factor, double weight=1.0)
 
double bottomZ (const IRotation &rotation) const override
 
FormFactorWeightedclone () const override
 
complex_t evaluate (const WavevectorInfo &wavevectors) const override
 
double radialExtension () const override
 
void setAmbientMaterial (const Material &material) override
 
double topZ (const IRotation &rotation) const override
 

Protected Attributes

std::vector< IFormFactor * > m_form_factors
 
std::vector< double > m_weights
 

Detailed Description

Coherent sum of different scalar IFormFactors with different weights.

Used by ParticleComposition. If same particles are at different positions, then consider FormFactorDecoratorMultiPositionFactor (restore from commit 0500a26de76).