Geant4_10
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"
61 
62 //class G4RDeIonisationParameters;
63 class G4DataVector;
64 
66 {
67 
68 public:
69 
71 
73 
75  G4double kineticEnergy, G4int shell,
76  const G4ParticleDefinition* pd=0) const;
77 
79  G4double kineticEnergy, G4int shell,
80  const G4ParticleDefinition* pd=0) const;
81 
83  G4double kineticEnergy, G4int shell,
84  const G4ParticleDefinition* pd=0) const;
85 
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
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 
131 {
132  return theParam->Excitation(Z, e);
133 }
134 
135 
136 #endif
G4double Excitation(G4int Z, G4double e) const
const char * p
Definition: xmltok.h:285
G4double Excitation(G4int Z, G4double e) const
tuple x
Definition: test.py:50
int G4int
Definition: G4Types.hh:78
TFile f
Definition: plotHisto.C:6
G4double SampleEnergy(G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell, const G4ParticleDefinition *pd=0) const
Float_t Z
Definition: plot.C:39
G4double MaxEnergyOfSecondaries(G4double kineticEnergy, G4int Z=0, const G4ParticleDefinition *pd=0) const
double G4double
Definition: G4Types.hh:76
G4double Probability(G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell, const G4ParticleDefinition *pd=0) const
G4double AverageEnergy(G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell, const G4ParticleDefinition *pd=0) const