source: trunk/source/processes/electromagnetic/lowenergy/include/G4eIonisationSpectrum.hh@ 1201

Last change on this file since 1201 was 1196, checked in by garnier, 16 years ago

update CVS release candidate geant4.9.3.01

File size: 4.7 KB
Line 
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,v 1.7 2006/06/29 19:37:40 gunter Exp $
27// GEANT4 tag $Name: geant4-09-03-cand-01 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class file
32//
33//
34// File name: G4eIonisationSpectrum
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 G4EIONISATIONSPECTRUM_HH
57#define G4EIONISATIONSPECTRUM_HH 1
58
59#include "G4VEnergySpectrum.hh"
60#include "G4eIonisationParameters.hh"
61
62//class G4eIonisationParameters;
63class G4DataVector;
64
65class G4eIonisationSpectrum : public G4VEnergySpectrum
66{
67
68public:
69
70 G4eIonisationSpectrum();
71
72 ~G4eIonisationSpectrum();
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
94protected:
95
96private:
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 G4eIonisationSpectrum(const G4eIonisationSpectrum&);
108 G4eIonisationSpectrum & operator = (const G4eIonisationSpectrum &right);
109
110private:
111
112 G4eIonisationParameters* theParam;
113 G4double lowestE;
114 G4double factor;
115 G4int iMax;
116 G4int verbose;
117};
118
119
120inline G4double G4eIonisationSpectrum::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
130inline G4double G4eIonisationSpectrum::Excitation(G4int Z, G4double e) const
131{
132 return theParam->Excitation(Z, e);
133}
134
135
136#endif
Note: See TracBrowser for help on using the repository browser.