Garfield++
v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
pois.h
Go to the documentation of this file.
1
#ifndef POIS_H
2
#define POIS_H
3
4
#include "
wcpplib/safetl/AbsArr.h
"
5
#include "
wcpplib/math/tline.h
"
6
7
/*
8
class PoisState
9
{public:
10
double SECOND_RAN;
11
int s_inited_SECOND_RAN;
12
PoisState(void): SECOND_RAN(0.0), s_inited_SECOND_RAN(0) {}
13
};
14
15
extern PoisState pois_state;
16
*/
17
// Attention!!! In order to set state, it is not enough to set
18
// it for SRANLUX.
19
// It needs also to set/get pois_state.
20
21
long
pois
(
double
AMU,
int
&IERROR);
22
//long pois (float AMU,int &IERROR);
23
24
// Now it calls SRANLUX
25
// This is translation of the program from CERNLIB with the following comment
26
27
//C
28
//C POISSON GENERATOR
29
//C CODED FROM LOS ALAMOS REPORT LA-5061-MS
30
//C PROB(N)=EXP(-AMU)*AMU**N/FACT(N)
31
//C WHERE FACT(N) STANDS FOR FACTORIAL OF N
32
//C ON RETURN IERROR.EQ.0 NORMALLY
33
//C IERROR.EQ.1 IF AMU.LE.0.
34
//C
35
36
#endif
AbsArr.h
pois
long pois(double AMU, int &IERROR)
Definition:
pois.cpp:17
tline.h
garfieldpp-v1r0
Heed
wcpplib
random
pois.h
Generated by
1.9.6