Garfield++
v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
PairProd.h
Go to the documentation of this file.
1
#ifndef PAIRPROD_H
2
#define PAIRPROD_H
3
#include "
wcpplib/random/PointsRan.h
"
4
#include "
wcpplib/stream/prstream.h
"
5
#include "
wcpplib/util/String.h
"
6
7
/*
8
Class defining the pair production occured at passing the
9
delta-electroon through the matter.
10
11
All energies are assumed in eV.
12
But it seems that it is not strict requirement.
13
If to change this in file "file_name" and in interface,
14
the energies could be in any units.
15
16
2003, I. Smirnov
17
*/
18
19
namespace
Heed
{
20
21
class
PairProd
:
public
RegPassivePtr {
22
public
:
23
PairProd
(
void
) { ; }
24
PairProd
(
const
String
& file_name,
double
fwa,
double
ffactorFano = 0.19);
25
double
get_eloss
(
void
)
const
;
// in eV
26
double
get_eloss
(
double
ecur)
const
;
// in eV assuming V = wa / 2.0
27
28
virtual
void
print
(std::ostream& file,
int
l)
const
;
29
30
private
:
31
double
wa;
32
double
factorFano;
33
double
wa_table;
34
double
factorFano_table;
35
double
I_table;
36
double
J_table;
37
/* Coefficients for conversion of the table parameter W=30 and F=0.16
38
to the requested parameters by the formula
39
e = e_table * k + s, where e_table is the random energy generated by the
40
table.
41
The calculations use the features found at MC calculations:
42
If w is encreased by n times (with the same form of distribution,
43
that is equivalent to the shift of distribution,
44
the dispersion is changed as 1/n^2 D_old.
45
If the resulting energy is multiplied by k, that is the proportional
46
extension of the distribution, the relative dispersion is not changed.
47
The relative dispersion is (<N^2> - <N>^2)/N.
48
If to add the onbvious change of the mean energy occured with
49
the change of these parameters,
50
it is possible to obtain the formulae for conversion.
51
*/
52
double
k;
53
double
s;
54
PointsRan
pran;
55
56
};
57
58
}
59
60
#endif
PointsRan.h
String.h
String
std::string String
Definition:
String.h:75
Heed::PairProd
Definition:
PairProd.h:21
Heed::PairProd::print
virtual void print(std::ostream &file, int l) const
Definition:
PairProd.cpp:85
Heed::PairProd::PairProd
PairProd(void)
Definition:
PairProd.h:23
Heed::PairProd::get_eloss
double get_eloss(void) const
Definition:
PairProd.cpp:53
PointsRan
Definition:
PointsRan.h:25
Heed
Definition:
BGMesh.cpp:3
prstream.h
garfieldpp-v1r0
Heed
heed++
code
PairProd.h
Generated by
1.9.6