Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
advanced
eRosita
physics
include
G4RDeIonisationSpectrum.hh
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
// $Id$
27
// GEANT4 tag $Name: geant4-09-01-ref-00 $
28
//
29
// -------------------------------------------------------------------
30
//
31
// GEANT4 Class file
32
//
33
//
34
// File name: G4RDeIonisationSpectrum
35
//
36
// Author: V.Ivanchenko (Vladimir.Ivantchenko@cern.ch)
37
//
38
// Creation date: 27 September 2001
39
//
40
// Modifications:
41
// 10.10.01 MGP Revision to improve code quality and
42
// consistency with design
43
// 29.11.01 V.Ivanchenko Parametrisation is updated
44
// 30.05.02 VI Add inline functions
45
//
46
// -------------------------------------------------------------------
47
48
// Class Description:
49
// Provides various integration over delta-electron spectrum for e-
50
// ionisation process. Spectrum is parametrised accourding to
51
// EEDL database, details are described in the Physics Reference Manual
52
// Further documentation available from http://www.ge.infn.it/geant4/lowE
53
54
// -------------------------------------------------------------------
55
56
#ifndef G4RDEIONISATIONSPECTRUM_HH
57
#define G4RDEIONISATIONSPECTRUM_HH 1
58
59
#include "
G4RDVEnergySpectrum.hh
"
60
#include "
G4RDeIonisationParameters.hh
"
61
62
//class G4RDeIonisationParameters;
63
class
G4DataVector
;
64
65
class
G4RDeIonisationSpectrum
:
public
G4RDVEnergySpectrum
66
{
67
68
public
:
69
70
G4RDeIonisationSpectrum
();
71
72
~G4RDeIonisationSpectrum
();
73
74
G4double
Probability
(
G4int
Z
,
G4double
tMin,
G4double
tMax,
75
G4double
kineticEnergy,
G4int
shell,
76
const
G4ParticleDefinition
* pd=0)
const
;
77
78
G4double
AverageEnergy
(
G4int
Z,
G4double
tMin,
G4double
tMax,
79
G4double
kineticEnergy,
G4int
shell,
80
const
G4ParticleDefinition
* pd=0)
const
;
81
82
G4double
SampleEnergy
(
G4int
Z,
G4double
tMin,
G4double
tMax,
83
G4double
kineticEnergy,
G4int
shell,
84
const
G4ParticleDefinition
* pd=0)
const
;
85
86
G4double
MaxEnergyOfSecondaries
(
G4double
kineticEnergy,
87
G4int
Z = 0,
88
const
G4ParticleDefinition
* pd=0)
const
;
89
90
G4double
Excitation
(
G4int
Z,
G4double
e
)
const
;
91
92
void
PrintData
()
const
;
93
94
protected
:
95
96
private
:
97
98
G4double
IntSpectrum(
G4double
xMin,
G4double
xMax,
99
const
G4DataVector
&
p
)
const
;
100
101
G4double
AverageValue(
G4double
xMin,
G4double
xMax,
102
const
G4DataVector
& p)
const
;
103
104
G4double
Function(
G4double
x
,
const
G4DataVector
& p)
const
;
105
106
// Hide copy constructor and assignment operator
107
G4RDeIonisationSpectrum
(
const
G4RDeIonisationSpectrum
&);
108
G4RDeIonisationSpectrum
& operator = (
const
G4RDeIonisationSpectrum
&
right
);
109
110
private
:
111
112
G4RDeIonisationParameters
* theParam;
113
G4double
lowestE;
114
G4double
factor;
115
G4int
iMax;
116
G4int
verbose;
117
};
118
119
120
inline
G4double
G4RDeIonisationSpectrum::Function(
G4double
x
,
121
const
G4DataVector
&
p
)
const
122
{
123
G4double
f
= 1.0 - p[0] - p[iMax]*x
124
+ x*x*(1.0 - p[iMax] + (1.0/(1.0 -
x
) - p[iMax])/(1.0 -
x
))
125
+ 0.5*
p
[0]/
x
;
126
127
return
f
;
128
}
129
130
inline
G4double
G4RDeIonisationSpectrum::Excitation
(
G4int
Z
,
G4double
e
)
const
131
{
132
return
theParam->
Excitation
(Z, e);
133
}
134
135
136
#endif
Generated on Sat May 25 2013 14:32:08 for Geant4 by
1.8.4