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

Public Member Functions

 Bin1DCVector ()
 
 Bin1DCVector (cvector_t lower, cvector_t upper)
 
 Bin1DCVector (double wavelength, const Bin1D &alpha_bin, const Bin1D &phi_bin)
 
cvector_t getMidPoint () const
 
cvector_t getDelta () const
 

Public Attributes

cvector_t m_q_lower
 
cvector_t m_q_upper
 

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 55 of file Bin.h.

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

◆ Bin1DCVector() [2/3]

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

Definition at line 56 of file Bin.h.

56 : 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 38 of file Bin.cpp.

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

Here is the call graph for this function:

Member Function Documentation

◆ getMidPoint()

cvector_t Bin1DCVector::getMidPoint ( ) const
inline

Definition at line 58 of file Bin.h.

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

References m_q_lower, and m_q_upper.

◆ getDelta()

cvector_t Bin1DCVector::getDelta ( ) const
inline

Definition at line 59 of file Bin.h.

59 { 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 60 of file Bin.h.

Referenced by Bin1DCVector(), getDelta(), and getMidPoint().

◆ m_q_upper

cvector_t Bin1DCVector::m_q_upper

upper bound of the bin

Definition at line 61 of file Bin.h.

Referenced by Bin1DCVector(), getDelta(), and getMidPoint().


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