Geant4  10.02.p01
G4eIonisationSpectrum.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: G4eIonisationSpectrum.hh 66241 2012-12-13 18:34:42Z gunter $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 Class file
31 //
32 //
33 // File name: G4eIonisationSpectrum
34 //
35 // Author: V.Ivanchenko (Vladimir.Ivantchenko@cern.ch)
36 //
37 // Creation date: 27 September 2001
38 //
39 // Modifications:
40 // 10.10.01 MGP Revision to improve code quality and
41 // consistency with design
42 // 29.11.01 V.Ivanchenko Parametrisation is updated
43 // 30.05.02 VI Add inline functions
44 //
45 // -------------------------------------------------------------------
46 
47 // Class Description:
48 // Provides various integration over delta-electron spectrum for e-
49 // ionisation process. Spectrum is parametrised accourding to
50 // EEDL database, details are described in the Physics Reference Manual
51 // Further documentation available from http://www.ge.infn.it/geant4/lowE
52 
53 // -------------------------------------------------------------------
54 
55 #ifndef G4EIONISATIONSPECTRUM_HH
56 #define G4EIONISATIONSPECTRUM_HH 1
57 
58 #include "G4VEnergySpectrum.hh"
60 
61 //class G4eIonisationParameters;
62 class G4DataVector;
63 
65 {
66 
67 public:
68 
70 
72 
74  G4double kineticEnergy, G4int shell,
75  const G4ParticleDefinition* pd=0) const;
76 
78  G4double kineticEnergy, G4int shell,
79  const G4ParticleDefinition* pd=0) const;
80 
82  G4double kineticEnergy, G4int shell,
83  const G4ParticleDefinition* pd=0) const;
84 
86  G4int Z = 0,
87  const G4ParticleDefinition* pd=0) const;
88 
89  G4double Excitation(G4int Z, G4double e) const;
90 
91  void PrintData() const;
92 
93 protected:
94 
95 private:
96 
98  const G4DataVector& p) const;
99 
101  const G4DataVector& p) const;
102 
103  G4double Function(G4double x, const G4DataVector& p) const;
104 
105  // Hide copy constructor and assignment operator
108 
109 private:
110 
116 };
117 
118 
120  const G4DataVector& p) const
121 {
122  G4double f = 1.0 - p[0] - p[iMax]*x
123  + x*x*(1.0 - p[iMax] + (1.0/(1.0 - x) - p[iMax])/(1.0 - x))
124  + 0.5*p[0]/x;
125 
126  return f;
127 }
128 
130 {
131  return theParam->Excitation(Z, e);
132 }
133 
134 
135 #endif
G4double SampleEnergy(G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell, const G4ParticleDefinition *pd=0) const
G4double Excitation(G4int Z, G4double e) const
int G4int
Definition: G4Types.hh:78
G4double Excitation(G4int Z, G4double e) const
G4double Probability(G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell, const G4ParticleDefinition *pd=0) const
G4eIonisationParameters * theParam
G4double AverageValue(G4double xMin, G4double xMax, const G4DataVector &p) const
const G4double x[NPOINTSGL]
G4double MaxEnergyOfSecondaries(G4double kineticEnergy, G4int Z=0, const G4ParticleDefinition *pd=0) const
G4double Function(G4double x, const G4DataVector &p) const
G4double AverageEnergy(G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell, const G4ParticleDefinition *pd=0) const
double G4double
Definition: G4Types.hh:76
G4eIonisationSpectrum & operator=(const G4eIonisationSpectrum &right)
G4double IntSpectrum(G4double xMin, G4double xMax, const G4DataVector &p) const