Diana Software
Public Member Functions | Private Attributes | List of all members
QBlindTools Class Reference

random generator for blinding purposes More...

Public Member Functions

 QBlindTools (const std::string &stringSeed)
 
double Uniform () const
 clear members More...
 
double Uniform (const int seed) const
 
int Scramble (const std::string &word) const
 

Private Attributes

std::string fStringSeed
 
int fSeed
 

Detailed Description

random generator for blinding purposes

Author
Y. Kolomensky's Babar code, adapted by M. Vignati

Definition at line 14 of file QBlindTools.hh.

Constructor & Destructor Documentation

◆ QBlindTools()

QBlindTools::QBlindTools ( const std::string &  stringSeed)

Definition at line 7 of file QBlindTools.cc.

References DianaThrow, err, fSeed, fStringSeed, QERR_OUT_OF_RANGE, and Scramble().

Member Function Documentation

◆ Scramble()

int QBlindTools::Scramble ( const std::string &  word) const

Definition at line 30 of file QBlindTools.cc.

References Alphabet.

Referenced by QBlindTools().

◆ Uniform() [1/2]

double QBlindTools::Uniform ( ) const

clear members

Definition at line 24 of file QBlindTools.cc.

References fSeed.

◆ Uniform() [2/2]

double QBlindTools::Uniform ( const int  seed) const

Definition at line 45 of file QBlindTools.cc.

References DianaThrow, err, and QERR_OUT_OF_RANGE.

Member Data Documentation

◆ fSeed

int QBlindTools::fSeed
private

Definition at line 27 of file QBlindTools.hh.

Referenced by QBlindTools(), and Uniform().

◆ fStringSeed

std::string QBlindTools::fStringSeed
private

Definition at line 26 of file QBlindTools.hh.

Referenced by QBlindTools().


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