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

An one-dimensional range of cvector_t's. More...

Collaboration diagram for Bin1DCVector:
[legend]

Public Member Functions

 Bin1DCVector ()
 
 Bin1DCVector (cvector_t lower, cvector_t upper)
 
 Bin1DCVector (double wavelength, const Bin1D &alpha_bin, const Bin1D &phi_bin)
 creation on Bin1DCVector from alpha and phi bins More...
 
cvector_t center () const
 
cvector_t span () const
 

Public Attributes

cvector_t m_q_lower
 lower bound of the bin More...
 
cvector_t m_q_upper
 upper bound of the bin More...
 

Detailed Description

An one-dimensional range of cvector_t's.

Definition at line 52 of file Bin.h.

Constructor & Destructor Documentation

◆ Bin1DCVector() [1/3]

Bin1DCVector::Bin1DCVector ( )
inline

Definition at line 54 of file Bin.h.

54 : m_q_lower(), m_q_upper() {}
cvector_t m_q_lower
lower bound of the bin
Definition: Bin.h:59
cvector_t m_q_upper
upper bound of the bin
Definition: Bin.h:60

◆ Bin1DCVector() [2/3]

Bin1DCVector::Bin1DCVector ( cvector_t  lower,
cvector_t  upper 
)
inline

Definition at line 55 of file Bin.h.

55 : m_q_lower(lower), m_q_upper(upper) {}

◆ Bin1DCVector() [3/3]

Bin1DCVector::Bin1DCVector ( double  wavelength,
const Bin1D alpha_bin,
const Bin1D phi_bin 
)

creation on Bin1DCVector from alpha and phi bins

Definition at line 39 of file Bin.cpp.

40  : m_q_lower(), m_q_upper()
41 {
42  m_q_lower = vecOfLambdaAlphaPhi(wavelength, alpha_bin.m_lower, phi_bin.m_lower).complex();
43  m_q_upper = vecOfLambdaAlphaPhi(wavelength, alpha_bin.m_upper, phi_bin.m_upper).complex();
44 }
kvector_t vecOfLambdaAlphaPhi(double _lambda, double _alpha, double _phi)
Definition: Direction.cpp:19
BasicVector3D< complex_t > complex() const
Returns this, trivially converted to complex type.
double m_upper
upper bound of the bin
Definition: Bin.h:24
double m_lower
lower bound of the bin
Definition: Bin.h:23

References BasicVector3D< T >::complex(), Bin1D::m_lower, m_q_lower, m_q_upper, Bin1D::m_upper, and vecOfLambdaAlphaPhi().

Here is the call graph for this function:

Member Function Documentation

◆ center()

cvector_t Bin1DCVector::center ( ) const
inline

Definition at line 57 of file Bin.h.

57 { return (m_q_lower + m_q_upper) / 2.0; }

References m_q_lower, and m_q_upper.

◆ span()

cvector_t Bin1DCVector::span ( ) const
inline

Definition at line 58 of file Bin.h.

58 { return m_q_upper - m_q_lower; }

References m_q_lower, and m_q_upper.

Member Data Documentation

◆ m_q_lower

cvector_t Bin1DCVector::m_q_lower

lower bound of the bin

Definition at line 59 of file Bin.h.

Referenced by Bin1DCVector(), center(), and span().

◆ m_q_upper

cvector_t Bin1DCVector::m_q_upper

upper bound of the bin

Definition at line 60 of file Bin.h.

Referenced by Bin1DCVector(), center(), and span().


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