Garfield++
v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
rnorm.h
Go to the documentation of this file.
1
#ifndef RNORM_H
2
#define RNORM_H
3
4
// Generation of two random numbers distributed by normal distribution.
5
// It is generator-independent. The two flat numbers are its parameters.
6
7
class
GausState
{
8
public
:
9
double
second_ran
;
10
int
s_inited_second_ran
;
11
GausState
(
void
) :
second_ran
(0.0),
s_inited_second_ran
(0) {}
12
};
13
extern
GausState
gaus_state
;
14
15
double
rnorm_improved
(
void
);
// uses calls to SRANLUX
16
17
void
rnorm_double
(
double
r1,
double
r2,
// flat random numbers
18
double
&x1,
double
&x2);
// results
19
20
void
rnorm_float
(
float
r1,
float
r2,
// flat random numbers
21
float
&x1,
float
&x2);
// results
22
23
#endif
GausState
Definition:
rnorm.h:7
GausState::second_ran
double second_ran
Definition:
rnorm.h:9
GausState::s_inited_second_ran
int s_inited_second_ran
Definition:
rnorm.h:10
GausState::GausState
GausState(void)
Definition:
rnorm.h:11
rnorm_double
void rnorm_double(double r1, double r2, double &x1, double &x2)
Definition:
rnorm.cpp:36
rnorm_float
void rnorm_float(float r1, float r2, float &x1, float &x2)
Definition:
rnorm.cpp:43
gaus_state
GausState gaus_state
Definition:
rnorm.cpp:13
rnorm_improved
double rnorm_improved(void)
Definition:
rnorm.cpp:15
garfieldpp-v1r0
Heed
wcpplib
random
rnorm.h
Generated by
1.9.6