BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
Profile1DVoigtItem Class Reference

Description

Definition at line 70 of file ProfileItems.h.

Inheritance diagram for Profile1DVoigtItem:
[legend]
Collaboration diagram for Profile1DVoigtItem:
[legend]

Public Member Functions

 Profile1DVoigtItem ()
 
std::unique_ptr< IProfile1D > createProfile () const override
 
DoubleDescriptor eta () const
 
DoubleDescriptor omega () const
 
void serialize (Streamer &s) override
 
DoubleDescriptors valueDescriptors () const override
 

Protected Attributes

DoubleProperty m_omega
 

Private Attributes

DoubleProperty m_eta
 

Static Private Attributes

static constexpr auto P_OMEGA {"Omega"}
 

Constructor & Destructor Documentation

◆ Profile1DVoigtItem()

Profile1DVoigtItem::Profile1DVoigtItem ( )

Definition at line 77 of file ProfileItems.cpp.

78 {
79  m_eta.init("Eta", "Parameter [0,1] to balance between Cauchy (eta=0.0) and Gauss (eta=1.0)",
80  0.5, Unit::unitless, 3, RealLimits::limited(0.0, 1.0), "eta");
81 }
@ unitless
void init(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const QString &persistentTag)
DoubleProperty m_eta
Definition: ProfileItems.h:80

References DoubleProperty::init(), m_eta, and unitless.

Here is the call graph for this function:

Member Function Documentation

◆ createProfile()

std::unique_ptr< IProfile1D > Profile1DVoigtItem::createProfile ( ) const
overridevirtual

Implements Profile1DItem.

Definition at line 83 of file ProfileItems.cpp.

84 {
85  return std::make_unique<Profile1DVoigt>(omega(), m_eta);
86 }
DoubleDescriptor omega() const

References m_eta, and Profile1DItem::omega().

Here is the call graph for this function:

◆ eta()

DoubleDescriptor Profile1DVoigtItem::eta ( ) const

Definition at line 95 of file ProfileItems.cpp.

96 {
97  return m_eta;
98 }

References m_eta.

Referenced by valueDescriptors().

◆ omega()

◆ serialize()

void Profile1DVoigtItem::serialize ( Streamer s)
overridevirtual

Reimplemented from Profile1DItem.

Definition at line 88 of file ProfileItems.cpp.

89 {
90  s.assertVersion(0);
93 }
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
Definition: Streamer.cpp:26
void rwProperty(Streamer &s, DoubleProperty &d)

References Streamer::assertVersion(), m_eta, Profile1DItem::m_omega, and Serialize::rwProperty().

Here is the call graph for this function:

◆ valueDescriptors()

DoubleDescriptors Profile1DVoigtItem::valueDescriptors ( ) const
overridevirtual

Reimplemented from Profile1DItem.

Definition at line 100 of file ProfileItems.cpp.

101 {
103 }
QList< DoubleDescriptor > DoubleDescriptors
virtual DoubleDescriptors valueDescriptors() const
DoubleDescriptor eta() const

References eta(), and Profile1DItem::valueDescriptors().

Here is the call graph for this function:

Member Data Documentation

◆ m_eta

DoubleProperty Profile1DVoigtItem::m_eta
private

Definition at line 80 of file ProfileItems.h.

Referenced by Profile1DVoigtItem(), createProfile(), eta(), and serialize().

◆ m_omega

DoubleProperty Profile1DItem::m_omega
protectedinherited

◆ P_OMEGA

constexpr auto Profile1DItem::P_OMEGA {"Omega"}
staticconstexprprivateinherited

Definition at line 28 of file ProfileItems.h.


The documentation for this class was generated from the following files: