#include <G4ParticleHPMadlandNixSpectrum.hh>
G4ParticleHPMadlandNixSpectrum::G4ParticleHPMadlandNixSpectrum |
( |
| ) |
|
|
inline |
Definition at line 54 of file G4ParticleHPMadlandNixSpectrum.hh.
57 theAvarageKineticPerNucleonForLightFragments = 0.0;
58 theAvarageKineticPerNucleonForHeavyFragments = 0.0;
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4ParticleHPMadlandNixSpectrum::~G4ParticleHPMadlandNixSpectrum |
( |
| ) |
|
|
inline |
G4double G4ParticleHPMadlandNixSpectrum::GetFractionalProbability |
( |
G4double |
anEnergy | ) |
|
|
inlinevirtual |
void G4ParticleHPMadlandNixSpectrum::Init |
( |
std::istream & |
aDataFile | ) |
|
|
inlinevirtual |
Implements G4VParticleHPEDis.
Definition at line 64 of file G4ParticleHPMadlandNixSpectrum.hh.
66 theFractionalProb.
Init(aDataFile);
67 aDataFile>> theAvarageKineticPerNucleonForLightFragments;
68 theAvarageKineticPerNucleonForLightFragments*=
CLHEP::eV;
69 aDataFile>> theAvarageKineticPerNucleonForHeavyFragments;
70 theAvarageKineticPerNucleonForHeavyFragments*=
CLHEP::eV;
71 theMaxTemp.
Init(aDataFile);
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
static constexpr double eV
Implements G4VParticleHPEDis.
Definition at line 74 of file G4ParticleHPMadlandNixSpectrum.cc.
83 G4int icounter_max=1024;
87 if ( icounter > icounter_max ) {
88 G4cout <<
"Loop-counter exceeded the threshold value at " << __LINE__ <<
"th line of " << __FILE__ <<
"." <<
G4endl;
92 newValue = FissionIntegral(tm, current);
96 current+=std::abs(current-last)/2.;
98 if(current>190*
MeV)
throw G4HadronicException(__FILE__, __LINE__,
"Madland-Nix Spectrum has not converged in sampling");
103 current-=std::abs(current-last)/2.;
107 while (std::abs(oldValue-newValue)>precision*newValue);
G4GLOB_DLL std::ostream G4cout
G4double GetY(G4double x)
static constexpr double MeV
The documentation for this class was generated from the following files: