EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
simpleRandom Class Reference

#include <online_distribution/blob/master/newbasic/simpleRandom.h>

Public Member Functions

 simpleRandom ()
 
 simpleRandom (const int iseed)
 
float gauss (const float mean, const float sigma)
 
float rnd (int low, int high)
 

Private Member Functions

void byteSwap (word32 *buf, unsigned words)
 
void xMD5Init (struct xMD5Context *ctx)
 
void xMD5Update (struct xMD5Context *ctx, xbyte const *buf, unsigned int len)
 
void xMD5Final (xbyte digest[16], struct xMD5Context *ctx)
 
void xMD5Transform (word32 buf[4], word32 const in[16])
 
void MD5 (xbyte *dest, const xbyte *orig, unsigned int len)
 
void load_seed ()
 

Private Attributes

unsigned int digest [4]
 

Detailed Description

Definition at line 66 of file simpleRandom.h.

View newest version in sPHENIX GitHub at line 66 of file simpleRandom.h

Constructor & Destructor Documentation

simpleRandom::simpleRandom ( )

Definition at line 232 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 232 of file simpleRandom.cc

References digest.

simpleRandom::simpleRandom ( const int  iseed)

Definition at line 242 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 242 of file simpleRandom.cc

References digest.

Member Function Documentation

void simpleRandom::byteSwap ( word32 buf,
unsigned  words 
)
private

Definition at line 15 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 15 of file simpleRandom.cc

References p.

Referenced by xMD5Final(), and xMD5Update().

+ Here is the caller graph for this function:

float simpleRandom::gauss ( const float  mean,
const float  sigma 
)

Definition at line 251 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 251 of file simpleRandom.cc

References BIGNUMBER, rnd(), x, y, and z.

Referenced by testEventiterator::getNextEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void simpleRandom::load_seed ( )
private
void simpleRandom::MD5 ( xbyte dest,
const xbyte orig,
unsigned int  len 
)
private

Definition at line 221 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 221 of file simpleRandom.cc

References xMD5Final(), xMD5Init(), and xMD5Update().

Referenced by rnd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

float simpleRandom::rnd ( int  low,
int  high 
)

Definition at line 276 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 276 of file simpleRandom.cc

References digest, MD5(), and num.

Referenced by gauss().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void simpleRandom::xMD5Final ( xbyte  digest[16],
struct xMD5Context ctx 
)
private

Definition at line 87 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 87 of file simpleRandom.cc

References xMD5Context::buf, xMD5Context::bytes, byteSwap(), xMD5Context::in, p, and xMD5Transform().

Referenced by MD5().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void simpleRandom::xMD5Init ( struct xMD5Context ctx)
private

Definition at line 31 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 31 of file simpleRandom.cc

References xMD5Context::buf, and xMD5Context::bytes.

Referenced by MD5().

+ Here is the caller graph for this function:

void simpleRandom::xMD5Transform ( word32  buf[4],
word32 const  in[16] 
)
private

Definition at line 137 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 137 of file simpleRandom.cc

References c, d, F1, F2, F3, F4, and MD5STEP.

Referenced by xMD5Final(), and xMD5Update().

+ Here is the caller graph for this function:

void simpleRandom::xMD5Update ( struct xMD5Context ctx,
xbyte const *  buf,
unsigned int  len 
)
private

Definition at line 47 of file simpleRandom.cc.

View newest version in sPHENIX GitHub at line 47 of file simpleRandom.cc

References xMD5Context::buf, xMD5Context::bytes, byteSwap(), xMD5Context::in, t, and xMD5Transform().

Referenced by MD5().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

unsigned int simpleRandom::digest[4]
private

Definition at line 84 of file simpleRandom.h.

View newest version in sPHENIX GitHub at line 84 of file simpleRandom.h

Referenced by rnd(), and simpleRandom().


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