Belle II Software  release-08-01-10
RandomEngine Class Referencefinal

Interface class to make Geant4 use the Belle2 RandomGenerator. More...

#include <RandomEngine.h>

Inheritance diagram for RandomEngine:
Collaboration diagram for RandomEngine:

Public Member Functions

 RandomEngine ()
 Constructor expecting a reference to the Belle2::RandomGenerator.
 
double flat () override final
 return a flat distributed double in (0,1), both excluded
 
void flatArray (const int size, double *vect) override final
 fill an array of doubles with values in (0,1), both exluded More...
 
void setSeed (long, int) override final
 set the seed, ignored
 
void setSeeds (const long *, int) override final
 set array of seed values, ignored
 
void saveStatus (const char[]) const override final
 save status to file, ignored
 
void restoreStatus (const char[]) override final
 restore status from file, ignored
 
void showStatus () const override final
 show status, ignored
 
std::string name () const override final
 return name of the generator
 
std::vector< unsigned long > put () const override final
 put call, whatever that does. More...
 
std::ostream & put (std::ostream &o) const override final
 put call, whatever that does. More...
 
bool get (const std::vector< unsigned long > &) override final
 get call, I assume same as above
 
std::istream & get (std::istream &i) override final
 get call, I assume same as above
 

Detailed Description

Interface class to make Geant4 use the Belle2 RandomGenerator.

Definition at line 22 of file RandomEngine.h.

Member Function Documentation

◆ flatArray()

void flatArray ( const int  size,
double *  vect 
)
inlinefinaloverride

fill an array of doubles with values in (0,1), both exluded

Parameters
sizenumber of doubles to generate
vectpointer to buffer at least sizeof(double)*size bytes large

Definition at line 32 of file RandomEngine.h.

32 { dynamic_cast<RandomGenerator&>(*gRandom).RndmArray(size, vect); }

◆ put() [1/2]

std::vector<unsigned long> put ( ) const
inlinefinaloverride

put call, whatever that does.

If we don't override it we get useless messages

Definition at line 46 of file RandomEngine.h.

◆ put() [2/2]

std::ostream& put ( std::ostream &  o) const
inlinefinaloverride

put call, whatever that does.

If we don't override it we get useless messages

Definition at line 48 of file RandomEngine.h.


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