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
7class GausState {
8 public:
9 double second_ran;
12};
14
15double rnorm_improved(void); // uses calls to SRANLUX
16
17void rnorm_double(double r1, double r2, // flat random numbers
18 double &x1, double &x2); // results
19
20void rnorm_float(float r1, float r2, // flat random numbers
21 float &x1, float &x2); // results
22
23#endif
Definition: rnorm.h:7
double second_ran
Definition: rnorm.h:9
int s_inited_second_ran
Definition: rnorm.h:10
GausState(void)
Definition: rnorm.h:11
void rnorm_double(double r1, double r2, double &x1, double &x2)
Definition: rnorm.cpp:36
void rnorm_float(float r1, float r2, float &x1, float &x2)
Definition: rnorm.cpp:43
GausState gaus_state
Definition: rnorm.cpp:13
double rnorm_improved(void)
Definition: rnorm.cpp:15