g4tools  5.4.0
random
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_random
5 #define tools_random
6 
7 // for backward compatibility.
8 
9 #include "randd"
10 
11 namespace tools {
12 namespace random {
13 
14 class gauss : public rgaussd {
15  typedef rgaussd parent;
16 public:
17  gauss(double a_mean = 0,double a_std_dev = 1):parent(a_mean,a_std_dev){}
18  virtual ~gauss(){}
19 public:
20  gauss(const gauss& a_from):parent(a_from){}
21  gauss& operator=(const gauss& a_from) {parent::operator=(a_from);return *this;}
22 };
23 
24 class bw : public rbwd {
25  typedef rbwd parent;
26 public:
27  bw(double a_mean = 0,double a_gamma = 1):parent(a_mean,a_gamma){}
28  virtual ~bw(){}
29 public:
30  bw(const bw& a_from):parent(a_from){}
31  bw& operator=(const bw& a_from) {parent::operator=(a_from);return *this;}
32 };
33 
34 class exp : public rexpd {
35  typedef rexpd parent;
36 public:
37  exp(double a_rate = 1):parent(a_rate){}
38  virtual ~exp(){}
39 public:
40  exp(const exp& a_from):parent(a_from){}
41  exp& operator=(const exp& a_from) {parent::operator=(a_from);return *this;}
42 };
43 
44 class flat : public rtausmed {
45  typedef rtausmed parent;
46 public:
47  flat():parent(){}
48  virtual ~flat(){}
49 public:
50  flat(const flat& a_from):parent(a_from){}
51  flat& operator=(const flat& a_from) {parent::operator=(a_from);return *this;}
52 };
53 
54 }}
55 
56 #endif
tools::rbwd
Definition: randd:146
tools::rexpd::operator=
rexpd & operator=(const rexpd &a_from)
Definition: randd:89
tools::random::bw::bw
bw(const bw &a_from)
Definition: random:30
tools::random::bw::~bw
virtual ~bw()
Definition: random:28
tools::random::bw::operator=
bw & operator=(const bw &a_from)
Definition: random:31
randd
tools::rgaussd::operator=
rgaussd & operator=(const rgaussd &a_from)
Definition: randd:63
tools::random::gauss::operator=
gauss & operator=(const gauss &a_from)
Definition: random:21
tools::random::flat
Definition: random:44
tools::random::flat::flat
flat()
Definition: random:47
tools::rtausmed
Definition: rtausmed:18
tools::random::exp
Definition: random:34
tools::random::bw::bw
bw(double a_mean=0, double a_gamma=1)
Definition: random:27
tools::random::gauss
Definition: random:14
tools::random::exp::~exp
virtual ~exp()
Definition: random:38
tools::rexp< rtausmed, double >
tools::rbwd::operator=
rbwd & operator=(const rbwd &a_from)
Definition: randd:161
tools::rtausmed::operator=
rtausmed & operator=(const rtausmed &a_from)
Definition: rtausmed:27
tools::random::gauss::gauss
gauss(double a_mean=0, double a_std_dev=1)
Definition: random:17
tools::rgauss< rtausmed, double >
tools::random::flat::~flat
virtual ~flat()
Definition: random:48
tools::random::exp::exp
exp(const exp &a_from)
Definition: random:40
tools::random::gauss::~gauss
virtual ~gauss()
Definition: random:18
tools::random::flat::operator=
flat & operator=(const flat &a_from)
Definition: random:51
tools::rgaussd
Definition: randd:48
tools::random::exp::operator=
exp & operator=(const exp &a_from)
Definition: random:41
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::rbw< rtausmed, double >
tools::random::gauss::gauss
gauss(const gauss &a_from)
Definition: random:20
tools::rexpd
Definition: randd:74
tools::random::flat::flat
flat(const flat &a_from)
Definition: random:50
tools::random::bw
Definition: random:24
tools::random::exp::exp
exp(double a_rate=1)
Definition: random:37