BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Bin1DKVector Struct Reference

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

Collaboration diagram for Bin1DKVector:
[legend]

Public Member Functions

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

Public Attributes

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

Detailed Description

An one-dimensional range of kvector_t's.

Definition at line 36 of file Bin.h.

Constructor & Destructor Documentation

◆ Bin1DKVector() [1/3]

Bin1DKVector::Bin1DKVector ( )
inline

Definition at line 37 of file Bin.h.

37 : m_q_lower(), m_q_upper() {}
kvector_t m_q_lower
lower bound of the bin
Definition: Bin.h:45
kvector_t m_q_upper
upper bound of the bin
Definition: Bin.h:46

◆ Bin1DKVector() [2/3]

Bin1DKVector::Bin1DKVector ( const kvector_t  lower,
const kvector_t  upper 
)
inline

Definition at line 38 of file Bin.h.

38  : m_q_lower(lower), m_q_upper(upper)
39  {
40  }

◆ Bin1DKVector() [3/3]

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

creation on Bin1DKVector from alpha and phi bins

Definition at line 31 of file Bin.cpp.

32  : m_q_lower(), m_q_upper()
33 {
34  m_q_lower = vecOfLambdaAlphaPhi(wavelength, alpha_bin.m_lower, phi_bin.m_lower);
35  m_q_upper = vecOfLambdaAlphaPhi(wavelength, alpha_bin.m_upper, phi_bin.m_upper);
36 }
kvector_t vecOfLambdaAlphaPhi(double _lambda, double _alpha, double _phi)
Definition: Direction.cpp:19
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 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()

kvector_t Bin1DKVector::center ( ) const
inline

Definition at line 43 of file Bin.h.

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

References m_q_lower, and m_q_upper.

◆ span()

kvector_t Bin1DKVector::span ( ) const
inline

Definition at line 44 of file Bin.h.

44 { return m_q_upper - m_q_lower; }

References m_q_lower, and m_q_upper.

Member Data Documentation

◆ m_q_lower

kvector_t Bin1DKVector::m_q_lower

lower bound of the bin

Definition at line 45 of file Bin.h.

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

◆ m_q_upper

kvector_t Bin1DKVector::m_q_upper

upper bound of the bin

Definition at line 46 of file Bin.h.

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


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