g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::rbw< FLAT, REAL > Class Template Reference

Public Member Functions

 rbw (FLAT &a_flat, REAL a_mean=0, REAL a_gamma=1)
 
virtual ~rbw ()
 
 rbw (const rbw &a_from)
 
rbwoperator= (const rbw &a_from)
 
REAL shoot (const REAL &a_half_pi, REAL(*a_tan)(REAL)) const
 
FLAT & flat ()
 
void set_seed (unsigned int a_seed)
 

Protected Attributes

FLAT & m_flat
 
REAL m_mean
 
REAL m_gamma
 

Detailed Description

template<class FLAT, class REAL>
class tools::rbw< FLAT, REAL >

Definition at line 46 of file randT.

Constructor & Destructor Documentation

◆ rbw() [1/2]

template<class FLAT , class REAL >
tools::rbw< FLAT, REAL >::rbw ( FLAT &  a_flat,
REAL  a_mean = 0,
REAL  a_gamma = 1 
)
inline

Definition at line 48 of file randT.

48 :m_flat(a_flat),m_mean(a_mean),m_gamma(a_gamma){}

◆ ~rbw()

template<class FLAT , class REAL >
virtual tools::rbw< FLAT, REAL >::~rbw ( )
inlinevirtual

Definition at line 49 of file randT.

49 {}

◆ rbw() [2/2]

template<class FLAT , class REAL >
tools::rbw< FLAT, REAL >::rbw ( const rbw< FLAT, REAL > &  a_from)
inline

Definition at line 51 of file randT.

51 :m_flat(a_from.m_flat),m_mean(a_from.m_mean),m_gamma(a_from.m_gamma){}

Member Function Documentation

◆ flat()

template<class FLAT , class REAL >
FLAT& tools::rbw< FLAT, REAL >::flat ( )
inline

Definition at line 63 of file randT.

63 {return m_flat;}

◆ operator=()

template<class FLAT , class REAL >
rbw& tools::rbw< FLAT, REAL >::operator= ( const rbw< FLAT, REAL > &  a_from)
inline

Definition at line 52 of file randT.

52  {
53  m_mean = a_from.m_mean;
54  m_gamma = a_from.m_gamma;
55  return *this;
56  }

◆ set_seed()

template<class FLAT , class REAL >
void tools::rbw< FLAT, REAL >::set_seed ( unsigned int  a_seed)
inline

Definition at line 64 of file randT.

64 {m_flat.set_seed(a_seed);}

◆ shoot()

template<class FLAT , class REAL >
REAL tools::rbw< FLAT, REAL >::shoot ( const REAL &  a_half_pi,
REAL(*)(REAL)  a_tan 
) const
inline

Definition at line 58 of file randT.

58  {
59  REAL rval = REAL(2) * m_flat.shoot() - REAL(1);
60  REAL displ = (REAL(1)/REAL(2)) * m_gamma * a_tan(rval * a_half_pi);
61  return m_mean + displ;
62  }

Member Data Documentation

◆ m_flat

template<class FLAT , class REAL >
FLAT& tools::rbw< FLAT, REAL >::m_flat
protected

Definition at line 66 of file randT.

◆ m_gamma

template<class FLAT , class REAL >
REAL tools::rbw< FLAT, REAL >::m_gamma
protected

Definition at line 68 of file randT.

◆ m_mean

template<class FLAT , class REAL >
REAL tools::rbw< FLAT, REAL >::m_mean
protected

Definition at line 67 of file randT.


The documentation for this class was generated from the following file:
tools::rbw::m_mean
REAL m_mean
Definition: randT:67
tools::rbw::m_gamma
REAL m_gamma
Definition: randT:68
tools::rbw::m_flat
FLAT & m_flat
Definition: randT:66