Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Math::LCGEngine Class Reference

Definition at line 33 of file LCGEngine.h.

Public Types

typedef TRandomEngine BaseType
 
typedef uint32_t Result_t
 
typedef uint32_t StateInt_t
 

Public Member Functions

 LCGEngine ()
 
 ~LCGEngine () override
 
uint32_t IntRndm ()
 
double operator() ()
 
double Rndm () override
 
void SetSeed (uint32_t seed)
 
- Public Member Functions inherited from ROOT::Math::TRandomEngine
virtual ~TRandomEngine ()
 

Static Public Member Functions

static unsigned int MaxInt ()
 maximum integer that can be generated
 
static unsigned int MinInt ()
 minimum integer that can be generated
 
static std::string Name ()
 Name of the generator.
 
static int Size ()
 Size of the generator state.
 

Protected Member Functions

int Counter () const
 
void GetState (std::vector< uint32_t > &state)
 
void SetState (const std::vector< uint32_t > &state)
 

Private Member Functions

double Rndm_impl ()
 

Private Attributes

uint32_t fSeed
 

#include <Math/LCGEngine.h>

Inheritance diagram for ROOT::Math::LCGEngine:
[legend]

Member Typedef Documentation

◆ BaseType

Definition at line 38 of file LCGEngine.h.

◆ Result_t

Definition at line 39 of file LCGEngine.h.

◆ StateInt_t

Definition at line 40 of file LCGEngine.h.

Constructor & Destructor Documentation

◆ LCGEngine()

ROOT::Math::LCGEngine::LCGEngine ( )
inline

Definition at line 42 of file LCGEngine.h.

◆ ~LCGEngine()

ROOT::Math::LCGEngine::~LCGEngine ( )
inlineoverride

Definition at line 44 of file LCGEngine.h.

Member Function Documentation

◆ Counter()

int ROOT::Math::LCGEngine::Counter ( ) const
inlineprotected

Definition at line 78 of file LCGEngine.h.

◆ GetState()

void ROOT::Math::LCGEngine::GetState ( std::vector< uint32_t > &  state)
inlineprotected

Definition at line 74 of file LCGEngine.h.

◆ IntRndm()

uint32_t ROOT::Math::LCGEngine::IntRndm ( )
inline

Definition at line 54 of file LCGEngine.h.

◆ MaxInt()

static unsigned int ROOT::Math::LCGEngine::MaxInt ( )
inlinestatic

maximum integer that can be generated

Definition at line 62 of file LCGEngine.h.

◆ MinInt()

static unsigned int ROOT::Math::LCGEngine::MinInt ( )
inlinestatic

minimum integer that can be generated

Definition at line 60 of file LCGEngine.h.

◆ Name()

static std::string ROOT::Math::LCGEngine::Name ( )
inlinestatic

Name of the generator.

Definition at line 66 of file LCGEngine.h.

◆ operator()()

double ROOT::Math::LCGEngine::operator() ( )
inline

Definition at line 52 of file LCGEngine.h.

◆ Rndm()

double ROOT::Math::LCGEngine::Rndm ( )
inlineoverridevirtual

Implements ROOT::Math::TRandomEngine.

Definition at line 48 of file LCGEngine.h.

◆ Rndm_impl()

double ROOT::Math::LCGEngine::Rndm_impl ( )
inlineprivate

Definition at line 81 of file LCGEngine.h.

◆ SetSeed()

void ROOT::Math::LCGEngine::SetSeed ( uint32_t  seed)
inline

Definition at line 46 of file LCGEngine.h.

◆ SetState()

void ROOT::Math::LCGEngine::SetState ( const std::vector< uint32_t > &  state)
inlineprotected

Definition at line 69 of file LCGEngine.h.

◆ Size()

static int ROOT::Math::LCGEngine::Size ( )
inlinestatic

Size of the generator state.

Definition at line 64 of file LCGEngine.h.

Member Data Documentation

◆ fSeed

uint32_t ROOT::Math::LCGEngine::fSeed
private

Definition at line 88 of file LCGEngine.h.

Libraries for ROOT::Math::LCGEngine:

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