Generate universal random numbers and sequences on all common machines. More...
#include "NcRandom.h"
Generate universal random numbers and sequences on all common machines.
Definition at line 15 of file NcRandom.h.
Public Member Functions | |
| NcRandom () | |
| NcRandom (Int_t seed, Int_t cnt1, Int_t cnt2, NcTimestamp *ts=0) | |
| NcRandom (Int_t seed, NcTimestamp *ts=0) | |
| virtual | ~NcRandom () |
| void | Data () const |
| Float_t | Gauss () |
| void | Gauss (Float_t *vec, Int_t n) |
| void | Gauss (Float_t *vec, Int_t n, Float_t mean, Float_t sigma) |
| Float_t | Gauss (Float_t mean, Float_t sigma) |
| Int_t | GetCnt1 () const |
| Int_t | GetCnt2 () const |
| Int_t | GetSeed () const |
| void | Poisson (Float_t *vec, Int_t n, Float_t mean) |
| Float_t | Poisson (Float_t mean) |
| Double_t | RanBm (Double_t nr, Double_t n, Int_t m, Double_t *p=0, Double_t *na=0, Double_t *psia=0, Double_t psi0=-1, Int_t f=0, TH1 *psih=0, Int_t ncut=0, Double_t *nrx=0) |
| void | SetUser (Float_t *x, Float_t *y, Int_t n) |
| void | SetUser (Float_t a, Float_t b, Int_t n, Float_t(*f)(Float_t)) |
| Float_t | Uniform () |
| void | Uniform (Float_t *vec, Int_t n) |
| void | Uniform (Float_t *vec, Int_t n, Float_t a, Float_t b) |
| Float_t | Uniform (Float_t a, Float_t b) |
| Float_t | User () |
| void | User (Float_t *vec, Int_t n) |
Private Member Functions | |
| void | Start (Int_t seed, Int_t cnt1, Int_t cnt2, NcTimestamp *ts) |
| void | Uniform (Int_t n) |
| void | Unpack (Int_t seed, Int_t &i, Int_t &j, Int_t &k, Int_t &l) |
Private Attributes | |
| Float_t | fC |
| Float_t | fCd |
| Int_t | fClip |
| Float_t | fCm |
| Int_t | fCnt1 |
| Int_t | fCnt2 |
| Int_t | fI |
| Int_t * | fIbins |
| ! The bin numbers of the random x candidates | |
| Int_t | fJ |
| Int_t | fNa |
| ! The number of bins of the area function | |
| Int_t | fSeed |
| Float_t | fU [97] |
| Float_t * | fXa |
| ! The binned x values of the area function | |
| Float_t * | fYa |
| ! The corresponding y values of the area function | |
| Float_t | fYamax |
| ! The min. and max. y values of the area function | |
| Float_t | fYamin |
| NcRandom::NcRandom | ( | ) |
Definition at line 136 of file NcRandom.cxx.
| NcRandom::NcRandom | ( | Int_t | seed, |
| NcTimestamp * | ts = 0 ) |
Definition at line 158 of file NcRandom.cxx.
| NcRandom::NcRandom | ( | Int_t | seed, |
| Int_t | cnt1, | ||
| Int_t | cnt2, | ||
| NcTimestamp * | ts = 0 ) |
Definition at line 189 of file NcRandom.cxx.
|
virtual |
Definition at line 228 of file NcRandom.cxx.
| void NcRandom::Data | ( | ) | const |
Definition at line 464 of file NcRandom.cxx.
| Float_t NcRandom::Gauss | ( | ) |
Definition at line 728 of file NcRandom.cxx.
| void NcRandom::Gauss | ( | Float_t * | vec, |
| Int_t | n ) |
Definition at line 778 of file NcRandom.cxx.
| void NcRandom::Gauss | ( | Float_t * | vec, |
| Int_t | n, | ||
| Float_t | mean, | ||
| Float_t | sigma ) |
Definition at line 739 of file NcRandom.cxx.
| Float_t NcRandom::Gauss | ( | Float_t | mean, |
| Float_t | sigma ) |
Definition at line 691 of file NcRandom.cxx.
| Int_t NcRandom::GetCnt1 | ( | ) | const |
Definition at line 442 of file NcRandom.cxx.
| Int_t NcRandom::GetCnt2 | ( | ) | const |
Definition at line 453 of file NcRandom.cxx.
| Int_t NcRandom::GetSeed | ( | ) | const |
Definition at line 431 of file NcRandom.cxx.
| void NcRandom::Poisson | ( | Float_t * | vec, |
| Int_t | n, | ||
| Float_t | mean ) |
Definition at line 844 of file NcRandom.cxx.
| Float_t NcRandom::Poisson | ( | Float_t | mean | ) |
Definition at line 793 of file NcRandom.cxx.
| Double_t NcRandom::RanBm | ( | Double_t | nr, |
| Double_t | n, | ||
| Int_t | m, | ||
| Double_t * | p = 0, | ||
| Double_t * | na = 0, | ||
| Double_t * | psia = 0, | ||
| Double_t | psi0 = -1, | ||
| Int_t | f = 0, | ||
| TH1 * | psih = 0, | ||
| Int_t | ncut = 0, | ||
| Double_t * | nrx = 0 ) |
Definition at line 1143 of file NcRandom.cxx.
| void NcRandom::SetUser | ( | Float_t * | x, |
| Float_t * | y, | ||
| Int_t | n ) |
Definition at line 957 of file NcRandom.cxx.
| void NcRandom::SetUser | ( | Float_t | a, |
| Float_t | b, | ||
| Int_t | n, | ||
| Float_t(* | f )(Float_t) ) |
Definition at line 915 of file NcRandom.cxx.
|
private |
Definition at line 244 of file NcRandom.cxx.
| Float_t NcRandom::Uniform | ( | ) |
Definition at line 476 of file NcRandom.cxx.
| void NcRandom::Uniform | ( | Float_t * | vec, |
| Int_t | n ) |
Definition at line 613 of file NcRandom.cxx.
| void NcRandom::Uniform | ( | Float_t * | vec, |
| Int_t | n, | ||
| Float_t | a, | ||
| Float_t | b ) |
Definition at line 543 of file NcRandom.cxx.
| Float_t NcRandom::Uniform | ( | Float_t | a, |
| Float_t | b ) |
Definition at line 526 of file NcRandom.cxx.
|
private |
Definition at line 628 of file NcRandom.cxx.
|
private |
Definition at line 371 of file NcRandom.cxx.
| Float_t NcRandom::User | ( | ) |
Definition at line 1017 of file NcRandom.cxx.
| void NcRandom::User | ( | Float_t * | vec, |
| Int_t | n ) |
Definition at line 1076 of file NcRandom.cxx.
|
private |
Definition at line 44 of file NcRandom.h.
|
private |
Definition at line 44 of file NcRandom.h.
|
private |
Definition at line 43 of file NcRandom.h.
|
private |
Definition at line 44 of file NcRandom.h.
|
private |
Definition at line 43 of file NcRandom.h.
|
private |
Definition at line 43 of file NcRandom.h.
|
private |
Definition at line 43 of file NcRandom.h.
|
private |
! The bin numbers of the random x candidates
Definition at line 52 of file NcRandom.h.
|
private |
Definition at line 43 of file NcRandom.h.
|
private |
! The number of bins of the area function
Definition at line 48 of file NcRandom.h.
|
private |
Definition at line 43 of file NcRandom.h.
|
private |
Definition at line 44 of file NcRandom.h.
|
private |
! The binned x values of the area function
Definition at line 49 of file NcRandom.h.
|
private |
! The corresponding y values of the area function
Definition at line 50 of file NcRandom.h.
|
private |
! The min. and max. y values of the area function
Definition at line 51 of file NcRandom.h.
|
private |
Definition at line 51 of file NcRandom.h.