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