Garfield++ 3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Garfield::RandomEngine Class Referenceabstract

Abstract base class for random number generators. More...

#include <RandomEngine.hh>

+ Inheritance diagram for Garfield::RandomEngine:

Public Member Functions

 RandomEngine ()=default
 Constructor.
 
virtual ~RandomEngine ()
 Destructor.
 
virtual double Draw ()=0
 Draw a random number.
 
virtual void Seed (const unsigned int s)=0
 Initialise the random number generator.
 
virtual void Print ()=0
 Print some information about the random number generator.
 

Detailed Description

Abstract base class for random number generators.

Definition at line 8 of file RandomEngine.hh.

Constructor & Destructor Documentation

◆ RandomEngine()

Garfield::RandomEngine::RandomEngine ( )
default

Constructor.

◆ ~RandomEngine()

virtual Garfield::RandomEngine::~RandomEngine ( )
inlinevirtual

Destructor.

Definition at line 13 of file RandomEngine.hh.

13{}

Member Function Documentation

◆ Draw()

virtual double Garfield::RandomEngine::Draw ( )
pure virtual

Draw a random number.

Implemented in Garfield::RandomEngineRoot.

◆ Print()

virtual void Garfield::RandomEngine::Print ( )
pure virtual

Print some information about the random number generator.

Implemented in Garfield::RandomEngineRoot.

◆ Seed()

virtual void Garfield::RandomEngine::Seed ( const unsigned int  s)
pure virtual

Initialise the random number generator.

Implemented in Garfield::RandomEngineRoot.


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