Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DRandom2 Class Reference

#include <DRandom2.h>

+ Inheritance diagram for DRandom2:

Public Member Functions

 DRandom2 (UInt_t seed=1)
 
void GetSeeds (UInt_t &seed, UInt_t &seed1, UInt_t &seed2)
 
void SetSeeds (UInt_t &seed, UInt_t &seed1, UInt_t &seed2)
 
double SampleGaussian (double sigma)
 
double SamplePoisson (double lambda)
 
double SampleRange (double x1, double x2)
 
bool DecideToAcceptHit (double prob)
 

Private Member Functions

bool AlmostEqual (double a, double b)
 

Detailed Description

Definition at line 25 of file DRandom2.h.

Constructor & Destructor Documentation

DRandom2::DRandom2 ( UInt_t  seed = 1)
inline

Definition at line 28 of file DRandom2.h.

Member Function Documentation

bool DRandom2::AlmostEqual ( double  a,
double  b 
)
inlineprivate

Definition at line 128 of file DRandom2.h.

Referenced by DecideToAcceptHit().

bool DRandom2::DecideToAcceptHit ( double  prob)
inline

Definition at line 89 of file DRandom2.h.

References AlmostEqual().

void DRandom2::GetSeeds ( UInt_t &  seed,
UInt_t &  seed1,
UInt_t &  seed2 
)
inline

Definition at line 30 of file DRandom2.h.

double DRandom2::SampleGaussian ( double  sigma)
inline

Definition at line 63 of file DRandom2.h.

double DRandom2::SamplePoisson ( double  lambda)
inline

Definition at line 67 of file DRandom2.h.

double DRandom2::SampleRange ( double  x1,
double  x2 
)
inline

Definition at line 71 of file DRandom2.h.

References f.

void DRandom2::SetSeeds ( UInt_t &  seed,
UInt_t &  seed1,
UInt_t &  seed2 
)
inline

Definition at line 36 of file DRandom2.h.

References seed.

Referenced by DL1MCTrigger_factory::evnt().


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