ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Athena_test::uniform_real_distribution< T > Class Template Reference

#include <random.h>

Collaboration diagram for Athena_test::uniform_real_distribution< T >:

Public Member Functions

 uniform_real_distribution (T a, T b)
 
operator() (URNG &rng) const
 

Private Attributes

m_a
 
m_b
 

Detailed Description

template<class T>
class Athena_test::uniform_real_distribution< T >

Definition at line 132 of file random.h.

Constructor & Destructor Documentation

◆ uniform_real_distribution()

template<class T >
Athena_test::uniform_real_distribution< T >::uniform_real_distribution ( a,
b 
)
inline

Definition at line 135 of file random.h.

135 : m_a(a), m_b(b) {}

Member Function Documentation

◆ operator()()

template<class T >
T Athena_test::uniform_real_distribution< T >::operator() ( URNG rng) const
inline

Definition at line 136 of file random.h.

137  {
138  return static_cast<T>(rng())/URNG::max()*(m_b-m_a) + m_a;
139  }

Member Data Documentation

◆ m_a

template<class T >
T Athena_test::uniform_real_distribution< T >::m_a
private

Definition at line 142 of file random.h.

◆ m_b

template<class T >
T Athena_test::uniform_real_distribution< T >::m_b
private

Definition at line 143 of file random.h.


The documentation for this class was generated from the following file:
Athena_test::uniform_real_distribution::m_b
T m_b
Definition: random.h:143
D3PDTest::rng
uint32_t rng()
Definition: FillerAlg.cxx:40
Athena_test::URNG::max
static constexpr result_type max()
Definition: random.h:82
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Athena_test::uniform_real_distribution::m_a
T m_a
Definition: random.h:142
a
TList * a
Definition: liststreamerinfos.cxx:10
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35