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
6
7/*
8class 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
15extern 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
21long 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
long pois(double AMU, int &IERROR)
Definition: pois.cpp:17