BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Bin1DKVector Struct Reference
Collaboration diagram for Bin1DKVector:

Public Member Functions

 Bin1DKVector ()
 
 Bin1DKVector (const kvector_t lower, const kvector_t upper)
 
 Bin1DKVector (double wavelength, const Bin1D &alpha_bin, const Bin1D &phi_bin)
 
kvector_t getMidPoint () const
 
kvector_t getDelta () const
 

Public Attributes

kvector_t m_q_lower
 
kvector_t m_q_upper
 

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 30 of file Bin.cpp.

31  : m_q_lower(), m_q_upper()
32 {
35 }
BasicVector3D< double > vecOfLambdaAlphaPhi(double _lambda, double _alpha, double _phi)
Creates a vector<double> as a wavevector with given wavelength and angles.
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, vecOfLambdaAlphaPhi(), and anonymous_namespace{SlicedCylindersBuilder.cpp}::wavelength().

Here is the call graph for this function:

Member Function Documentation

◆ getMidPoint()

kvector_t Bin1DKVector::getMidPoint ( ) 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.

◆ getDelta()

kvector_t Bin1DKVector::getDelta ( ) 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(), getDelta(), and getMidPoint().

◆ 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(), getDelta(), and getMidPoint().


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