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
6
7/*
8Class defining the pair production occured at passing the
9delta-electroon through the matter.
10
11All energies are assumed in eV.
12But it seems that it is not strict requirement.
13If to change this in file "file_name" and in interface,
14the energies could be in any units.
15
162003, I. Smirnov
17*/
18
19namespace Heed {
20
21class 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
std::string String
Definition: String.h:75
virtual void print(std::ostream &file, int l) const
Definition: PairProd.cpp:85
PairProd(void)
Definition: PairProd.h:23
double get_eloss(void) const
Definition: PairProd.cpp:53
Definition: BGMesh.cpp:3