ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
RandDouble Class Reference

#include <RandDouble.h>

Collaboration diagram for RandDouble:

Public Member Functions

 RandDouble ()
 
 RandDouble (double low, double high)
 
double operator() ()
 

Private Attributes

std::default_random_engine m_re
 
std::uniform_real_distribution< double > m_dist
 

Detailed Description

Definition at line 8 of file RandDouble.h.

Constructor & Destructor Documentation

◆ RandDouble() [1/2]

RandDouble::RandDouble ( )
inline

Definition at line 10 of file RandDouble.h.

10 : m_dist(0., 1.){}

◆ RandDouble() [2/2]

RandDouble::RandDouble ( double  low,
double  high 
)
inline

Definition at line 11 of file RandDouble.h.

11  :m_dist(low, high){
12  // note the generation is not symmetric: [low, high)...
13  }

Member Function Documentation

◆ operator()()

double RandDouble::operator() ( )
inline

Definition at line 14 of file RandDouble.h.

14 {return m_dist(m_re);}

Member Data Documentation

◆ m_dist

std::uniform_real_distribution<double> RandDouble::m_dist
private

Definition at line 17 of file RandDouble.h.

◆ m_re

std::default_random_engine RandDouble::m_re
private

Definition at line 16 of file RandDouble.h.


The documentation for this class was generated from the following file:
RandDouble::m_re
std::default_random_engine m_re
Definition: RandDouble.h:16
RandDouble::m_dist
std::uniform_real_distribution< double > m_dist
Definition: RandDouble.h:17