Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4eIonisationSpectrum.hh,v 1.3 2001/11/29 19:01:45 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4eIonisationSpectrum.hh,v 1.4 2002/05/30 19:52:23 vnivanch Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// -------------------------------------------------------------------
//
@@ -38,6 +38,7 @@
// 10.10.01 MGP Revision to improve code quality and
// consistency with design
// 29.11.01 V.Ivanchenko Parametrisation is updated
// 30.05.02 VI Add inline functions
//
// -------------------------------------------------------------------
@@ -50,11 +51,12 @@
// -------------------------------------------------------------------
#ifndef G4EIONISATIONSPECTRUM_HH
#define GG4EIONISATIONSPECTRUM_HH 1
#define G4EIONISATIONSPECTRUM_HH 1
#include "G4VEnergySpectrum.hh"
#include "G4eIonisationParameters.hh"
class G4eIonisationParameters;
//class G4eIonisationParameters;
class G4DataVector;
class G4eIonisationSpectrum : public G4VEnergySpectrum
@@ -108,8 +110,25 @@ private:
G4eIonisationParameters* theParam;
G4double lowestE;
G4double factor;
G4int verbose;
G4int iMax;
G4int verbose;
};
inline G4double G4eIonisationSpectrum::Function(G4double x,
const G4DataVector& p) const
{
G4double f = 1.0 - p[0] - p[iMax]*x
+ x*x*(1.0 - p[iMax] + (1.0/(1.0 - x) - p[iMax])/(1.0 - x))
+ 0.5*p[0]/x;
return f;
}
inline G4double G4eIonisationSpectrum::Excitation(G4int Z, G4double e) const
{
return theParam->Excitation(Z, e);
}
#endif