Garfield++
v2r0
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/safetl/AbsPtr.h
"
6
7
namespace
Heed
{
8
9
/// Production of electron-ion pairs by delta-electrons.
10
/// All energies are assumed in eV.
11
/// But it seems that it is not strict requirement.
12
/// If to change this in file "file_name" and in interface,
13
/// the energies could be in any units.
14
///
15
/// 2003, I. Smirnov
16
17
class
PairProd
:
public
RegPassivePtr
{
18
public
:
19
PairProd
() {}
20
PairProd
(
const
std::string& file_name,
double
fwa,
double
ffactorFano = 0.19);
21
/// Calculate energy loss (in eV).
22
double
get_eloss
()
const
;
23
/// Calculate energy loss (in eV) assuming V = wa / 2.
24
double
get_eloss
(
const
double
ecur)
const
;
25
26
virtual
void
print
(std::ostream& file,
int
l)
const
;
27
28
private
:
29
double
wa;
30
double
factorFano;
31
double
wa_table;
32
double
factorFano_table;
33
double
I_table;
34
double
J_table;
35
/** Coefficients for conversion of the table parameter W=30 and F=0.16
36
* to the requested parameters by the formula
37
* e = e_table * k + s, where e_table is the random energy generated by the
38
* table.
39
* The calculations use the features found at MC calculations:
40
* If w is encreased by n times (with the same form of distribution,
41
* that is equivalent to the shift of distribution,
42
* the dispersion is changed as \f$1/n^2\f$ D_old.
43
* If the resulting energy is multiplied by k, that is the proportional
44
* extension of the distribution, the relative dispersion is not changed.
45
* The relative dispersion is \f$(<N^2> - <N>^2)/N\f$.
46
* If to add the onbvious change of the mean energy occurred with
47
* the change of these parameters,
48
* it is possible to obtain the formulae for conversion.
49
*/
50
double
k;
51
double
s;
52
PointsRan
pran;
53
};
54
}
55
56
#endif
AbsPtr.h
PointsRan.h
Heed::PairProd
Definition:
PairProd.h:17
Heed::PairProd::print
virtual void print(std::ostream &file, int l) const
Definition:
PairProd.cpp:71
Heed::PairProd::PairProd
PairProd()
Definition:
PairProd.h:19
Heed::PairProd::get_eloss
double get_eloss() const
Calculate energy loss (in eV).
Definition:
PairProd.cpp:43
Heed::PointsRan
Definition:
PointsRan.h:24
Heed::RegPassivePtr
Definition:
AbsPtr.h:559
Heed
Definition:
BGMesh.cpp:5
prstream.h
garfieldpp-v2r0
Heed
heed++
code
PairProd.h
Generated by
1.9.6